Closed
Bug 798529
Opened 14 years ago
Closed 14 years ago
[shipping] django forms enforce non-blank milestone name, which we need for releases
Categories
(Webtools Graveyard :: Elmo, defect, P1)
Webtools Graveyard
Elmo
Tracking
(Not tracked)
RESOLVED
FIXED
2.4
People
(Reporter: Pike, Assigned: peterbe)
Details
Attachments
(1 file)
|
2.88 KB,
patch
|
Pike
:
review+
|
Details | Diff | Splinter Review |
When we moved the form validation on creating milestones to django forms, we apparently re-enforced that names are not ''.
We need the names to be empty strings for release milestones, though.
Not sure what it takes to fix that, peterbe, can you take a look?
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → peterbe
| Assignee | ||
Comment 1•14 years ago
|
||
Names? Where do we use "names"? The only form we have (apart from that for authentication) is SignoffFilterForm which takes milestone code, appversion code and a datetime.
| Assignee | ||
Comment 2•14 years ago
|
||
Ignore that. I got it. In create_milestones() (apps/shipping/views/release.py) we use::
if not request.POST.get('name-%s' % av):
return HttpResponseBadRequest("'name' not in posted details")
new_miles[av]['name'] = request.POST['name-%s' % av]
I'll change that to::
new_miles[av]['name'] = request.POST.get('name-%s' % av, '')
| Assignee | ||
Comment 3•14 years ago
|
||
Attachment #668599 -
Flags: review?(l10n)
| Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 668599 [details] [diff] [review]
Names default to blank now
Review of attachment 668599 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks.
Sorry for filing the bug in a confusing way, I remembered that the admin panel doesn't like the empty names, or so, and guessed that this was the place where we started using django forms for verification. Didn't check the code before filing.
Attachment #668599 -
Flags: review?(l10n) → review+
Comment 5•14 years ago
|
||
Commit pushed to develop at https://github.com/mozilla/elmo
https://github.com/mozilla/elmo/commit/5f7985fc03b00240f1fcc74b3e8d983546285eea
bug 798529 - non-blank milestone names, r=Pike
| Assignee | ||
Comment 6•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•13 years ago
|
Target Milestone: --- → 2.4
Updated•6 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•