Merge lp://staging/~zematynnad/rnr-server/architecture_688121 into lp://staging/rnr-server

Proposed by Danny Tamez
Status: Merged
Approved by: David Owen
Approved revision: 107
Merged at revision: 113
Proposed branch: lp://staging/~zematynnad/rnr-server/architecture_688121
Merge into: lp://staging/rnr-server
Diff against target: 104 lines (+47/-6)
3 files modified
src/reviewsapp/forms.py (+6/-4)
src/reviewsapp/tests/test_rnrclient.py (+37/-0)
src/reviewsapp/utilities.py (+4/-2)
To merge this branch: bzr merge lp://staging/~zematynnad/rnr-server/architecture_688121
Reviewer Review Type Date Requested Status
Anthony Lenton (community) Approve
David Owen (community) Approve
Review via email: mp+46972@code.staging.launchpad.net

Description of the change

Now also checking architecture when looking for a match in the database to verify the combo of distro, app, pkg, and arch - else checking with lp.

To post a comment you must log in.
Revision history for this message
David Owen (dsowen) :
review: Approve
Revision history for this message
Anthony Lenton (elachuni) wrote :

I think as well as adding arch_tag as an optional argument to lp_verify_packagename_in_distro, you'd need to pass arch_tag in when you call the function, in forms.py (probably also adding the arch verification to the check in _validate_and_populate_software_item); could you check this?

review: Needs Fixing
Revision history for this message
Danny Tamez (zematynnad) wrote :

Michael, I modified the test to return a 302 instead of a 404 and ensured that we made it to the checkout url. Yes, those lines were doing what I wanted but for clarity I have changed them to the .add syntax.

108. By Danny Tamez

Checking arch_tag as well when validating the existence of a package

109. By Danny Tamez

Merge from trunk

Revision history for this message
Danny Tamez (zematynnad) wrote :

Please ignore the above comment - typing in wrong window
I've added the arch_tag to the _validate_and_populate_software_item call to lp_verify_packagename

Revision history for this message
Anthony Lenton (elachuni) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches