Merge lp:~cjwatson/launchpad/snap-check-request-private-git into lp:launchpad
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Colin Watson | ||||
Proposed branch: | lp:~cjwatson/launchpad/snap-check-request-private-git | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~cjwatson/launchpad/snap-build-behaviour-macaroon | ||||
Diff against target: |
281 lines (+140/-16) (has conflicts) 5 files modified
lib/lp/snappy/interfaces/snap.py (+31/-2) lib/lp/snappy/model/snap.py (+9/-4) lib/lp/snappy/model/snapbuildbehaviour.py (+3/-9) lib/lp/snappy/tests/test_snap.py (+96/-0) lib/lp/snappy/tests/test_snapbuildbehaviour.py (+1/-1) Text conflict in lib/lp/services/config/schema-lazr.conf |
||||
To merge this branch: | bzr merge lp:~cjwatson/launchpad/snap-check-request-private-git | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Launchpad code reviewers | Pending | ||
Review via email: mp+365071@code.launchpad.net |
Commit message
Check that the snap owner has suitable read access if building a snap from a private Git repository.
Unmerged revisions
- 18649. By Colin Watson
-
Merge devel.
- 18648. By Colin Watson
-
Check that the snap owner has read access to the repository, rather than that owners match.
- 18647. By Colin Watson
-
Refine description of SnapBuildArchiv
eOwnerMismatch. - 18646. By Colin Watson
-
Refactor duplication between Snap.requestBui
ld(s) and SnapBuildBehaviour. It makes sense for these to perform the same checks. One thing becomes
slightly stricter as a result: if the requester was a member of the snap's
owner team when the build was requested, but was removed from that team
before the build was dispatched, then the dispatched build will now fail.
That seems arguably more correct. - 18645. By Colin Watson
-
Ensure that owners match exactly if building a snap from a private Git repository.
The owner of a repository can't necessarily read it. Ownership grants edit if read is granted, but read may have been revoked from +sharing.