lp:~cjwatson/launchpad

Owned by Colin Watson
Get this repository:
git clone https://git.launchpad.net/~cjwatson/launchpad
Only Colin Watson can upload to this repository. If you are Colin Watson please log in for upload directions.

Branches

Name Last Modified Last Commit
poll-find-ignore-merged 2021-04-22 17:23:24 UTC 10 hours ago
Make PollSet.find skip polls for merged teams

Author: Colin Watson
Author Date: 2021-04-22 17:23:24 UTC

Make PollSet.find skip polls for merged teams

Polls aren't carried over when merging teams, so these are essentially
orphaned: although they're still in the database, there's no way to
access them. We should do something about garbage-collection for such
cases, but for now at least skip them in `PollSet.find` so that we only
return accessible polls.

fix-local-wsgi-application-group 2021-04-22 10:51:59 UTC 16 hours ago
Fix WSGI application group for local development

Author: Colin Watson
Author Date: 2021-04-22 10:51:59 UTC

Fix WSGI application group for local development

Following
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/400811,
the application group name for the private PPA authenticator used by a
local development instance should be a valid config name, so
"development" makes more sense than "lp".

remove-htpasswd-generation 2021-04-22 10:49:21 UTC 16 hours ago
Remove .htaccess and .htpasswd generation

Author: Colin Watson
Author Date: 2021-04-22 10:49:21 UTC

Remove .htaccess and .htpasswd generation

We now handle private PPA authorization dynamically instead.

The generate-ppa-htaccess script remains in place for now, since it
still handles things like sending email to people when their
subscriptions are cancelled.

archive-auth-inactive-person 2021-04-22 10:44:48 UTC 16 hours ago
Refuse archive auth tokens from inactive accounts

Author: Colin Watson
Author Date: 2021-04-22 08:39:29 UTC

Refuse archive auth tokens from inactive accounts

It would be possible to do this in
`HtaccessTokenGenerator._getInvalidTokens` as well, but we no longer use
.htpasswd authentication on production and that script is on its way out
as a result, so don't bother.

LP: #1006692

oci-allow-default-git-repository 2021-04-22 10:07:21 UTC 17 hours ago
Remove restriction on default Git repository for OCI projects

Author: Colin Watson
Author Date: 2021-04-22 10:07:21 UTC

Remove restriction on default Git repository for OCI projects

We originally restricted this because we wanted to tie it to official
recipe status, but later realized that didn't quite make sense as it's
reasonable and useful to have multiple official recipes for a single OCI
project. There doesn't seem any reason to retain this restriction now.

loggerhead-r513 2021-04-21 14:17:31 UTC 2021-04-21
Update loggerhead to r513

Author: Colin Watson
Author Date: 2021-04-21 14:17:31 UTC

Update loggerhead to r513

LP: #1921634

master 2021-04-20 20:56:08 UTC 2021-04-20
Backporting OCI bug support indexes creation from db-devel (already applied i...

Author: Thiago F. Pappacena
Author Date: 2021-04-20 20:56:08 UTC

Backporting OCI bug support indexes creation from db-devel (already applied in prod)

Merged from https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/401488

merge-db-stable 2021-04-15 15:51:35 UTC 2021-04-15
Adding database columns for OCI project support on bugs

Author: Thiago F. Pappacena
Author Date: 2021-04-15 15:51:35 UTC

Adding database columns for OCI project support on bugs

Merged from https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/393460

py3 2021-04-08 21:02:43 UTC 2021-04-08
PYTHON:=python3

Author: Colin Watson
Author Date: 2020-01-31 23:29:01 UTC

PYTHON:=python3

db-devel 2021-03-31 09:41:54 UTC 2021-03-31
Add ArchiveDependency.snap_base and SnapBuild.snap_base

Author: Colin Watson
Author Date: 2021-03-31 09:41:54 UTC

Add ArchiveDependency.snap_base and SnapBuild.snap_base

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

stop-ppa-key-propagation 2020-10-21 19:24:59 UTC 2020-10-21
Stop propagating signing keys between an owner's PPAs

Author: Colin Watson
Author Date: 2020-10-21 19:24:59 UTC

Stop propagating signing keys between an owner's PPAs

Things were perhaps different in 2009 when this feature was designed,
but add-apt-repository has dealt with fetching keys on a per-archive
basis for a long time now, and it makes more sense for keys to be
per-archive. This also improves behaviour for users whose default
archive was created long enough ago that it has a 1024-bit signing key.

LP: #1700167

archive-file-history-backfill 2020-09-15 17:40:02 UTC 2020-09-15
Backfill ArchiveFile.date_superseded

Author: Colin Watson
Author Date: 2020-09-15 17:40:02 UTC

Backfill ArchiveFile.date_superseded

We can currently derive this reliably from
ArchiveFile.scheduled_deletion_date, and doing so gives us a chance of
historical queries being mostly accurate.

LP: #1765933

archive-file-history 2020-09-14 12:19:11 UTC 2020-09-14
Turn ArchiveFile into a history table

Author: Colin Watson
Author Date: 2018-04-21 11:10:19 UTC

Turn ArchiveFile into a history table

This adds date_created and date_superseded columns. Adjust the
publisher to match.

LP: #1765933

unreplicated-means-primary 2020-07-01 10:36:15 UTC 2020-07-01
Always use the primary DB in unreplicated environments

Author: Colin Watson
Author Date: 2020-07-01 10:36:15 UTC

Always use the primary DB in unreplicated environments

If there's no replication, it doesn't make sense to keep trying to talk
to a possibly-broken standby. Just use the primary instead.

LP: #1885859

fix-ui-oci-reg-creds 2020-05-11 23:03:04 UTC 2020-05-11
Fix OCIEditRegistryCredentialsView field handling

Author: Colin Watson
Author Date: 2020-05-11 22:58:05 UTC

Fix OCIEditRegistryCredentialsView field handling

This reworks the field layout and parsing along the same lines as the
similar table in GitRepositoryPermissionsView.

The update logic is now easier to follow, because the business of
parsing data from the form is separated from the business of applying
the changes to the database. Updates are done by iterating over the
parsed form rather than iterating over the existing credentials, because
there's no guarantee that the latter match what existed at the time the
form was generated, and we check for mismatches (of the form of an
attempt to update a credentials row with a nonexistent ID or one that
isn't owned by the context person).

The template now has a way to get hold of the widgets for a given
OCIRegistryCredentials object, rather than trying to reuse the same
widgets on each row of the table.

built-using-domination 2020-04-23 16:46:39 UTC 2020-04-23
Fix calculation of live source versions

Author: Colin Watson
Author Date: 2020-04-23 16:46:39 UTC

Fix calculation of live source versions

The dominator previously incorrectly reinstated source publications if
they were the latest one being considered for domination, even if that
was an inactive publication with only inactive Built-Using references.

built-using-guard-copying 2020-04-22 20:00:14 UTC 2020-04-22
Guard copies of binaries with Built-Using references

Author: Colin Watson
Author Date: 2020-04-22 19:56:17 UTC

Guard copies of binaries with Built-Using references

If binaries have Built-Using references, then we need to make sure that
we can resolve those references and keep the corresponding sources
published while the binaries are published. Prevent copies of binaries
if any such references can't be resolved in the target publishing
context.

LP: #1868558

built-using-guard-deletion 2020-04-22 19:59:22 UTC 2020-04-22
Simplify tests using createFromSourcePackageReleases

Author: Colin Watson
Author Date: 2020-04-22 16:54:25 UTC

Simplify tests using createFromSourcePackageReleases

simplify-external-translation-messages 2020-04-01 21:16:23 UTC 2020-04-01
Simplify POTMsgSet._getExternalTranslationMessages

Author: Colin Watson
Author Date: 2020-04-01 21:16:23 UTC

Simplify POTMsgSet._getExternalTranslationMessages

There's no obvious point to sorting the results of a subquery and then
passing it straight to the IN operator; this seems to be a vestige of
earlier code that fetched the result of the subquery into Python. This
doesn't seem to make a massive difference (though it's a bit hard to
tell due to caching), but it at least simplifies the query plan.

LP: #736005

db-potmsgset-msgid-plural-idx 2020-04-01 20:32:11 UTC 2020-04-01
Index POTMsgSet(msgid_plural)

Author: Colin Watson
Author Date: 2020-04-01 20:32:11 UTC

Index POTMsgSet(msgid_plural)

This is used by POFileMixIn._getTemplateSearchQuery. Adding this index
probably won't fix timeouts on its own, but it certainly helps avoid
some full table scans.

LP: #736005

db-oci-recipe-target 2019-10-15 08:50:54 UTC 2019-10-15
Index FKs to Person

Author: Colin Watson
Author Date: 2019-10-15 08:50:54 UTC

Index FKs to Person

livefs-build-pocket 2019-10-08 08:27:21 UTC 2019-10-08
Allow livefs build metadata to override the default build pocket.

Author: Colin Watson
Author Date: 2019-09-06 23:53:16 UTC

Allow livefs build metadata to override the default build pocket.

This makes it possible, for example, to distinguish the case of building a
livefs using tools from -updates but with contents from the release pocket
from the case of building a livefs using tools from -updates and contents
from -updates.

snap-check-request-private-git 2019-10-07 16:46:44 UTC 2019-10-07
Check that the snap owner has read access to the repository, rather than that...

Author: Colin Watson
Author Date: 2019-03-28 14:59:34 UTC

Check that the snap owner has read access to the repository, rather than that owners match.

login-interstitial 2019-10-07 13:53:48 UTC 2019-10-07
Add interstitial pages when creating or reactivating an account.

Author: Colin Watson
Author Date: 2018-05-25 22:18:52 UTC

Add interstitial pages when creating or reactivating an account.

These provide an opportunity to present the user with the terms of service
and privacy policy and require that they explicitly accept them, as well as
making it harder to reactivate an account by accident.

To support testing this locally, I extended make-lp-user to be able to
create placeholder accounts, and adjusted testopenid so that it can
authenticate as an inactive account by explicitly supplying the username.

build-private-bpb-immediately 2019-10-07 13:13:54 UTC 2019-10-07
Dispatch private BPBs immediately, using macaroon auth for source files.

Author: Colin Watson
Author Date: 2018-05-04 16:19:34 UTC

Dispatch private BPBs immediately, using macaroon auth for source files.

sourcedeps-codetree 2019-10-07 12:45:07 UTC 2019-10-07
Replace most of devscripts.sourcecode with codetree.

Author: Colin Watson
Author Date: 2017-11-01 01:09:59 UTC

Replace most of devscripts.sourcecode with codetree.

git-subscriptions-by-path 2019-10-07 11:21:23 UTC 2019-10-07
Make GitSubscription.paths be a JSON-encoded list instead.

Author: Colin Watson
Author Date: 2016-11-17 15:00:35 UTC

Make GitSubscription.paths be a JSON-encoded list instead.

opt-in-zopeless-immediate-mail 2019-10-07 09:59:51 UTC 2019-10-07
Drop immediate mail delivery from LaunchpadScript and LaunchpadZopelessLayer.

Author: Colin Watson
Author Date: 2015-09-08 11:35:19 UTC

Drop immediate mail delivery from LaunchpadScript and LaunchpadZopelessLayer.

128 of 28 results
This repository contains Public information 
Everyone can see this information.

Subscribers