|
|
Created:
6 years, 9 months ago by ahernandez Modified:
6 years, 9 months ago Reviewers:
not at google - send to devlin CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
DescriptionAdd support for "documented_in" annotation in json api schema
BUG=341275
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260306
Patch Set 1 #
Total comments: 14
Patch Set 2 : #Patch Set 3 : Bump version #Patch Set 4 : Bump version (again) #Patch Set 5 : Bump version (again) #
Messages
Total messages: 40 (0 generated)
Could you please take a look at this? https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... File chrome/common/extensions/docs/server2/api_data_source_test.py (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/api_data_source_test.py:93: return Future(value=_FakeNamespace()) I needed to return a namespace object so the addition to reference resolver doesn't cause failures. https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... File chrome/common/extensions/docs/server2/reference_resolver_test.py (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver_test.py:42: return Future(value=FakeNamespace()) Same as above.
https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... File chrome/common/extensions/api/webview_tag.json (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" shouldn't this be "tags/webview"? https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... File chrome/common/extensions/docs/server2/reference_resolver.py (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver.py:117: api_namespace = self._api_models.GetModel(api_name).Get() api_model also this .Get() will be interesting, hopefully it won't slow things down too much. I guess we'll see. https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver.py:118: api_name = api_namespace.documentation_options.get('documented_in', |api_name| is not a correct way to refer to this. perhaps api_model = ... filename = api_model.documentation_options.get( 'documented_in', api_name) https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver.py:121: 'href': '%s.html#%s-%s' % (api_name, category, name.replace('.', '-')), we can drop the .html from these now, actually. could you do that file-wide? https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... File chrome/common/extensions/docs/server2/reference_resolver_test.py (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver_test.py:42: return Future(value=FakeNamespace()) On 2014/03/26 22:03:32, ahernandez.miralles wrote: > Same as above. could you prefix them (and the existing classes I suppose) with _ ? https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver_test.py:45: class APIDataSourceTest(unittest.TestCase): wow. this should be called ReferenceResolverTest...
https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... File chrome/common/extensions/api/webview_tag.json (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" On 2014/03/26 22:11:11, kalman wrote: > shouldn't this be "tags/webview"? I'm not sure actually. It works like this though. https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... File chrome/common/extensions/docs/server2/reference_resolver_test.py (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/doc... chrome/common/extensions/docs/server2/reference_resolver_test.py:45: class APIDataSourceTest(unittest.TestCase): On 2014/03/26 22:11:11, kalman wrote: > wow. this should be called ReferenceResolverTest... I didn't even notice... we can pretend it's always been ReferenceResolverTest now.
https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... File chrome/common/extensions/api/webview_tag.json (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" On 2014/03/26 22:15:38, ahernandez.miralles wrote: > On 2014/03/26 22:11:11, kalman wrote: > > shouldn't this be "tags/webview"? > > I'm not sure actually. It works like this though. What do you mean it works?
On 2014/03/26 22:20:10, kalman wrote: > https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... > File chrome/common/extensions/api/webview_tag.json (right): > > https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... > chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" > On 2014/03/26 22:15:38, ahernandez.miralles wrote: > > On 2014/03/26 22:11:11, kalman wrote: > > > shouldn't this be "tags/webview"? > > > > I'm not sure actually. It works like this though. > > What do you mean it works? The links resolve properly (i.e no errors from ReferenceResolver during integration_test and a manual check confirmed that the links went to the correct location)
> The links resolve properly (i.e no errors from ReferenceResolver during > integration_test and a manual check confirmed that the links went to the correct > location) which links are we talking about here? If I go to http://localhost:8000/apps/tags/webview#method-clearData the "ClearDataOptions" still links to webviewTag.html.
On 2014/03/26 22:34:07, kalman wrote: > > The links resolve properly (i.e no errors from ReferenceResolver during > > integration_test and a manual check confirmed that the links went to the > correct > > location) > > which links are we talking about here? If I go to > > http://localhost:8000/apps/tags/webview#method-clearData > > the "ClearDataOptions" still links to webviewTag.html. Interesting. I just double checked on on mine (I ran preview.py) and it worked. I'll switch it to "tags/webview" since that works as well.
On 2014/03/26 22:37:35, ahernandez.miralles wrote: > On 2014/03/26 22:34:07, kalman wrote: > > > The links resolve properly (i.e no errors from ReferenceResolver during > > > integration_test and a manual check confirmed that the links went to the > > correct > > > location) > > > > which links are we talking about here? If I go to > > > > http://localhost:8000/apps/tags/webview#method-clearData > > > > the "ClearDataOptions" still links to webviewTag.html. > > Interesting. I just double checked on on mine (I ran preview.py) and it worked. > I'll switch it to "tags/webview" since that works as well. I patched in the wrong CL :\ 1 sec..
https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... File chrome/common/extensions/api/webview_tag.json (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" On 2014/03/26 22:20:10, kalman wrote: > On 2014/03/26 22:15:38, ahernandez.miralles wrote: > > On 2014/03/26 22:11:11, kalman wrote: > > > shouldn't this be "tags/webview"? > > > > I'm not sure actually. It works like this though. > > What do you mean it works? Ok you're right, it works, but the documentation *does* live in "tags/webview" not "webview" so it puzzles me that it works.
https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... File chrome/common/extensions/api/webview_tag.json (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" On 2014/03/26 22:43:33, kalman wrote: > On 2014/03/26 22:20:10, kalman wrote: > > On 2014/03/26 22:15:38, ahernandez.miralles wrote: > > > On 2014/03/26 22:11:11, kalman wrote: > > > > shouldn't this be "tags/webview"? > > > > > > I'm not sure actually. It works like this though. > > > > What do you mean it works? > > Ok you're right, it works, but the documentation *does* live in "tags/webview" > not "webview" so it puzzles me that it works. I think it has to do with the redirects.
https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... File chrome/common/extensions/api/webview_tag.json (right): https://codereview.chromium.org/213673002/diff/1/chrome/common/extensions/api... chrome/common/extensions/api/webview_tag.json:12: "documented_in": "webview" On 2014/03/26 22:46:21, ahernandez.miralles wrote: > On 2014/03/26 22:43:33, kalman wrote: > > On 2014/03/26 22:20:10, kalman wrote: > > > On 2014/03/26 22:15:38, ahernandez.miralles wrote: > > > > On 2014/03/26 22:11:11, kalman wrote: > > > > > shouldn't this be "tags/webview"? > > > > > > > > I'm not sure actually. It works like this though. > > > > > > What do you mean it works? > > > > Ok you're right, it works, but the documentation *does* live in "tags/webview" > > not "webview" so it puzzles me that it works. > > I think it has to do with the redirects. I'll change it to "tags/webview" anyways so it's clear where the file is.
PTAL
lgtm
you need to bump app.yaml and cron.yaml versions
On 2014/03/26 23:55:10, kalman wrote: > you need to bump app.yaml and cron.yaml versions The end number or middle number?
Let's say the middle.
The CQ bit was checked by ahernandez.miralles@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/21367300...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
The CQ bit was checked by ahernandez.miralles@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/21367300...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for chrome/common/extensions/docs/server2/app.yaml: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file chrome/common/extensions/docs/server2/app.yaml Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file chrome/common/extensions/docs/server2/app.yaml.rej Patch: chrome/common/extensions/docs/server2/app.yaml Index: chrome/common/extensions/docs/server2/app.yaml diff --git a/chrome/common/extensions/docs/server2/app.yaml b/chrome/common/extensions/docs/server2/app.yaml index 324f88c579fc700b27d297af37a8dcf723c6b5a7..325d09d2c11bc2add36206dfac7fc15947706136 100644 --- a/chrome/common/extensions/docs/server2/app.yaml +++ b/chrome/common/extensions/docs/server2/app.yaml @@ -1,5 +1,5 @@ application: chrome-apps-doc -version: 3-14-5 +version: 3-15-0 runtime: python27 api_version: 1 threadsafe: false
The CQ bit was checked by ahernandez.miralles@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/21367300...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
The CQ bit was checked by ahernandez.miralles@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/21367300...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for chrome/common/extensions/docs/server2/app.yaml: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file chrome/common/extensions/docs/server2/app.yaml Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file chrome/common/extensions/docs/server2/app.yaml.rej Patch: chrome/common/extensions/docs/server2/app.yaml Index: chrome/common/extensions/docs/server2/app.yaml diff --git a/chrome/common/extensions/docs/server2/app.yaml b/chrome/common/extensions/docs/server2/app.yaml index 7b9ac8b18b49a0b0753c71953fa24802ff91a0d1..db123ace763c04523b6c424e666de9fee8532c0e 100644 --- a/chrome/common/extensions/docs/server2/app.yaml +++ b/chrome/common/extensions/docs/server2/app.yaml @@ -1,5 +1,5 @@ application: chrome-apps-doc -version: 3-15-1 +version: 3-16-0 runtime: python27 api_version: 1 threadsafe: false
The CQ bit was checked by ahernandez.miralles@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/21367300...
lgtm use NOTRY=true
The CQ bit was unchecked by commit-bot@chromium.org
Commit queue rejected this change because the description was changed between the time the change entered the commit queue and the time it was ready to commit. You can safely check the commit box again.
The CQ bit was checked by ahernandez.miralles@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/21367300...
Message was sent while issue was closed.
Change committed as 260306 |