Page MenuHomePhabricator

Track the number of interrupted SUL3 logins / signups
Closed, ResolvedPublic

Description

We should probably measure how many login / signup actions are started but not finished with SUL3.

It's possible to have an interrupted login with SUL2 (or MediaWiki core) when there are multiple steps; e.g. you submit username/password, you get a 2FA check, and you just abandon the page at that point. But it's rare, since multistep login is itself rare. But with SUL3 login will always be multi-step (even when it doesn't seem so from the user's point of view) because the redirect to the central domain counts as a step; so if something goes wrong and the user does not find their way back, it will be much easier to end up with an interrupted login, which wouldn't show up on our current dashboard that only counts successes and failures.

So we should track the number of logins started, and chart started - (succeeded + failed).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

We should also generally track how many people visit the login / signup pages with the sul3 flag on/off. The purpose would be different (seeing whether people rely on the fallback login mechanism), the data that needs to be collected is probably the same.

We should also generally track how many people visit the login / signup pages with the sul3 flag on/off.

This was done as part of T377253: Add SUL3 flag to authentication-related event schemas (mediawiki.accountcreation.account_conversion and mediawiki.accountcreation.login event streams).

That should probably cover interruptions as well, but event streams are kind of unwieldy to work with so we should probably still add something quick.

Change #1118562 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@master] Track the number of started / finished SUL3 flows

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

Change #1118562 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Track the number of started / finished SUL3 flows

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

Change #1119530 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Track the number of started / finished SUL3 flows

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

Change #1119530 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Track the number of started / finished SUL3 flows

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

Mentioned in SAL (#wikimedia-operations) [2025-02-13T21:50:52Z] <tgr@deploy2002> Started scap sync-world: Backport for [[gerrit:1119516|auth: Use POST trxProfiler expectations during return/reauth (T385566)]], [[gerrit:1119530|Track the number of started / finished SUL3 flows (T377261)]], [[gerrit:1119531|Do not preserve 'sul3-action' when restarting authentication (T364866)]]

Mentioned in SAL (#wikimedia-operations) [2025-02-13T21:53:33Z] <tgr@deploy2002> tgr: Backport for [[gerrit:1119516|auth: Use POST trxProfiler expectations during return/reauth (T385566)]], [[gerrit:1119530|Track the number of started / finished SUL3 flows (T377261)]], [[gerrit:1119531|Do not preserve 'sul3-action' when restarting authentication (T364866)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-02-13T22:05:56Z] <tgr@deploy2002> Finished scap sync-world: Backport for [[gerrit:1119516|auth: Use POST trxProfiler expectations during return/reauth (T385566)]], [[gerrit:1119530|Track the number of started / finished SUL3 flows (T377261)]], [[gerrit:1119531|Do not preserve 'sul3-action' when restarting authentication (T364866)]] (duration: 15m 03s)

Change #1120182 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@master] Lower log level of SUL3 start/end events

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

Change #1120182 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Lower log level of SUL3 start/end events

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

Change #1120231 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Lower log level of SUL3 start/end events

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

Change #1120231 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Lower log level of SUL3 start/end events

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

Mentioned in SAL (#wikimedia-operations) [2025-02-17T21:32:35Z] <tgr@deploy2002> Started scap sync-world: Backport for [[gerrit:1120220|auth: Log actual error message for action=login]], [[gerrit:1120231|Lower log level of SUL3 start/end events (T377261)]]

Mentioned in SAL (#wikimedia-operations) [2025-02-17T21:35:18Z] <tgr@deploy2002> tgr: Backport for [[gerrit:1120220|auth: Log actual error message for action=login]], [[gerrit:1120231|Lower log level of SUL3 start/end events (T377261)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-02-17T21:48:25Z] <tgr@deploy2002> Finished scap sync-world: Backport for [[gerrit:1120220|auth: Log actual error message for action=login]], [[gerrit:1120231|Lower log level of SUL3 start/end events (T377261)]] (duration: 15m 50s)