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

Issue 385703005: Docserver: Modify doc inlining so all relevant data is present in availability_finder.py (Closed)

Created:
6 years, 5 months ago by ahernandez
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Docserver: Modify doc inlining so all relevant data is present in availability_finder.py Not inlining schema nodes for availability finder causes data to go missing and availability to not be found. Inlining schema nodes means that availability data gets messed up when a node is no longer inlined, because inlined nodes are deleted from the schema. Solution: Inline nodes, but do not remove them from the schema when used in availability_finder.py. This provides all the necessary data, and doesn't interfere with availability data generation when a node is no longer inlined because it will be still be present in the schema graphs. BUG=233982 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283579

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add test #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Final nit #

Messages

Total messages: 16 (0 generated)
ahernandez
https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py File chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py (right): https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py#newcode482 chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py:482: ' // $ref:WasImplicitlyInlinedType', I need a bit of help ...
6 years, 5 months ago (2014-07-10 22:03:16 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py File chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py (right): https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py#newcode482 chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py:482: ' // $ref:WasImplicitlyInlinedType', On 2014/07/10 22:03:15, ahernandez wrote: > ...
6 years, 5 months ago (2014-07-15 21:02:38 UTC) #2
not at google - send to devlin
nice approach, just a nit really, and awaiting result of your testing. https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/api_data_source.py File chrome/common/extensions/docs/server2/api_data_source.py ...
6 years, 5 months ago (2014-07-15 21:12:05 UTC) #3
ahernandez
What should the BUG be/does there need to be a BUG for this?
6 years, 5 months ago (2014-07-15 22:02:31 UTC) #4
not at google - send to devlin
On 2014/07/15 22:02:31, ahernandez wrote: > What should the BUG be/does there need to be ...
6 years, 5 months ago (2014-07-15 22:30:51 UTC) #5
ahernandez
On 2014/07/15 22:30:51, kalman wrote: > On 2014/07/15 22:02:31, ahernandez wrote: > > What should ...
6 years, 5 months ago (2014-07-15 22:35:37 UTC) #6
not at google - send to devlin
lgtm but please address those nits. https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/schema_util.py File chrome/common/extensions/docs/server2/schema_util.py (right): https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/schema_util.py#newcode95 chrome/common/extensions/docs/server2/schema_util.py:95: def ProcessSchema(path, file_data, ...
6 years, 5 months ago (2014-07-15 22:43:21 UTC) #7
ahernandez
https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/schema_util.py File chrome/common/extensions/docs/server2/schema_util.py (right): https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/schema_util.py#newcode95 chrome/common/extensions/docs/server2/schema_util.py:95: def ProcessSchema(path, file_data, full_inline=False): On 2014/07/15 22:43:20, kalman wrote: ...
6 years, 5 months ago (2014-07-15 22:49:52 UTC) #8
not at google - send to devlin
On 2014/07/15 22:49:52, ahernandez wrote: > https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/schema_util.py > File chrome/common/extensions/docs/server2/schema_util.py (right): > > https://codereview.chromium.org/385703005/diff/1/chrome/common/extensions/docs/server2/schema_util.py#newcode95 > ...
6 years, 5 months ago (2014-07-15 23:01:08 UTC) #9
ahernandez
I had confused myself earlier, that's why my comments probably made no sense. Could you ...
6 years, 5 months ago (2014-07-16 02:00:57 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/385703005/diff/100001/chrome/common/extensions/docs/server2/api_models.py File chrome/common/extensions/docs/server2/api_models.py (right): https://codereview.chromium.org/385703005/diff/100001/chrome/common/extensions/docs/server2/api_models.py#newcode42 chrome/common/extensions/docs/server2/api_models.py:42: # finding purposes; they should be removed when creating ...
6 years, 5 months ago (2014-07-16 16:17:15 UTC) #11
ahernandez
I this what you meant? PTAL.
6 years, 5 months ago (2014-07-16 19:09:56 UTC) #12
not at google - send to devlin
yep, lgtm. https://codereview.chromium.org/385703005/diff/120001/chrome/common/extensions/docs/server2/availability_finder.py File chrome/common/extensions/docs/server2/availability_finder.py (right): https://codereview.chromium.org/385703005/diff/120001/chrome/common/extensions/docs/server2/availability_finder.py#newcode155 chrome/common/extensions/docs/server2/availability_finder.py:155: def comp_func(path, data): s/comp_func/process_schema/
6 years, 5 months ago (2014-07-16 20:03:50 UTC) #13
ahernandez
The CQ bit was checked by ahernandez.miralles@gmail.com
6 years, 5 months ago (2014-07-16 20:54:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/385703005/140001
6 years, 5 months ago (2014-07-16 20:59:11 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 23:38:34 UTC) #16
Message was sent while issue was closed.
Change committed as 283579

Powered by Google App Engine
This is Rietveld 408576698