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

Issue 26418002: Docserver: Pull knowledge of host file systems into a single (Closed)

Created:
7 years, 2 months ago by not at google - send to devlin
Modified:
7 years, 2 months ago
Reviewers:
Jeffrey Yasskin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Docserver: Pull knowledge of host file systems into a single HostFileSystemProvider class, basically a rename of HostFileSystemCreator with a stricter notion of trunk vs branches. In some ways this is a follow-up to r218556, except solving the problem in a type-safe (rather than special-case) way, as requested in that review. I also need it to be able to support "host" file systems as a content provider, see bug 293678. This patch also enforces that the "branch" of a channel is a string, and fixes a bunch of callers, because a bug there was exposed as part of this work. BUG=273105, 293678 R=jyasskin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227602

Patch Set 1 #

Patch Set 2 : rename to provider #

Total comments: 1

Patch Set 3 : cleanup #

Patch Set 4 : cleanup #

Total comments: 37

Patch Set 5 : jeffrey #

Total comments: 2

Patch Set 6 : last comments #

Patch Set 7 : correct similarity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -358 lines) Patch
M chrome/common/extensions/docs/server2/api_data_source_test.py View 3 chunks +5 lines, -5 lines 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/app_yaml_helper.py View 1 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/common/extensions/docs/server2/app_yaml_helper_test.py View 1 2 3 2 chunks +15 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/availability_finder_test.py View 1 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/branch_utility.py View 1 2 3 4 5 4 chunks +15 lines, -8 lines 0 comments Download
M chrome/common/extensions/docs/server2/branch_utility_test.py View 3 chunks +30 lines, -30 lines 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.py View 1 2 8 chunks +17 lines, -16 lines 0 comments Download
M chrome/common/extensions/docs/server2/cron_servlet_test.py View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/host_file_system_creator.py View 1 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/common/extensions/docs/server2/host_file_system_creator_test.py View 1 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/common/extensions/docs/server2/host_file_system_iterator.py View 1 2 2 chunks +6 lines, -24 lines 0 comments Download
M chrome/common/extensions/docs/server2/host_file_system_iterator_test.py View 1 2 chunks +9 lines, -6 lines 0 comments Download
A + chrome/common/extensions/docs/server2/host_file_system_provider.py View 1 2 3 4 5 2 chunks +69 lines, -16 lines 0 comments Download
A + chrome/common/extensions/docs/server2/host_file_system_provider_test.py View 1 2 3 4 1 chunk +20 lines, -16 lines 0 comments Download
M chrome/common/extensions/docs/server2/instance_servlet.py View 1 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/patch_servlet.py View 1 2 3 4 2 chunks +29 lines, -18 lines 0 comments Download
M chrome/common/extensions/docs/server2/patch_servlet_test.py View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/patched_file_system.py View 1 2 3 4 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/common/extensions/docs/server2/render_servlet.py View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/server_instance.py View 1 2 7 chunks +19 lines, -27 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_data/canned_data.py View 1 chunk +24 lines, -24 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_servlet.py View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/test_servlet_test.py View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/memoize.py View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
not at google - send to devlin
I can have a look at submitting the branch-to-string fix separately if you want. It ...
7 years, 2 months ago (2013-10-08 15:48:39 UTC) #1
Jeffrey Yasskin
https://codereview.chromium.org/26418002/diff/3001/chrome/common/extensions/docs/server2/host_file_system_provider_test.py File chrome/common/extensions/docs/server2/host_file_system_provider_test.py (right): https://codereview.chromium.org/26418002/diff/3001/chrome/common/extensions/docs/server2/host_file_system_provider_test.py#newcode27 chrome/common/extensions/docs/server2/host_file_system_provider_test.py:27: ObjectStoreCreator.ForTest(), If you want git to notice moves (which ...
7 years, 2 months ago (2013-10-08 17:46:05 UTC) #2
not at google - send to devlin
I used a smaller similarity and it worked! Now to try to figure out why ...
7 years, 2 months ago (2013-10-08 18:27:37 UTC) #3
Jeffrey Yasskin
lgtm, but note the sorted() argument. https://codereview.chromium.org/26418002/diff/8001/chrome/common/extensions/docs/server2/branch_utility.py File chrome/common/extensions/docs/server2/branch_utility.py (right): https://codereview.chromium.org/26418002/diff/8001/chrome/common/extensions/docs/server2/branch_utility.py#newcode23 chrome/common/extensions/docs/server2/branch_utility.py:23: assert isinstance(channel, basestring), ...
7 years, 2 months ago (2013-10-08 20:49:38 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/26418002/diff/8001/chrome/common/extensions/docs/server2/branch_utility.py File chrome/common/extensions/docs/server2/branch_utility.py (right): https://codereview.chromium.org/26418002/diff/8001/chrome/common/extensions/docs/server2/branch_utility.py#newcode23 chrome/common/extensions/docs/server2/branch_utility.py:23: assert isinstance(channel, basestring), channel On 2013/10/08 20:49:39, Jeffrey Yasskin ...
7 years, 2 months ago (2013-10-08 21:29:36 UTC) #5
not at google - send to devlin
7 years, 2 months ago (2013-10-08 21:36:39 UTC) #6
Message was sent while issue was closed.
Committed patchset #7 manually as r227602 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698