Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29335794: Proof-of-concept: Link version to corresponding announcement (Closed)

Created:
Feb. 5, 2016, 1:44 p.m. by Sebastian Noack
Modified:
Feb. 5, 2016, 3:15 p.m.
Visibility:
Public.

Description

Proof-of-concept: Link version to corresponding announcement

Patch Set 1 : Always send request, no link if no release post found #

Total comments: 6

Patch Set 2 : Send request on demand, always link for release builds, falling back to releases overview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -12 lines) Patch
M messageResponder.js View 1 chunk +6 lines, -2 lines 0 comments Download
M options.html View 1 chunk +1 line, -1 line 0 comments Download
M options.js View 1 1 chunk +59 lines, -7 lines 0 comments Download
M skin/options.css View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 6
Sebastian Noack
As discussed on IRC, this is a proof-of-concept for linking the version number on the ...
Feb. 5, 2016, 2:19 p.m. (2016-02-05 14:19:00 UTC) #1
Thomas Greiner
It's better than scraping the HTML content. Given the complexity of the implementation, the low ...
Feb. 5, 2016, 2:24 p.m. (2016-02-05 14:24:37 UTC) #2
Wladimir Palant
NOT LGTM, see below. https://codereview.adblockplus.org/29335794/diff/29335795/options.js File options.js (right): https://codereview.adblockplus.org/29335794/diff/29335795/options.js#newcode655 options.js:655: fetch("https://adblockplus.org/atom/?section=releases&limit=100").then(function(response) On 2016/02/05 14:24:37, Thomas ...
Feb. 5, 2016, 2:29 p.m. (2016-02-05 14:29:45 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29335794/diff/29335795/options.js File options.js (right): https://codereview.adblockplus.org/29335794/diff/29335795/options.js#newcode655 options.js:655: fetch("https://adblockplus.org/atom/?section=releases&limit=100").then(function(response) On 2016/02/05 14:29:44, Wladimir Palant wrote: > On ...
Feb. 5, 2016, 2:37 p.m. (2016-02-05 14:37:18 UTC) #4
Wladimir Palant
Just to explain: I said NOT LGTM not because of the server load (which is ...
Feb. 5, 2016, 2:46 p.m. (2016-02-05 14:46:13 UTC) #5
Sebastian Noack
Feb. 5, 2016, 3:09 p.m. (2016-02-05 15:09:05 UTC) #6
On 2016/02/05 14:46:13, Wladimir Palant wrote:
> Just to explain: I said NOT LGTM not because of the server load (which is also
a
> concern of course but that's beyond the point). Scraping our Atom feed is a
very
> bad idea in the first place. We do not now whether we will be using
Textpattern
> in future (it has its share of issues), we don't know whether we will use it
> under the same URL (it really belongs under http://blog.adblockplus.org or
something
> along these lines), we don't know whether we will still name/categorize the
> release announcements the same in future (as the products converge the current
> categorization tends to make less sense). We should not make this kind of
> assumptions.

Well, with the approach in patch set 2, this wouldn't be a big deal. As
mentioned in my previous comment, if anything changes on the server side, old
builds out there would just fall back to the releases overview or whatever the
server redirects them to. Without this change, this is the behavior, no matter
what.

> We have our redirector URL on the server, it is meant to receive all incoming
> links from the extensions. That's what we should stick to. How we would add
the
> release links to it is a different question. Worst case: manually, one more
> point on the release checklist. On option would be adding a custom field to
> Textpattern blog posts to indicate that it is a release announcement - this
one
> should be added to redirects automatically then. More options might be
possible.

I have to admit, that a redirector script on the server might be more elegant.
So if anything changes on the server side, we can adjust the logic there. If
textpattern has support for custom fields, and to filter programmatically filter
for them in a structured way, even better. Otherwise, I wouldn't mind using the
same logic I implemented here on the server side.

Powered by Google App Engine
This is Rietveld