Closed
Bug 1066184
Opened 10 years ago
Closed 10 years ago
data/params.js should be renamed to data/params.json since the data form is JSON and not JS
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: dkl, Assigned: dkl)
References
Details
Attachments
(1 file, 1 obsolete file)
6.92 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Something I should have caught earlier on in the review process but since it is not too late, is that the newly formatted data/params.js should be instead named data/params.json. The data contained inside is in JSON format and the standard extension name is .json dkl
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8488100 -
Flags: review?(LpSolit)
Comment 2•10 years ago
|
||
Comment on attachment 8488100 [details] [diff] [review] 1066184_1.patch >--- a/Bugzilla/Config.pm You forgot to fix the message when we delete the old data/params file: say "$old_file has been converted into $old_file.js, using the JSON format."; It must say "into $old_file.json". Also, as some installations already upgraded, such as landfill-tip or probably several developer installations, you must add code to update_params() to rename the already converted data/params.js into data/params.json. A trivial rename "$old_file.js", "$old_file.json" if -e "$old_file.js"; right before the call to read_param_file() will do it. >--- a/template/en/default/admin/params/editparams.html.tmpl >+++ b/template/en/default/admin/params/editparams.html.tmpl >- javascript_urls = ['js/params.js', 'js/util.js'] >+ javascript_urls = ['js/params.json', 'js/util.js'] This change must go away. js/params.js and data/params.js are two distinct files. :) Everything else is fine.
Attachment #8488100 -
Flags: review?(LpSolit) → review-
Updated•10 years ago
|
Target Milestone: --- → Bugzilla 5.0
Comment 3•10 years ago
|
||
(In reply to Frédéric Buclin from comment #2) > rename "$old_file.js", "$old_file.json" if -e "$old_file.js"; You could also write: rename "$old_file.js", "$old_file.json" if -e "$old_file.js" && !-e "$old_file.json"; to make sure that an unrelated params.js won't override an existing params.json in the future.
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8488100 -
Attachment is obsolete: true
Attachment #8488185 -
Flags: review?(LpSolit)
Comment 5•10 years ago
|
||
Comment on attachment 8488185 [details] [diff] [review] 1066184_2.patch r=LpSolit
Attachment #8488185 -
Flags: review?(LpSolit) → review+
Updated•10 years ago
|
Flags: approval?
Updated•10 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 6•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git c11b241..84ec7f6 master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•