~ines-almeida/launchpad:project-tokens/update-models

Last commit made on 2023-09-25
Get this branch:
git clone -b project-tokens/update-models 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:
project-tokens/update-models
Repository:
lp:~ines-almeida/launchpad

Recent commits

bd5a112... by Ines Almeida

Refactor AccessToken.findByTarget query and unit tests

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
9bae4b0... by Ines Almeida

Address MP comments

c2c2aed... by Ines Almeida

Update Access Token model and logic to enable Project scoped Access Tokens

This change introduces Projects as possible targets for Access Tokens similarly to what already existed for Git Repository, with the difference that a Project Access Token can be used to authenticate requests against any Git Repository within that Project.

cd3fe3f... by Guruprasad

Update the description for snaps in the new snap page

Use the description that is currently in https://snapcraft.io/docs.

LP: #2037033

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

3e72ace... by Guruprasad

Update the description for snaps in the new snap page

Use the description that is currently in
https://snapcraft.io/docs. Also update the link to the snapcraft
documentation.

LP: #2037033

0b1ca5a... by Colin Watson

Allow commercial admins to read Person.id on the webservice

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

3a0be33... by Colin Watson

Optimize _cleanTeamParticipation

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

0dd8a14... by Colin Watson

Allow commercial admins to read Person.id on the webservice

This will help with https://portal.admin.canonical.com/C158967 ("Migrate
away from email and SSH key cron jobs on loganberry").

efeecea... by Colin Watson

Optimize _cleanTeamParticipation

We did much more work than necessary to update `TeamParticipation` after
removing a member from a team, scanning whole branches of the membership
tree even when we could prove that they cannot possibly contribute to
determining which participations we need to remove. Prune the search
tree more aggressively. In the test case at hand, this takes the time
for the `SELECT` part of this query from on the order of 6-7 seconds to
on the order of 100 milliseconds.

The tests in `lp.registry.tests.test_teammembership` already exercise
quite a number of scenarios here, and this should not change any
observed behaviour other than speed.

LP: #2036865

da35720... by Colin Watson

Restore special datetime handling to sqlbase.quote

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