Merge lp:~sinzui/launchpad/edit-packaging-oops-bug-456622 into lp:launchpad
Proposed by
Curtis Hovey
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Brad Crittenden | ||||||||||||
Approved revision: | no longer in the source branch. | ||||||||||||
Merged at revision: | not available | ||||||||||||
Proposed branch: | lp:~sinzui/launchpad/edit-packaging-oops-bug-456622 | ||||||||||||
Merge into: | lp:launchpad | ||||||||||||
Diff against target: |
182 lines 4 files modified
lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt (+2/-1) lib/lp/registry/browser/sourcepackage.py (+36/-2) lib/lp/registry/browser/tests/sourcepackage-views.txt (+49/-4) lib/lp/registry/interfaces/sourcepackage.py (+4/-5) |
||||||||||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/edit-packaging-oops-bug-456622 | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+14007@code.launchpad.net |
To post a comment you must log in.
This is my branch to fix oopses for empty form values in +edit-packaging.
lp:~sinzui/launchpad/edit-packaging-oops-bug-456622 /bugs.launchpad .net/bugs/ 456622 /bugs.launchpad .net/bugs/ 438090 /bugs.launchpad .net/bugs/ 276417 *sourcepackage- views" implementation: No one. This look similar to other OOPs I fixed in
Diff size: 169
Launchpad bug: https:/
https:/
https:/
Test command: ./bin/test -vvt "lp.registry.
Pre-
the past week.
Target release: 3.1.10
= Fix oopses for empty form values in +edit-packaging =
Bug 456622 [OOPS submitting empty +edit-packaging page] productseries is raised when the form is submitted with the
As seen in OOPS-1388EA532 a NoneError: None isn't acceptable as a value
for Packaging.
product series field empty
Bug 438090 ["Define upstream link" form text is gibberish]
* The form should not refer to things that don't exist in Launchpad,
such as "product series".
* The form label should use standard Launchpad capitalization and
punctuation, i.e. "Project series:" rather than "Product Series".
* The page title should be "Link to an upstream project".
* The language should be free from grammar errors.
Bug 276417 [Launchpad thanks you for package-upstream link no-op]
* An informational alert appears, falsely claiming "Upstream link updated,
thank you!".
== Rules ==
Bug 456622 [OOPS submitting empty +edit-packaging page]
* Add validation to the form
* Add setupFields to force the productseries field to be required.
Bug 438090 ["Define upstream link" form text is gibberish]
* Updated the schema to be clear about what is expected
* Fix the forms label/page_title to: Link to an upstream project
Bug 276417 [Launchpad thanks you for package-upstream link no-op]
* Return early if the update action is a no-op.
== QA ==
Visit staging.
* Choose to edit a sourcepackage link
* Verify that the form ask you to choose a *Project* series.
* Verify it is listed in the field.
* Change nothing and Choose update
* Verify you are not thanks for changing the link
* Choose edit again.
* Empty the field and choose update
* Verify the form reports a field error.
== Lint ==
Linting changed files: registry/ browser/ sourcepackage. py registry/ browser/ tests/sourcepac kage-views. txt registry/ interfaces/ sourcepackage. py
lib/lp/
lib/lp/
lib/lp/
== Test ==
* lib/lp/ registry/ browser/ tests/sourcepac kage-views. txt
* Verified the new page title.
* Verified that the widget has the correct default value.
* Added a test to verify the form explains that the project series
must be chosen.
* Added a test to verify a change notification is not shown when there
is no change.
== Implementation ==
* lib/lp/ registry/ browser/ sourcepackage. py
* Updated the page title.
* Added setupFields to make the field required--it is not required
by the object's main schema.
* Added a setupWidgets to set the default value of the HTML field.
* Added a validate method to raise a clear error message.
* Updated the change...