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
master 2021-10-21 05:55:23 UTC
update example data for SignedCodeOfConduct

Author: jugmac00
Author Date: 2021-10-21 05:55:23 UTC

update example data for SignedCodeOfConduct

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

access-token-ui 2021-10-20 21:14:38 UTC
Add UI for personal access tokens

Author: Colin Watson
Author Date: 2021-10-20 21:14:37 UTC

Add UI for personal access tokens

This requires JavaScript in order to ensure that the new token secret is
never stored in the database.

simplify-publisher-suite-sets 2021-10-19 11:52:09 UTC
Simplify sets-of-suites handling in the publisher

Author: Colin Watson
Author Date: 2021-10-19 10:36:38 UTC

Simplify sets-of-suites handling in the publisher

Rather than storing sets of tuples of (distroseries name, pocket), it's
equivalent and simpler to just store sets of suite names, which are
composed from the distroseries name and the pocket. This means that we
don't have to worry about details such as whether security-proxied
enumeration items behave identically to unproxied items for purposes of
set membership checks (in some situations they don't). The code is also
slightly shorter and easier to follow this way.

I have no proof that this changes behaviour, although it's possible that
it will fix some weirdness that I encountered while trying to force the
jammy release pocket to republish to work around a separate bug on
2021-10-16; while debugging that, I noticed some oddities with set
membership checks that I never quite got to the bottom of.

ddtp-translations-en 2021-10-15 17:34:55 UTC
Prevent Translation-en publishing collisions

Author: Colin Watson
Author Date: 2021-10-15 17:34:53 UTC

Prevent Translation-en publishing collisions

If the series is configured to do so, the publisher may generate
Translation-en files with long descriptions extracted from Packages
files. However, it's also possible for DDTP tarballs to include
Translation-en files, which then collide with the publisher when
extracted and produce either assertion failures or inconsistent Release
files depending on which one happened to win. Filter these out.

I fixed a ResourceWarning in passing.

LP: #1900464

merge-db-stable 2021-10-06 10:36:32 UTC
Add AccessToken table

Author: Colin Watson
Author Date: 2021-10-06 10:36:32 UTC

Add AccessToken table

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

librarian-new-container-workaround 2021-07-15 10:35:08 UTC
Allow librarian-feed-swift to sleep after creating container

Author: Colin Watson
Author Date: 2021-07-15 10:35:08 UTC

Allow librarian-feed-swift to sleep after creating container

radosgw apparently has a bug where newly-created containers need to be
left idle for a short time before they can be used reliably. For now,
allow working around this by configuring
`librarian_server.new_container_delay` to a number of seconds to sleep
after creating a new container.

See https://portal.admin.canonical.com/C131836.

db-devel 2021-03-31 09:41:54 UTC
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.

125 of 25 results
This repository contains Public information 
Everyone can see this information.

Subscribers