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

Issue 22824042: Docserver: SidenavDataSource refactor, transition to DataSourceRegistry (Closed)

Created:
7 years, 4 months ago by jshumway
Modified:
7 years, 3 months ago
Reviewers:
Jeffrey Yasskin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, not at google - send to devlin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Docserver: SidenavDataSource refactor, transition to DataSourceRegistry The next step in moving towards the DataSourceRegistry architecture (see bug). The SidenavDataSource is the first DataSource to rely on the contents of a request and the DataSourceRegistry had to change. Now DataSources are given both a ServerInstance and a Request when created. Strings and Manifest DataSources have been updated. SidenavDataSource contained some very old code and was in need of refactoring. The Factory had to be stripped out because it is now unneeded and doesn't work with the registry. CreateDataSource was moved into the RenderServlet and is added to the template data source in Create to give the DataSources access to a Request. BUG=275039 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220600

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Tests, comments, cleanup #

Total comments: 1

Patch Set 3 : Cleanup, deleted unused files/import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -300 lines) Patch
M chrome/common/extensions/docs/server2/api_data_source.py View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/app.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/cron.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/cron_servlet_test.py View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/data_source.py View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/data_source_registry.py View 1 1 chunk +14 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/server2/manifest_data_source.py View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/manifest_data_source_test.py View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/permissions_data_source.py View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/redirector_test.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/render_servlet.py View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/server_instance.py View 1 5 chunks +2 lines, -11 lines 0 comments Download
M chrome/common/extensions/docs/server2/sidenav_data_source.py View 1 1 chunk +69 lines, -60 lines 0 comments Download
M chrome/common/extensions/docs/server2/sidenav_data_source_test.py View 1 2 1 chunk +142 lines, -54 lines 0 comments Download
M chrome/common/extensions/docs/server2/strings_data_source.py View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source.py View 1 6 chunks +15 lines, -19 lines 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source_test.py View 1 2 chunks +2 lines, -5 lines 0 comments Download
D chrome/common/extensions/docs/server2/test_data/sidenav_data_source/absolute_path_sidenav.json View 1 2 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/common/extensions/docs/server2/test_data/sidenav_data_source/absolute_path_sidenav_expected.json View 1 2 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/common/extensions/docs/server2/test_data/sidenav_data_source/test_sidenav.json View 1 2 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_util.py View 1 2 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jshumway
7 years, 4 months ago (2013-08-23 21:38:52 UTC) #1
Jeffrey Yasskin
https://codereview.chromium.org/22824042/diff/5001/chrome/common/extensions/docs/server2/data_source_registry.py File chrome/common/extensions/docs/server2/data_source_registry.py (right): https://codereview.chromium.org/22824042/diff/5001/chrome/common/extensions/docs/server2/data_source_registry.py#newcode18 chrome/common/extensions/docs/server2/data_source_registry.py:18: for Cron, |request| should be ommitted. sp: ommitted -> ...
7 years, 3 months ago (2013-08-28 19:12:36 UTC) #2
jshumway
https://codereview.chromium.org/22824042/diff/5001/chrome/common/extensions/docs/server2/data_source_registry.py File chrome/common/extensions/docs/server2/data_source_registry.py (right): https://codereview.chromium.org/22824042/diff/5001/chrome/common/extensions/docs/server2/data_source_registry.py#newcode18 chrome/common/extensions/docs/server2/data_source_registry.py:18: for Cron, |request| should be ommitted. On 2013/08/28 19:12:37, ...
7 years, 3 months ago (2013-08-29 00:13:09 UTC) #3
not at google - send to devlin
quick drive-by https://codereview.chromium.org/22824042/diff/5001/chrome/common/extensions/docs/server2/sidenav_data_source_test.py File chrome/common/extensions/docs/server2/sidenav_data_source_test.py (right): https://codereview.chromium.org/22824042/diff/5001/chrome/common/extensions/docs/server2/sidenav_data_source_test.py#newcode144 chrome/common/extensions/docs/server2/sidenav_data_source_test.py:144: sidenav_data_source.Cron() On 2013/08/29 00:13:09, jshumway wrote: > ...
7 years, 3 months ago (2013-08-29 16:30:13 UTC) #4
Jeffrey Yasskin
lgtm aside from kalman's comments.
7 years, 3 months ago (2013-08-30 00:05:39 UTC) #5
jshumway
Moved CaptureLogging to test_util.py, deleted the now unused test_data files. Talked with Ben about a ...
7 years, 3 months ago (2013-08-30 17:05:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jaredshumway94@gmail.com/22824042/29001
7 years, 3 months ago (2013-08-30 17:06:09 UTC) #7
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 17:17:39 UTC) #8
Message was sent while issue was closed.
Change committed as 220600

Powered by Google App Engine
This is Rietveld 408576698