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

Issue 2714773003: Extension Docs: Correct how enum values are rendered. (Closed)

Created:
3 years, 10 months ago by karandeepb
Modified:
3 years, 9 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently, enums with only a single possible value are prepended with a redundant "or" in the extension documentation. This CL modifies the template rendering the enums, to prevent this. BUG=695713 Review-Url: https://codereview.chromium.org/2714773003 Cr-Commit-Position: refs/heads/master@{#456812} Committed: https://chromium.googlesource.com/chromium/src/+/8d51c791c97394ab44a0c8376e8ef95c55fbee98

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add first to enum template parameters #

Total comments: 6

Patch Set 3 : Address review. #

Patch Set 4 : Rebase to fix presubmit. #

Patch Set 5 : Bump versions #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M chrome/common/extensions/docs/server2/app.yaml View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/jsc_view.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/templates/private/type.html View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/templates/private/variable_type.html View 1 2 1 chunk +8 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (23 generated)
karandeepb
PTAL Istiaque. Currently, the last enum value is prepended with a "or". This CL removes ...
3 years, 10 months ago (2017-02-24 01:44:34 UTC) #8
lazyboy
https://codereview.chromium.org/2714773003/diff/1/chrome/common/extensions/docs/templates/private/type.html File chrome/common/extensions/docs/templates/private/type.html (left): https://codereview.chromium.org/2714773003/diff/1/chrome/common/extensions/docs/templates/private/type.html#oldcode25 chrome/common/extensions/docs/templates/private/type.html:25: {{?e.last}}or {{/}}<code>"{{e.name}}"</code>{{^e.last}}, {{/}} I think you can use e.first, ...
3 years, 10 months ago (2017-02-25 00:51:38 UTC) #9
karandeepb
PTAL Istiaque. https://codereview.chromium.org/2714773003/diff/1/chrome/common/extensions/docs/templates/private/type.html File chrome/common/extensions/docs/templates/private/type.html (left): https://codereview.chromium.org/2714773003/diff/1/chrome/common/extensions/docs/templates/private/type.html#oldcode25 chrome/common/extensions/docs/templates/private/type.html:25: {{?e.last}}or {{/}}<code>"{{e.name}}"</code>{{^e.last}}, {{/}} On 2017/02/25 00:51:37, lazyboy ...
3 years, 10 months ago (2017-02-25 03:08:59 UTC) #10
lazyboy
One question about space https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html File chrome/common/extensions/docs/templates/private/type.html (right): https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html#newcode25 chrome/common/extensions/docs/templates/private/type.html:25: {{^e.last}} nit: 2 space indentation ...
3 years, 10 months ago (2017-02-25 03:48:06 UTC) #11
karandeepb
PTAL Istiaque. https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html File chrome/common/extensions/docs/templates/private/type.html (right): https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html#newcode25 chrome/common/extensions/docs/templates/private/type.html:25: {{^e.last}} On 2017/02/25 03:48:05, lazyboy wrote: > ...
3 years, 9 months ago (2017-02-27 03:06:20 UTC) #13
lazyboy
lgtm https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html File chrome/common/extensions/docs/templates/private/type.html (right): https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html#newcode25 chrome/common/extensions/docs/templates/private/type.html:25: {{^e.last}} On 2017/02/27 03:06:20, karandeepb wrote: > On ...
3 years, 9 months ago (2017-02-27 17:54:23 UTC) #14
karandeepb
https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html File chrome/common/extensions/docs/templates/private/type.html (right): https://codereview.chromium.org/2714773003/diff/20001/chrome/common/extensions/docs/templates/private/type.html#newcode25 chrome/common/extensions/docs/templates/private/type.html:25: {{^e.last}} On 2017/02/27 17:54:23, lazyboy wrote: > On 2017/02/27 ...
3 years, 9 months ago (2017-02-27 18:05:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2714773003/40001
3 years, 9 months ago (2017-02-27 18:19:04 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/373667)
3 years, 9 months ago (2017-02-27 18:31:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2714773003/120001
3 years, 9 months ago (2017-03-14 20:10:56 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 20:26:17 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/8d51c791c97394ab44a0c8376e8e...

Powered by Google App Engine
This is Rietveld 408576698