Closed Bug 853504 Opened 13 years ago Closed 13 years ago

When submitting a new release, on error, ship it returns on the fennec tab

Categories

(Release Engineering :: Release Automation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: massimo, Assigned: massimo)

References

Details

(Whiteboard: [shipit])

Attachments

(1 file, 3 obsolete files)

When submitting a release that does not validate, ship it shows always the fennec tab (first tab) instead of the one that caused the validation error.
Assignee: nobody → mgervasini
Priority: P3 → --
This patch forces the selection of the 'product' tab passed in the errors list. other changes: * removed javascript used for radio buttons * updated error css
Attachment #728198 - Flags: review?(bhearsum)
Comment on attachment 728198 [details] [diff] [review] on error, the right tab is selected Review of attachment 728198 [details] [diff] [review]: ----------------------------------------------------------------- I like the look of this, just one small thing to fix. ::: kickoff/views/submit.py @@ +46,4 @@ > for error in form.errors.values(): > errors.extend(error) > if errors: > + errors.append(product) This is pretty hacky....how about supporting a selectedProduct or similar in the template, and defaulting it to Fennec or Firefox?
Attachment #728198 - Flags: review?(bhearsum) → review-
Yes, totally hacky! Now passing selectedProduct=product to the template. There is no need for a default value; if product does not exist or is not set to firefox/thunderbird, the first tab is selected automatically.
Attachment #728198 - Attachment is obsolete: true
Attachment #728258 - Flags: review?(bhearsum)
sorry, Ben. Last patch file was totally wrong
Attachment #728258 - Attachment is obsolete: true
Attachment #728258 - Flags: review?(bhearsum)
Attachment #728269 - Flags: review?(bhearsum)
I've spotted another issue: when editing a release, there is red bar at the top of the page (empty errors list). This new patch solves this problem too.
Attachment #728269 - Attachment is obsolete: true
Attachment #728269 - Flags: review?(bhearsum)
Attachment #728290 - Flags: review?(bhearsum)
Attachment #728290 - Flags: review?(bhearsum) → review+
Attachment #728290 - Flags: checked-in+
Depends on: 853503
This is in production.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: