Page MenuHomePhabricator

Remove the gu_enabled and gu_enabled_method columns from the globaluser table
Closed, ResolvedPublic

Description

They are both complety unused, we only started writing to gu_enabled in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/766220 and gu_enabled_method seems to be always null. I think we can remove them.

Event Timeline

Zabe renamed this task from Removed the gu_enabled and gu_enabled_method columns from the globaluser table to Remove the gu_enabled and gu_enabled_method columns from the globaluser table.Mar 8 2022, 9:08 PM
Zabe updated the task description. (Show Details)

Change 769416 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/CentralAuth@master] Add back default value to globaluser.gu_enabled

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

@Zabe if this needs any schema changes on the production globaluser tables, let's try to combine these with dropping of gu_enabled (which I plan to work on shortly after the 1.38 cut) - thanks!

Change 769423 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/CentralAuth@master] Stop writing to gu_enabled(_method)

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

Change 769424 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/CentralAuth@master] Drop the gu_enabled and gu_enabled_method column

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

In T303266#7763535, @Majavah wrote:

@Zabe if this needs any schema changes on the production globaluser tables, let's try to combine these with dropping of gu_enabled (which I plan to work on shortly after the 1.38 cut) - thanks!

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/769416/ does not need a schema change on production, the default value for gu_enabled is available there.

Change 769416 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Add back default value to globaluser.gu_enabled

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

Change 769423 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Stop writing to gu_enabled(_method)

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

Change 769424 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Drop the gu_enabled and gu_enabled_method column

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

Change 771462 had a related patch set uploaded (by Zabe; author: Zabe):

[operations/puppet@production] wmcs: stop accessing gu_enabled and gu_enabled_method in maintain-views

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

Change 771462 merged by Marostegui:

[operations/puppet@production] wmcs: stop accessing gu_enabled and gu_enabled_method in maintain-views

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

Change 773616 had a related patch set uploaded (by Zabe; author: Zabe):

[operations/puppet@production] filtered_tables.txt: remove gu_enabled and gu_enabled_method columns

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

Change 773616 merged by Marostegui:

[operations/puppet@production] filtered_tables.txt: remove gu_enabled and gu_enabled_method columns

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

Zabe claimed this task.