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

Issue 10825067: Extensions Docs Server: Apps samples page (Closed)

Created:
8 years, 4 months ago by cduvall
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, clintstaley
Visibility:
Public.

Description

Extensions Docs Server: Apps samples page This page pulls the apps samples from github and constructs a page similar to the extensions samples page. The links take you to github instead of downloading zip files. BUG=140252 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151373

Patch Set 1 : #

Total comments: 11

Patch Set 2 : no more zip file #

Total comments: 4

Patch Set 3 : back to zip #

Patch Set 4 : blobstore #

Total comments: 25

Patch Set 5 : blobstore keys stored in datastore #

Patch Set 6 : Samples on API pages #

Total comments: 38

Patch Set 7 : fixes #

Total comments: 26

Patch Set 8 : less is_apps and fixes #

Total comments: 16

Patch Set 9 : fixed templates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -187 lines) Patch
M chrome/common/extensions/docs/server2/api_data_source.py View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -11 lines 0 comments Download
M chrome/common/extensions/docs/server2/api_data_source_test.py View 1 2 3 4 5 6 7 1 chunk +9 lines, -3 lines 0 comments Download
A chrome/common/extensions/docs/server2/appengine_blobstore.py View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/appengine_memcache.py View 1 2 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/appengine_wrappers.py View 1 2 3 4 3 chunks +46 lines, -10 lines 0 comments Download
A chrome/common/extensions/docs/server2/blob_reference_store.py View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/github_file_system.py View 1 2 3 4 5 6 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/github_file_system_test.py View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/handlebar_dict_generator.py View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/handler.py View 1 2 3 4 5 6 7 5 chunks +18 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/integration_test.py View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/memcache_file_system.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/memcache_file_system_test.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/samples_data_source.py View 1 2 3 4 5 6 7 9 chunks +82 lines, -33 lines 0 comments Download
A chrome/common/extensions/docs/server2/samples_data_source_test.py View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/api_reference.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -6 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/apps_footer.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/extensions_footer.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/filter_item.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/footer.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -12 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/sample_item.html View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/samples.html View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/standard_apps_api.html View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -13 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/standard_apps_article.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/standard_extensions_api.html View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -13 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/standard_extensions_article.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/table_of_contents.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/templates/private/toc_samples.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A chrome/common/extensions/docs/server2/templates/private/warning.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/templates/public/apps/samples.html View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/public/extensions/samples.html View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -59 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/file_system.zip View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/samples_data_source/expected.json View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/samples_data_source/samples.json View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
A chrome/common/extensions/docs/server2/url_constants.py View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
cduvall
Samples page for apps!
8 years, 4 months ago (2012-07-27 22:25:22 UTC) #1
not at google - send to devlin
Nice one. http://codereview.chromium.org/10825067/diff/3008/chrome/common/extensions/docs/server2/samples_data_source.py File chrome/common/extensions/docs/server2/samples_data_source.py (right): http://codereview.chromium.org/10825067/diff/3008/chrome/common/extensions/docs/server2/samples_data_source.py#newcode12 chrome/common/extensions/docs/server2/samples_data_source.py:12: GITHUB_BASE = 'https://github.com/GoogleChrome/chrome-app-samples/tree/master' looks like this is ...
8 years, 4 months ago (2012-07-30 11:24:05 UTC) #2
cduvall
See response to your comment in ZipFileSystem for the problem I was having. https://chromiumcodereview.appspot.com/10825067/diff/3008/chrome/common/extensions/docs/server2/samples_data_source.py File ...
8 years, 4 months ago (2012-08-02 01:14:53 UTC) #3
not at google - send to devlin
Ah, sorry to have lead you down that path. I guess we will need to ...
8 years, 4 months ago (2012-08-02 13:27:48 UTC) #4
cduvall
So it turns out that the size of the samples zip is 4MB not 4KB, ...
8 years, 4 months ago (2012-08-02 23:20:01 UTC) #5
cduvall
Now blobstore is used to store the zip file.
8 years, 4 months ago (2012-08-03 18:44:32 UTC) #6
not at google - send to devlin
nice http://codereview.chromium.org/10825067/diff/8002/chrome/common/extensions/docs/server2/appengine_blobstore.py File chrome/common/extensions/docs/server2/appengine_blobstore.py (right): http://codereview.chromium.org/10825067/diff/8002/chrome/common/extensions/docs/server2/appengine_blobstore.py#newcode14 chrome/common/extensions/docs/server2/appengine_blobstore.py:14: """ methods could do with some documentation, e.g. ...
8 years, 4 months ago (2012-08-07 01:35:38 UTC) #7
cduvall
https://chromiumcodereview.appspot.com/10825067/diff/8002/chrome/common/extensions/docs/server2/appengine_blobstore.py File chrome/common/extensions/docs/server2/appengine_blobstore.py (right): https://chromiumcodereview.appspot.com/10825067/diff/8002/chrome/common/extensions/docs/server2/appengine_blobstore.py#newcode14 chrome/common/extensions/docs/server2/appengine_blobstore.py:14: """ On 2012/08/07 01:35:38, kalman wrote: > methods could ...
8 years, 4 months ago (2012-08-08 19:27:25 UTC) #8
not at google - send to devlin
https://chromiumcodereview.appspot.com/10825067/diff/8002/chrome/common/extensions/docs/server2/github_file_system.py File chrome/common/extensions/docs/server2/github_file_system.py (right): https://chromiumcodereview.appspot.com/10825067/diff/8002/chrome/common/extensions/docs/server2/github_file_system.py#newcode24 chrome/common/extensions/docs/server2/github_file_system.py:24: self._blobstore.Delete(ZIP_KEY, self._old_version) On 2012/08/08 19:27:25, cduvall wrote: > On ...
8 years, 4 months ago (2012-08-09 07:52:36 UTC) #9
cduvall
https://chromiumcodereview.appspot.com/10825067/diff/6015/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10825067/diff/6015/chrome/common/extensions/docs/server2/api_data_source.py#newcode21 chrome/common/extensions/docs/server2/api_data_source.py:21: logging.info(self._api_search) On 2012/08/09 07:52:36, kalman wrote: > remove logging? ...
8 years, 4 months ago (2012-08-09 19:20:08 UTC) #10
not at google - send to devlin
Code looks good, as in, lg. Apologies to push back on the is_apps changes but ...
8 years, 4 months ago (2012-08-10 06:02:18 UTC) #11
cduvall
https://chromiumcodereview.appspot.com/10825067/diff/6015/chrome/common/extensions/docs/server2/integration_test.py File chrome/common/extensions/docs/server2/integration_test.py (right): https://chromiumcodereview.appspot.com/10825067/diff/6015/chrome/common/extensions/docs/server2/integration_test.py#newcode18 chrome/common/extensions/docs/server2/integration_test.py:18: 'samples.html', On 2012/08/10 06:02:18, kalman wrote: > On 2012/08/09 ...
8 years, 4 months ago (2012-08-10 21:17:47 UTC) #12
not at google - send to devlin
Last round of reviews. lg after this I promise. https://chromiumcodereview.appspot.com/10825067/diff/1044/chrome/common/extensions/docs/server2/api_data_source_test.py File chrome/common/extensions/docs/server2/api_data_source_test.py (right): https://chromiumcodereview.appspot.com/10825067/diff/1044/chrome/common/extensions/docs/server2/api_data_source_test.py#newcode37 chrome/common/extensions/docs/server2/api_data_source_test.py:37: ...
8 years, 4 months ago (2012-08-13 01:51:11 UTC) #13
cduvall
https://chromiumcodereview.appspot.com/10825067/diff/8010/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10825067/diff/8010/chrome/common/extensions/docs/server2/api_data_source.py#newcode77 chrome/common/extensions/docs/server2/api_data_source.py:77: perms = dict([(model.UnixName(k), v) for k, v in perms.iteritems()]) ...
8 years, 4 months ago (2012-08-13 17:47:06 UTC) #14
not at google - send to devlin
8 years, 4 months ago (2012-08-13 22:39:08 UTC) #15
lgtm

https://chromiumcodereview.appspot.com/10825067/diff/1044/chrome/common/exten...
File chrome/common/extensions/docs/server2/api_data_source_test.py (right):

https://chromiumcodereview.appspot.com/10825067/diff/1044/chrome/common/exten...
chrome/common/extensions/docs/server2/api_data_source_test.py:37:
test1.pop('samples')
On 2012/08/13 01:51:11, kalman wrote:
> On 2012/08/10 21:17:47, cduvall wrote:
> > On 2012/08/10 06:02:18, kalman wrote:
> > > Why not just add the samples to the expected data? You know what it's
> supposed
> > > to be (since you're controlling it in FakeSamplesDataSource).
> > 
> > The samples isn't actually a SamplesDataSource, its a _LazySamplesGetter.
This
> > makes it so the test will fail, because the expected JSON doesn't have a
> > _LazySamplesGetter.
> 
> Ah I see.
> 
> Could you define __eq__ for Future, which compares values? Make
> FakeSamplesDataSource return a Future(value={})? It would be really nice to
> compare to the real result.

(sorry about this comment, my brain did s/_LazySamplesGetter/Future/ without
warning me)

Powered by Google App Engine
This is Rietveld 408576698