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

Issue 10910208: Extensions Docs Server: Fix 404s from API links on the samples page (Closed)

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

Description

Extensions Docs Server: Fix 404s from API links on the samples page Some links to APIs were giving 404s from the samples page. This was because names of APIs like app.window were being split up wrong. The samples page will now only have links to valid pages. BUG=146975 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156707

Patch Set 1 #

Total comments: 8

Patch Set 2 : tests #

Total comments: 4

Patch Set 3 : more changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -14 lines) Patch
M chrome/common/extensions/docs/server2/handler.py View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/samples_data_source.py View 1 2 6 chunks +36 lines, -9 lines 0 comments Download
M chrome/common/extensions/docs/server2/samples_data_source_test.py View 1 2 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
cduvall
8 years, 3 months ago (2012-09-11 21:44:41 UTC) #1
not at google - send to devlin
neat. it would be nice to test it though. http://codereview.chromium.org/10910208/diff/1/chrome/common/extensions/docs/server2/samples_data_source.py File chrome/common/extensions/docs/server2/samples_data_source.py (right): http://codereview.chromium.org/10910208/diff/1/chrome/common/extensions/docs/server2/samples_data_source.py#newcode53 chrome/common/extensions/docs/server2/samples_data_source.py:53: ...
8 years, 3 months ago (2012-09-11 23:40:00 UTC) #2
cduvall
https://chromiumcodereview.appspot.com/10910208/diff/1/chrome/common/extensions/docs/server2/samples_data_source.py File chrome/common/extensions/docs/server2/samples_data_source.py (right): https://chromiumcodereview.appspot.com/10910208/diff/1/chrome/common/extensions/docs/server2/samples_data_source.py#newcode53 chrome/common/extensions/docs/server2/samples_data_source.py:53: def _MakeAPIList(self): On 2012/09/11 23:40:00, kalman wrote: > _GetAllAPINames? ...
8 years, 3 months ago (2012-09-12 21:59:05 UTC) #3
not at google - send to devlin
lgtm http://codereview.chromium.org/10910208/diff/1/chrome/common/extensions/docs/server2/samples_data_source.py File chrome/common/extensions/docs/server2/samples_data_source.py (right): http://codereview.chromium.org/10910208/diff/1/chrome/common/extensions/docs/server2/samples_data_source.py#newcode140 chrome/common/extensions/docs/server2/samples_data_source.py:140: link = self._MakeAPILink('method', item) On 2012/09/12 21:59:05, cduvall ...
8 years, 3 months ago (2012-09-14 00:47:19 UTC) #4
cduvall
8 years, 3 months ago (2012-09-14 01:10:28 UTC) #5
https://chromiumcodereview.appspot.com/10910208/diff/1/chrome/common/extensio...
File chrome/common/extensions/docs/server2/samples_data_source.py (right):

https://chromiumcodereview.appspot.com/10910208/diff/1/chrome/common/extensio...
chrome/common/extensions/docs/server2/samples_data_source.py:140: link =
self._MakeAPILink('method', item)
On 2012/09/14 00:47:19, kalman wrote:
> On 2012/09/12 21:59:05, cduvall wrote:
> > On 2012/09/11 23:40:00, kalman wrote:
> > > TODO(cduvall): this might be a property.
> > 
> > Done.
> 
> or a type (sorry)

Done.

https://chromiumcodereview.appspot.com/10910208/diff/5001/chrome/common/exten...
File chrome/common/extensions/docs/server2/handler.py (right):

https://chromiumcodereview.appspot.com/10910208/diff/5001/chrome/common/exten...
chrome/common/extensions/docs/server2/handler.py:334:
self.response.set_status(404)
On 2012/09/14 00:47:20, kalman wrote:
> could we actually show the real 404 page? figure out a way to share code with
> the other place we show the 404?
> 
> p.s. i wonder if this will be automatically fixed by your other change
> (http://codereview.chromium.org/10911301/) anyway

Done.

https://chromiumcodereview.appspot.com/10910208/diff/5001/chrome/common/exten...
File chrome/common/extensions/docs/server2/samples_data_source.py (right):

https://chromiumcodereview.appspot.com/10910208/diff/5001/chrome/common/exten...
chrome/common/extensions/docs/server2/samples_data_source.py:129: api_list =
self._GetAllAPINames()
On 2012/09/14 00:47:20, kalman wrote:
> put this right at the top of _MakeSamplesList, it doesn't need to be
calculated
> for each file and api item

Done. Oops that was dumb.

Powered by Google App Engine
This is Rietveld 408576698