Commit graph

10 commits

Author SHA1 Message Date
jenkins-bot 724f836b1b Merge "Wire migration scripts to SchemaHooks" 2024-10-16 23:33:51 +00:00
Reedy 61152ae1ac maintenance: Minor cleanup
* Call non static functions non statically
* Remove unused getConfig() call

Change-Id: I36d618c1f070b303c6d50966b23979d31fa8266a
2024-10-14 14:44:36 +00:00
Isabelle Hurbain-Palatin 165354ab91 Wire migration scripts to SchemaHooks
Add MigrateNamespace and MigrateTagTemplate as post database update
maintenance operations.

Bug: T367207
Change-Id: I7676f9ce4bef59febc463d897cb26d47347a3968
2024-10-10 13:52:30 +02:00
sbailey 72653441b2 Remove linter namespace field dual mode config and code
* Manual tests completed and query code reviewed

Bug: T331883
Change-Id: Ie1628799bb40ad74a24ab57a27a4176c2364fb82
2024-06-14 09:29:07 -07:00
Arlo Breault ffc266eae6 Drop DatabaseFactory, just have Database as the service
Change-Id: Id25271c82bc7ba833d32dff3fb11d3dfe15a3f02
2024-04-10 21:21:40 -04:00
Arlo Breault c04b075858 Stop constructing Database with a page id
Instead, pass the page id when using methods for a page.  The change
avoids constructing Database a dummy page id when those methods aren't
going to be used.

getFromId doesn't seem like it needs a page id, since the linter id is
the primary key.

Also, a namespace id should no longer optional to setForPage.  The
LinterWriteNamespaceColumnStage option already gates whether to include
it in the row.

Follows-Up: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
Change-Id: Ib3d3622144b670ebe1a4ce04e6db6811584d42c8
2024-04-10 21:07:08 -04:00
Arlo Breault 1c53684200 Construct services with ServiceOptions
And addresses some other cleanup from review comments.

Follows-Up: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
Change-Id: If87b0bf91930f0f8d89ed046d18aadb8f346f9aa
2024-04-10 12:34:05 -04:00
C. Scott Ananian 24f771a6a3 [DI] Make CategoryManager and Database injectable services
Change-Id: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
2024-04-09 18:33:13 -04:00
sbailey d12bf639f6 Change linter maintenance scripts to use existing config varaibles
* Having separate config variables to enable the maintenance
   migrateNamespace and migrateTagTemplate scripts is duplicitous
   and should be shared with the write enable config variables.

Bug: T329342
Change-Id: I4cb453fc0678b065cb42a2ca59863da1ab9cdbe4
2023-02-14 09:43:54 -08:00
sbailey fb5bd0fc92 maintenance script to run linter extension namespace migration
*  It should be safe to automatically run during wiki update on
    3rd party wikis, and requires manual invocation on enwiki

 * The namespace migrate for enwiki will be run by an admin during
   a backport window so the process can be monitored and may run
   for a day potentially.

Bug: T299612
Change-Id: I19091a6f177e8b67d80c0b8f46782929d2e951d4
2022-12-07 07:54:19 -08:00