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

Issue 10546078: Extension docs server: APIDataSource (Closed)

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

Description

Extension docs server: APIDataSource Implemented and tested the APIDataSource class to get info from the JSON APIs. This will probably use some tools from the JSON schema compiler in the future. Also made some changes to build_server.py. BUG=131095 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142802

Patch Set 1 #

Total comments: 18

Patch Set 2 : FetcherCache #

Total comments: 12

Patch Set 3 : Minor changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -81 lines) Patch
M chrome/common/extensions/docs/server2/PRESUBMIT.py View 1 chunk +1 line, -1 line 0 comments Download
A chrome/common/extensions/docs/server2/api_data_source.py View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/api_data_source_test.py View 1 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/build_server.py View 1 1 chunk +34 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/echo_handler.py View 1 3 chunks +17 lines, -10 lines 0 comments Download
A chrome/common/extensions/docs/server2/fetcher_cache.py View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/server_instance.py View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/subversion_fetcher.py View 1 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source.py View 1 2 2 chunks +17 lines, -40 lines 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source_test.py View 1 4 chunks +11 lines, -6 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/api_data_source/simple/test_file.json View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/template2/public/browserAction.html View 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/model.py View 1 3 chunks +3 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/model_test.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
cduvall
Thought I would put up a CL for APIDataSource before I started messing with the ...
8 years, 6 months ago (2012-06-08 21:05:47 UTC) #1
not at google - send to devlin
A fairly major change there... sorry, I got a bit carried away writing the code. ...
8 years, 6 months ago (2012-06-10 06:58:22 UTC) #2
cduvall
On vacation for a week, but now I'm back in action. Implemented FetcherCache, it looks ...
8 years, 6 months ago (2012-06-18 19:13:46 UTC) #3
not at google - send to devlin
lgtm with nits https://chromiumcodereview.appspot.com/10546078/diff/8001/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10546078/diff/8001/chrome/common/extensions/docs/server2/api_data_source.py#newcode16 chrome/common/extensions/docs/server2/api_data_source.py:16: return json.loads(json_comment_eater.Nom(api))[0] nit: either make static ...
8 years, 6 months ago (2012-06-18 19:30:40 UTC) #4
cduvall
https://chromiumcodereview.appspot.com/10546078/diff/8001/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py (right): https://chromiumcodereview.appspot.com/10546078/diff/8001/chrome/common/extensions/docs/server2/api_data_source.py#newcode16 chrome/common/extensions/docs/server2/api_data_source.py:16: return json.loads(json_comment_eater.Nom(api))[0] On 2012/06/18 19:30:40, kalman wrote: > nit: ...
8 years, 6 months ago (2012-06-18 19:48:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/10546078/12002
8 years, 6 months ago (2012-06-18 19:56:18 UTC) #6
commit-bot: I haz the power
8 years, 6 months ago (2012-06-18 19:56:26 UTC) #7
Presubmit check for 10546078-12002 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change requires manual test instructions to QA team, add
TEST=[instructions].

** Presubmit ERRORS **
./template_data_source_test.py failed!
Command ./template_data_source_test.py returned non-zero exit status 1 in
/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2
Traceback (most recent call last):
  File "./template_data_source_test.py", line 12, in <module>
    from template_data_source import TemplateDataSource
  File
"/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2/template_data_source.py",
line 5, in <module>
    from third_party.handlebar import Handlebar
ImportError: No module named third_party.handlebar


./api_data_source_test.py failed!
Command ./api_data_source_test.py returned non-zero exit status 1 in
/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2
Traceback (most recent call last):
  File "./api_data_source_test.py", line 12, in <module>
    from api_data_source import APIDataSource
  File
"/b/commit-queue/workdir/chromium/chrome/common/extensions/docs/server2/api_data_source.py",
line 8, in <module>
    import third_party.json_schema_compiler.json_comment_eater as
json_comment_eater
ImportError: No module named third_party.json_schema_compiler.json_comment_eater


Presubmit checks took 3.4s to calculate.

Was the presubmit check useful? Please send feedback & hate mail to
maruel@chromium.org!

Powered by Google App Engine
This is Rietveld 408576698