Page MenuHomePhabricator

Refactor message group loaders
Closed, ResolvedPublic4 Estimated Story Points

Description

I suggest to refactor message group loaders to simplify them by separating the cache handling into separate class. This will also allow better dependency injection to the loaders.

Event Timeline

Change #1016352 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Rewrite TranslatablePageMessageGroupStore

https://gerrit.wikimedia.org/r/1016352

abi_ triaged this task as Medium priority.Apr 24 2024, 10:30 AM

Change #1027537 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Rewrite MessageBundleMessageGroupLoader

https://gerrit.wikimedia.org/r/1027537

Change #1016352 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Rewrite TranslatablePageMessageGroupStore

https://gerrit.wikimedia.org/r/1016352

Change #1027537 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Rewrite MessageBundleMessageGroupLoader

https://gerrit.wikimedia.org/r/1027537

The refactored versions of TranslatablePage and MessageBundle loaders have been deployed on translatewiki.net

Change #1034490 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] AggregateMessageGroupLoader: convert to a factory

https://gerrit.wikimedia.org/r/1034490

Change #1034490 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] AggregateMessageGroupLoader: convert to a factory

https://gerrit.wikimedia.org/r/1034490

Change #1034490 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] AggregateMessageGroupLoader: convert to a factory

https://gerrit.wikimedia.org/r/1034490

Change #1036243 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Convert FileBasedMessageGroupLoader to factory

https://gerrit.wikimedia.org/r/1036243

Change #1036244 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Add HookDefinedMessageGroupFactory

https://gerrit.wikimedia.org/r/1036244

Change #1036243 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Convert FileBasedMessageGroupLoader to factory

https://gerrit.wikimedia.org/r/1036243

Change #1036244 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Add HookDefinedMessageGroupFactory

https://gerrit.wikimedia.org/r/1036244

Change #1039550 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Cleanups after conversion to message group factories

https://gerrit.wikimedia.org/r/1039550

Change #1039550 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Cleanups after conversion to message group factories

https://gerrit.wikimedia.org/r/1039550