Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Issue 2767143005: ntp_snippets: add script to fetch articles (Closed)

Created:
3 years, 9 months ago by sfiera
Modified:
3 years, 9 months ago
Reviewers:
Marc Treib, fhorschig
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ntp_snippets: add script to fetch articles I got tired of referring back to the cheat sheet, and encoding experiments was annoying. This will hopefully be much better for checking things. There's a problem with --signed-in right now. Apparently the client id and secret it auto-detects aren't usable. Providing our project's internal one works fine, but I'll talk to Roger to see what's up with the general client parameters. Review-Url: https://codereview.chromium.org/2767143005 Cr-Commit-Position: refs/heads/master@{#459721} Committed: https://chromium.googlesource.com/chromium/src/+/92b86718f51de0458b271b86ac19be4ba88afdae

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review #

Patch Set 3 : Handle expired token #

Total comments: 8

Patch Set 4 : Functions, exit status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -0 lines) Patch
A components/ntp_snippets/remote/fetch.py View 1 2 3 1 chunk +228 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
sfiera
Here's what --short looks like: % components/ntp_snippets/remote/fetch.py --short Articles for you: “Trump-Russia inquiry in 'grave ...
3 years, 9 months ago (2017-03-23 13:09:16 UTC) #2
fhorschig
That's pretty cool! https://codereview.chromium.org/2767143005/diff/1/components/ntp_snippets/remote/fetch.py File components/ntp_snippets/remote/fetch.py (right): https://codereview.chromium.org/2767143005/diff/1/components/ntp_snippets/remote/fetch.py#newcode74 components/ntp_snippets/remote/fetch.py:74: storage = oauth2client.file.Storage(os.path.expanduser("~/.zineauth")) Could drop a ...
3 years, 9 months ago (2017-03-23 13:46:49 UTC) #3
sfiera
https://codereview.chromium.org/2767143005/diff/1/components/ntp_snippets/remote/fetch.py File components/ntp_snippets/remote/fetch.py (right): https://codereview.chromium.org/2767143005/diff/1/components/ntp_snippets/remote/fetch.py#newcode74 components/ntp_snippets/remote/fetch.py:74: storage = oauth2client.file.Storage(os.path.expanduser("~/.zineauth")) On 2017/03/23 13:46:49, fhorschig wrote: > ...
3 years, 9 months ago (2017-03-23 18:30:17 UTC) #4
fhorschig
I am happy about the functionality, but have some minor readability proposals https://codereview.chromium.org/2767143005/diff/1/components/ntp_snippets/remote/fetch.py File components/ntp_snippets/remote/fetch.py ...
3 years, 9 months ago (2017-03-24 11:24:11 UTC) #5
sfiera
https://codereview.chromium.org/2767143005/diff/40001/components/ntp_snippets/remote/fetch.py File components/ntp_snippets/remote/fetch.py (right): https://codereview.chromium.org/2767143005/diff/40001/components/ntp_snippets/remote/fetch.py#newcode65 components/ntp_snippets/remote/fetch.py:65: url = API_HOSTS[args.component] + API_PATH On 2017/03/24 11:24:10, fhorschig ...
3 years, 9 months ago (2017-03-24 14:43:35 UTC) #6
fhorschig
lgtm!
3 years, 9 months ago (2017-03-24 16:21:28 UTC) #7
sfiera
+treib for proper OWNERS approval. Maybe you would prefer a new directory for scripts?
3 years, 9 months ago (2017-03-24 16:24:53 UTC) #9
Marc Treib
On 2017/03/24 16:24:53, sfiera wrote: > +treib for proper OWNERS approval. > > Maybe you ...
3 years, 9 months ago (2017-03-27 08:10:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767143005/60001
3 years, 9 months ago (2017-03-27 08:28:46 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 08:39:03 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/92b86718f51de0458b271b86ac19...

Powered by Google App Engine
This is Rietveld 408576698