Add user_identifier_type to base experiment api response

What?

Include user_identifier_type in the base experiments api response that includes both everyone and logged-in experiments.

Why?

Because in the TK extension, we need to be able to distinguish between everyone and logged-in experiments in the experiment enrollments processor classes which reads experiment configs from TKUI.

For the everyone experiment use case, the enrollment processor needs to filter out mw-user type experiments.

For the logged-in use case, the enrollment processory needs to filter out edge-unique type experiments so that it doesn't override the enrollment result (namely the group assignments).

Note: This MR is a dependency for https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TestKitchen/+/1251216. If the TK extension patch does not need this key, then we can close this MR and leave the endpoint as is.

Bug: T408186

Edited by Clare Ming

Merge request reports

Loading