Merge lp:~abentley/charmworld/polish-ingest-bundle into lp:~juju-jitsu/charmworld/trunk
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | 335 |
Merged at revision: | 334 |
Proposed branch: | lp:~abentley/charmworld/polish-ingest-bundle |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
80 lines (+30/-7) 2 files modified
charmworld/jobs/ingest.py (+9/-7) charmworld/jobs/tests/test_ingest.py (+21/-0) |
To merge this branch: | bzr merge lp:~abentley/charmworld/polish-ingest-bundle |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | code | Approve | |
Review via email: mp+178376@code.launchpad.net |
Commit message
Stop ingest from crashing with bundles.
Description of the change
This branch fixes two obvious problems with ingesting bundles:
1. When retrieving files from a branch, the branch is not read-locked first.
2. When decorating bundles, the basket _id is needed, but not supplied.
2. was more confused because the variable was called basket_data, but it was the basket contents, not its data (which does have an _id).
With these changes, local ingests work.
To post a comment you must log in.
This looks good. I think I introduced the non-lock bug you fixed, so I'm glad to see it fixed. Having tests is wonderful too. Thanks.