Closed
Bug 804684
Opened 12 years ago
Closed 9 years ago
[socorro-crashstats] Refactor IDs with uppercase.
Categories
(Socorro :: Webapp, task)
Socorro
Webapp
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: peterbe, Assigned: vchipirras6, Mentored)
References
Details
All occurances of things like `id="camelCase"` should be refactored to something safer such as `id="camel-case"`. This involves not just changing the HTML templates but also all javascript (e.g. s/#camelCase/#camel-case) and all Socorro-Tests code that depends on that ID.
Updated•11 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [mentor=adrian@mozilla.com]
Updated•10 years ago
|
Mentor: adrian
Whiteboard: [mentor=adrian@mozilla.com]
Assignee | ||
Comment 1•9 years ago
|
||
Is it still available this?
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to vchipirras6@gmail.com from comment #1) > Is it still available this? Grep the code for all occurances of `id=` in the the *.html files and look for patterns.
Comment 3•9 years ago
|
||
Vanessa, this is free for you to work on. Do you want me to assign you to this bug?
Assignee | ||
Comment 4•9 years ago
|
||
Yes! I want to work on this bug :)
Updated•9 years ago
|
Assignee: nobody → vchipirras6
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Peter Bengtsson [:peterbe] from comment #2) > (In reply to vchipirras6@gmail.com from comment #1) > > Is it still available this? > > Grep the code for all occurances of `id=` in the the *.html files and look > for patterns. I found ID with camelcase but in a .tmpl file .¿Lo change there too or just js css or html files?
Reporter | ||
Comment 6•9 years ago
|
||
I didn't even know we have .tmpl files. I think I've explain this bug poorly. I made a grep search on all of our .html files and found the following things to focus on: https://gist.github.com/peterbe/15961ae8387e7936e3b6 For example, there is a `id="signatureList"` and that should become `id="signature-list"` and if this is referenced in a .css file or a .js file as `#signatureList` or `$('#signatureList')` it needs to change to `#signature-list` accordingly.
Assignee | ||
Comment 7•9 years ago
|
||
I understood the bug, but I was wrong when I searched all ID with camelcase in Socorro project. I found .tmpl files, but these files are not you work on it, are dependencies installed. I was wrong on this, sorry, did not see it well before asking. The IDs you found, I had already changed, I thought there were more ID with camelcase. Then, you assured me that no more. Thank you very much for answering.
Comment 8•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/81bd73df979e054877d4195d3f670d07b8d109a5 fix bug 804684. Changed the IDs without camelcase https://github.com/mozilla/socorro/commit/118e49e43bb616808492233cbdde579023025520 Merge pull request #2757 from AdrianGaudebert/804684-refactor-ids fix bug 804684. Changed the IDs without camelcase
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 9•9 years ago
|
||
(In reply to Peter Bengtsson [:peterbe] from comment #0) > This involves not just changing the HTML templates but also all javascript > (e.g. s/#camelCase/#camel-case) and all Socorro-Tests code that depends on > that ID. Socorro-Tests was not updated. See for example: https://github.com/mozilla/Socorro-Tests/blob/051d22f84c8993119c5a92356026547ab765ecbf/pages/crash_stats_top_crashers_page.py#L32 I will open an issue in the Socorro-Tests repository to address this.
Comment 10•9 years ago
|
||
See: https://github.com/mozilla/Socorro-Tests/issues/314
You need to log in
before you can comment on or make changes to this bug.
Description
•