~apw/launchpad:archive-removeCopyNotification-fixes

Last commit made on 2022-10-19
Get this branch:
git clone -b archive-removeCopyNotification-fixes https://git.launchpad.net/~apw/launchpad
Only Andy Whitcroft can upload to this branch. If you are Andy Whitcroft please log in for upload directions.

Branch merges

Branch information

Name:
archive-removeCopyNotification-fixes
Repository:
lp:~apw/launchpad

Recent commits

cbc27c7... by Andy Whitcroft

archive.removeCopyNotification: return GoneError if the job is not in an error state

When a job is not in an error state return GoneError on the assumption
it has been previously acknowledged, this rather than throwing an
AssertionError.

Signed-off-by: Andy Whitcroft <email address hidden>

Failed
[SUCCEEDED] docs:0 (build)
[FAILED] lint:0 (build)
[WAITING] mypy:0 (build)
13 of 3 results
06227ef... by Andy Whitcroft

PlainPackageCopyJob.get: report NotFoundError for invalid job_id

Where a job is completely missing report a NotFoundError rather than
cratering with an AttributeError.

Signed-off-by: Andy Whitcroft <email address hidden>

66afd8e... by Colin Watson

LaunchpadDatabase: Accept connection URIs

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

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

LaunchpadDatabase: Accept connection URIs

Use `parse_dsn` and `make_dsn` from `psycopg2.extensions` to manipulate
connection strings, rather than mangling them by hand in a way that
assumes keyword/value connection strings (see
https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING).
This seems like better practice in general, and also starts preparing
the way for being able to directly consume connection URIs provided by
the PostgreSQL charm.

cd8a744... by Colin Watson

Tolerate multiple non-pool files with the same name

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

0e842a1... by Guruprasad

Optimize the queries issued by IDistribution.has_published_sources

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

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
38c1233... by Guruprasad

Optimize the queries issued by IDistribution.has_published_sources

affe1c1... by Jürgen Gmach

Fix typos

Merged from https://code.launchpad.net/~jugmac00/launchpad/+git/launchpad/+merge/431719

b530e6c... by Guruprasad

Handle another esm name format in the uct import script

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

00766f6... by Jürgen Gmach

Fix typos