~jugmac00/launchpad:fix-further-typos-in-gpg-handler

Last commit made on 2022-06-04
Get this branch:
git clone -b fix-further-typos-in-gpg-handler https://git.launchpad.net/~jugmac00/launchpad
Only Jürgen Gmach can upload to this branch. If you are Jürgen Gmach please log in for upload directions.

Branch merges

Branch information

Name:
fix-further-typos-in-gpg-handler
Repository:
lp:~jugmac00/launchpad

Recent commits

1c12a4f... by Jürgen Gmach

Fix typos in gpg/handler.py

8eea92c... by Colin Watson

Fix Distribution:+edit crash with enabled restricted processors

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

1a20416... by Colin Watson

Clarify confusing comments around restricted processors

Comments in several tests used the terms "enabled" and "disabled" to
talk almost interchangeably about both (1) whether an archive or recipe
is allowed to dispatch builds for a given processor and (2) whether the
corresponding UI checkbox is greyed out or not. This could very easily
cause confusion, so rewrite these comments to be more explicit about
what they mean.

2bd3059... by Colin Watson

Explicitly flush the Storm store in the dominator

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

74ffded... by Colin Watson

Explicitly flush the Storm store in the dominator

https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/422233
caused a significant regression in dominator performance, with
`Dominator._sortPackages` getting substantially slower in some cases.

Profiling shows that most of the time is spent in
`storm.references.Reference.__get__` filling in foreign key references
from the Storm cache. Drilling down further, most of the time is spent
in the implicit flush at the start of `storm.store.Store.get`: there are
many JSON variables in the cache, and since those have mutable values,
the flush process has to dump each one of them to find out whether
they've changed. This got substantially worse with the use of
`PackageLocation`s in the dominator, since constructing those involves
following several foreign key references for each publication.

A reasonably well-contained fix for this regression is to block implicit
flushes in the dominator. This does mean that we have to be careful to
add explicit flushes after each piece of code that should result in a
change to the database; any intervening code that might load objects
into the Storm cache could discard unflushed changes.

In the longer term, it might be possible (if fiddly) to augment the
mutable values owned by JSON variables and similar with `__setitem__`
methods that recursively keep track of changes to the object; for
example, SQLAlchemy allows that kind of approach via
`sqlalchemy.ext.mutable`.

LP: #1976413

6cc60e8... by Colin Watson

Refactor GitRef.findByReposAndPaths to avoid deep recursion

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

bb83884... by Guruprasad

Add a new distribution security admin role

And restrict the permissions on creating and editing vulnerabilities
to it.

Merged from https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/423363

25b9c52... by Guruprasad

Add a new distribution security admin role

And restrict the permissions on creating and editing vulnerabilities
to it.

7997949... by Patch Queue Manager <email address hidden>

Merge db-stable 8e7f6df436 (Add Distribution.security_admin)

Merged from https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/423625

6a824c4... by Andrey Fedoseev

Archive subscriptions: add links to PPAs

LP: #860268

Add `checkViewPermission` to `ArchiveSet`

Update `ViewArchive` to use `ArchiveSet.checkViewPermission`

Add `result` argument to `precache_permission_for_objects`

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