~ines-almeida/launchpad:update-queued-webhook-table-permissions

Last commit made on 2023-06-27
Get this branch:
git clone -b update-queued-webhook-table-permissions https://git.launchpad.net/~ines-almeida/launchpad
Only Ines Almeida can upload to this branch. If you are Ines Almeida please log in for upload directions.

Branch merges

Branch information

Name:
update-queued-webhook-table-permissions
Repository:
lp:~ines-almeida/launchpad

Recent commits

75f47e2... by Ines Almeida

Update 'queued' database permissions for webhook and webhookjob table

Add a unit test to verify change

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
206e22f... by Dimitri John Ledkov

Allow to specify snapd channel in snap builds

snapcraft has a runtime dependency on snapd, and in rare cases when
there is incompatibility between the two, one may need to request both
snapcraft and snapd from specific channels to correctly complete
builds.

This was especially profound when we lost ability to rebuild core22
snap on riscv64 due to a regression in snapd, and unable to instruct
launchpad to temporarily use snapd from any other channel but stable.

Merged from https://code.launchpad.net/~xnox/launchpad/+git/launchpad/+merge/445277

189f454... by Colin Watson

charm: Don't set Cache-Control header on +apidoc

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

b41f7d7... by Colin Watson

charm: Document application/vd.sun.wadl+xml misspelling

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

0fc912c... by Colin Watson

charm: Document application/vd.sun.wadl+xml misspelling

8c1f432... by Colin Watson

charm: Don't set Cache-Control header on +apidoc

This location is used to serve machine-readable API documentation used
by `lazr.restfulclient`, and if it sees a response with `Cache-Control:
public,max-age=5184000` then it won't refresh its cache until `max-age`
has passed - 60 days! This is OK for URLs whose contents change very
rarely, but for machine-readable API documentation we want changes to be
effective more or less immediately, and they aren't otherwise hit often
enough to need such aggressive caching.

(On production, https://launchpad.net/+apidoc/ and
https://api.launchpad.net/ previously had different caching
configuration for the same documentation. This brings the former into
line with the latter, since they're now routed to the same backend, or
at least will be once we revert an emergency frontend patch - but I
think that's OK.)

31e8974... by Colin Watson

charm: Fix assets build arrangements

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

03a8c89... by Colin Watson

charm: Fix assets build arrangements

`launchpad-assets` needs to build the files it serves (particularly API
documentation) with the correct `LPCONFIG` so that they embed the
correct host names. The previous arrangements of simply running `make
build` when creating the virtualenv couldn't possibly achieve this,
because the necessary configuration file didn't exist yet. Run `make
build` after creating the configuration file instead.

Doing this uncovered various problems with the configuration file we
write out: it didn't have enough entries to support running
`utilities/create-lp-wadl-and-apidoc.py`. Also, since the
`/srv/launchpad/code` symlink is now changed before all the assets are
built, the Apache configuration now has to refer to the
most-recently-configured payload directly using its build label rather
than using `/srv/launchpad/code` as a shortcut.

ad6be06... by Dimitri John Ledkov

Allow to specify snapd channel in snap builds

snapcraft has a runtime dependency on snapd, and in rare cases when
there is incompatibility between the two, one may need to request both
snapcraft and snapd from specific channels to correctly complete
builds.

This was especially profound when we lost ability to rebuild core22
snap on riscv64 due to a regression in snapd, and unable to instruct
launchpad to temporarily use snapd from any other channel but stable.

54880d2... by Guruprasad

Implement the launchpad-scripts charm

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