Currently Striker stores the SUL user name only, it should also store the ID so it can be matched against the wikimediaGlobalAccountId attribute in the parent task.
Description
Details
Event Timeline
Change 1009310 had a related patch set uploaded (by Majavah; author: Majavah):
[labs/striker@master] labsauth: Add field for SUL account ID
Change 1009311 had a related patch set uploaded (by Majavah; author: Majavah):
[labs/striker@master] labsauth: Store SUL user ID like username
Change #1009310 merged by jenkins-bot:
[labs/striker@master] labsauth: Add field for SUL account ID
Change #1076798 had a related patch set uploaded (by Majavah; author: Majavah):
[operations/puppet@production] hieradata: Bump striker-toolsbeta to 2024-09-30-162529-production
Change #1076798 merged by Majavah:
[operations/puppet@production] hieradata: Bump striker-toolsbeta to 2024-09-30-162529-production
Change #1076799 had a related patch set uploaded (by Majavah; author: Majavah):
[operations/puppet@production] hieradata: Bump striker-tools to 2024-09-30-162529-production
Change #1076799 merged by Majavah:
[operations/puppet@production] hieradata: Bump striker-tools to 2024-09-30-162529-production
Change #1009311 merged by jenkins-bot:
[labs/striker@master] labsauth: Store SUL user ID like username
Change #1076800 had a related patch set uploaded (by Majavah; author: Majavah):
[operations/puppet@production] hieradata: Bump striker-toolsbeta to 2024-09-30-170045-production
Change #1076800 merged by Majavah:
[operations/puppet@production] hieradata: Bump striker-toolsbeta to 2024-09-30-170045-production
Change #1076809 had a related patch set uploaded (by Majavah; author: Majavah):
[labs/striker@master] register: Also filter on user SUL ID
Mentioned in SAL (#wikimedia-cloud) [2024-09-30T18:25:52Z] <taavi> run striker migrations T359428
Striker ideally should not store any SUL connection information at all. T371595: Remove feature to connect SUL account to Striker (read from Bitu instead)
Change #1076809 merged by jenkins-bot:
[labs/striker@master] register: Also filter on user SUL ID
@taavi What’s still left to do on this issue? All the pull requests are merged. I’m looking for an interesting Python issue to work on 😉
What's left is finding a way to set the new ID field for old accounts that only have an username set.
It is relatively easy to write a script to do this for SUL accounts that have not been renamed by looking up the SUL account's global id. For accounts that have been renamed things are a bit trickier in that you need to figure out what the new name is, possibly with multiple renames having happened in the intervening time. I did this for a number of accounts during the Wikitech SUL migration, but I used a very manual process of attempting to visit the User namespace page of the old name and hoping to be redirected.