Closed Bug 804684 Opened 12 years ago Closed 9 years ago

[socorro-crashstats] Refactor IDs with uppercase.

Categories

(Socorro :: Webapp, task)

task
Not set
normal

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.
Depends on: 749359
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [mentor=adrian@mozilla.com]
Mentor: adrian
Whiteboard: [mentor=adrian@mozilla.com]
Is it still available this?
(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.
Vanessa, this is free for you to work on. Do you want me to assign you to this bug?
Yes! I want to work on this bug :)
Assignee: nobody → vchipirras6
(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?
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.
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.
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
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
(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.
You need to log in before you can comment on or make changes to this bug.