~andrey-fedoseev/launchpad:translation-suggestions

Last commit made on 2022-09-09
Get this branch:
git clone -b translation-suggestions https://git.launchpad.net/~andrey-fedoseev/launchpad
Only Andrey Fedoseev can upload to this branch. If you are Andrey Fedoseev please log in for upload directions.

Branch merges

Branch information

Name:
translation-suggestions
Repository:
lp:~andrey-fedoseev/launchpad

Recent commits

413ff32... by Andrey Fedoseev

Optimize `POTMsgSet.getCurrentTranslations`

- Move the logic of getting the current translations to `ICurrentTranslations` utility

- Add `getCurrentTranslations` method to load current translations for multiple messages sets, template, languages and sides with a single SQL query

- Optionally, cache the current translations with `cacheCurrentTranslations` method and load them from cache by passing `use_cache=True` to `getCurrentTranslation`

- Use cache when calling `getCurrentTranslation` from `TranslationMessage.isHidden()`

- Cache current translations when in `CurrentTranslationMessageView` to avoid multiple SQL queries when calling `isHidden()` for multiple messages

0b1e244... by Andrey Fedoseev

Don't show rejected messages in the list of suggestions

If a there's a message from an external project that has been rejected
(a newer message is set as current), that message should not be displayed
in the list of external suggestions.

Non-rejected suggestions (created after the current message has been approved) are still displayed.

852d070... by Colin Watson

Restore support for upgrade.py outside VCS branch

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

275c3fa... by Colin Watson

Restore support for upgrade.py outside VCS branch

`database/schema/upgrade.py` used to support running outside a VCS
branch, in which case it would record the `branch_nick` and `revid`
columns of new `LaunchpadDatabaseRevision` columns as NULL. I
accidentally dropped this support when removing bzr support from this
script in commit 8651d7420e9254733234e84e84933c806521a4fc, but it's
still useful to have: in particular, Launchpad trees deployed via charms
don't currently have a `.git` directory, but it's handy to be able to
run `upgrade.py` from them anyway.

81a7ea7... by Guruprasad

Allow running launchpad-database-setup on Postgres 12

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

70f6ed2... by Guruprasad

Allow running launchpad-database-setup on Postgres 12

921118f... by Colin Watson

Split some charm code into a layer

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

0fa01a1... by Colin Watson

Avoid writing to code tree for config-specific ZCML overrides

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

919ffe1... by Colin Watson

Unset default database connection strings

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

74677cc... by Colin Watson

Unset default database connection strings

It doesn't make sense to set production database connection strings in
the configuration schema. Production deployments already override these
connection strings to something else in any case, and nothing else will
be able to connect to the production databases.