Closed
Bug 849077
Opened 12 years ago
Closed 10 years ago
Use Django's forms for dashboard controls, instead of reinventing the wheel.
Categories
(Input Graveyard :: Code Quality, defect)
Input Graveyard
Code Quality
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mythmon, Assigned: deshrajdry, Mentored)
Details
In Kitsune, I'm doing a bunch of graph stuff. It's fun. This time I chose to use Django's form elements instead of doing a bunch of input validation on my own. It was so much simpler, and a lot cleaner, and a lot less error prone.
We should do this on Fjord too. This would mean taking anything that the views in fjord.analytics.views that touches GET or POST data and replacing it with making a Django form, making it work with the same kind of data, and changing the code to use the form.
| Assignee | ||
Comment 1•10 years ago
|
||
I would like to work on this. Please assign it to me.
| Reporter | ||
Comment 2•10 years ago
|
||
Alright, it is yours. Let me know if you have any trouble with this.
Assignee: nobody → deshrajdry
Comment 3•10 years ago
|
||
Mike: This isn't marked as a mentored bug. Do you want to mentor him here?
| Reporter | ||
Comment 4•10 years ago
|
||
That was my plan, yes. He and I talked in irc before this. I probably should have mentioned that. I'll add the mentor bits.
Whiteboard: [mentor=mythmon]
Comment 5•10 years ago
|
||
There's a mentor field now. I'll set it for you. Otherwise mhoye will eat your lunch.
Mentor: mcooper
Whiteboard: [mentor=mythmon]
| Assignee | ||
Comment 6•10 years ago
|
||
This bug requires huge changes in the code. After binding django form, it needs to replace the macro used in the template and write the new logic for displaying the fields which requires alot of changes to be done in analytics/dashboard.html and fjord/analytics/views.py . So use of django form will not bring the significant change and will consume alot of time and I think it should be closed as RESOLVED WONTFIX.
Comment 7•10 years ago
|
||
Mike: You opened this bug. Does comment #6 cover it? Or would you rather keep it open and reduce the scope a bit or change tack or something like that?
| Reporter | ||
Comment 9•10 years ago
|
||
I talked with deshrajdry while he was working on it. Since I filed the bug, the view has changed a lot, and making it use Django's form machinery would be a large change, like he said. I think that the code is good as it stands now.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(mcooper)
Resolution: --- → WONTFIX
Updated•8 years ago
|
Product: Input → Input Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•