~adeboella/launchpad:stable

Last commit made on 2022-12-15
Get this branch:
git clone -b stable https://git.launchpad.net/~adeboella/launchpad
Only innocent can upload to this branch. If you are innocent please log in for upload directions.

Branch merges

Branch information

Name:
stable
Repository:
lp:~adeboella/launchpad

Recent commits

5920fe3... by Colin Watson

Refactor _updateByHash to clarify logic

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/434573

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
bde545e... by Colin Watson

Fix copy-and-paste error in docstring

d4c45bd... by Colin Watson

Return proxied objects from makeDistroArchSeriesFilter

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/434622

31c7876... by Colin Watson

Fix BranchDeletionView's checks on deletion requirements

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/434634

66c755b... by Colin Watson

Fix BranchDeletionView's checks on deletion requirements

The recent work to allow registry experts to delete branches involved
changing the permission for deleting branches from `launchpad.Edit` to
`launchpad.Moderate`. That work also changed
`BranchDeletionView.display_deletion_requirements` to check for the
`launchpad.Moderate` permission on deletion requirements (other objects
that may need to be altered or deleted in order for the branch deletion
to proceed). However, those other objects are always of other types
(e.g. merge proposals or recipes), and so that part of the change was
incorrect: we should still check `launchpad.Edit` here.

Fixes a test failure in
`lib/lp/code/stories/branches/xx-branch-deletion.rst`.

9b9987d... by Colin Watson

Add generic.name, generic.version, and soss.type Artifactory properties

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/434496

01a8cbb... by Colin Watson

Add some more commentary on additional properties

9b7925e... by Andrey Fedoseev

Registry experts can delete bzr branch

Merged from https://code.launchpad.net/~andrey-fedoseev/launchpad/+git/launchpad/+merge/434537

b7a3292... by Colin Watson

Return proxied objects from makeDistroArchSeriesFilter

`LaunchpadObjectFactory` issues `UnproxiedFactoryMethodWarning` when its
methods return objects not wrapped in a security proxy, since that tends
to result in tests that are less accurate simulations of production.

This required tightening up a few tests.

82dfb16... by Colin Watson

Refactor _updateByHash to clarify logic

William Grant pointed out in
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/373971
that the flow of `Publisher._updateByHash` was quite difficult to
understand, and proposed an alternative structure in
https://code.launchpad.net/~wgrant/launchpad/+git/launchpad/+merge/390811.
Over two years later, I've finally got round to digesting and polishing
this.

The basic idea is that, rather than interleaving database/disk queries
and actions, we now gather all the information we need from the database
and from the archive on disk at the start, and then separately take all
the actions needed to reconcile them and to keep `by-hash` directories
up to date.

No functional change is intended here.