Page MenuHomePhabricator

MinT for Readers instrumentation: sources for session initiation
Closed, ResolvedPublic2 Estimated Story Points

Description

We have a session initation event as

action: session_init

The action_source of the event should be according to entry point used by user to initiate the session. The following sources to be instrumented:

  • language_selector
  • article_footer
  • search - Not implemented
  • direct
  • external_shared_automatic_translation

Event Timeline

@Pginer-WMF Please confirm if the list mentioned in the description covers all the entry points which will be exposed during the experiment.

abi_ renamed this task from MinT for Readers instrumentation: sources for session initation to MinT for Readers instrumentation: sources for session initiation.Mar 18 2025, 6:19 AM

@KCVelaga_WMF Currently session_init event is triggered as soon as the user lands on en.wikipedia.org/wiki/Special:AutomaticTranslation. Is that the expected behavior or should it be logged when the user lands on the confirm step?

Based on how the session_init event is triggered, the search functionality (and entrypoint) is present after that event triggers.

Currently session_init event is triggered as soon as the user lands on en.wikipedia.org/wiki/Special:AutomaticTranslation. Is that the expected behavior or should it be logged when the user lands on the confirm step?

Yes, that is the expected behaviour. We have a separate event for confirmation.

@Pginer-WMF Please confirm if the list mentioned in the description covers all the entry points which will be exposed during the experiment.

Yes. The list seems quite complete.

The only workflow not considered in the list above is when accessing MT through a link from another machine translated article, but that may not be considered a pure entry point since the user is already using the tool. So the omission may be intentional.

The only workflow not considered in the list above is when accessing MT through a link from another machine translated article, but that may not be considered a pure entry point since the user is already using the tool. So the omission may be intentional.

Yes, that won't be considered as new session as the user would have already started a session to read an article, and then proceeds to another article. We have a separate event when user clicks to view MT content.

abi_ triaged this task as High priority.Mar 18 2025, 12:43 PM
abi_ set the point value for this task to 4.

Currently session_init event is triggered as soon as the user lands on en.wikipedia.org/wiki/Special:AutomaticTranslation. Is that the expected behavior or should it be logged when the user lands on the confirm step?

Yes, that is the expected behaviour. We have a separate event for confirmation.

That is true. Just to confirm the possible values for action_source in the session_init are:

  1. direct
  2. external_shared_automatic_translation
  3. language_selector
  4. article_footer

search will never be used as an action_source in session_init event. There is a separate search event but I wonder if it's valid to call it a "sources for session initiation".

Change #1128866 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] AX: Add action_source for session_init event

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

abi_ changed the point value for this task from 4 to 2.

search will never be used as an action_source in session_init event. There is a separate search event but I wonder if it's valid to call it a "sources for session initiation".

@abi_ There's search within the feature itself, for which we have an event, and yes, by that time the session would have already been initiated. But there is an entry point where users search for an article (general Wikipedia search), and if the article is not present, a dialog to to view automatic translation will appear, and that takes them to the feature, which will initiate a new session. "Searching for a missing page" entry point in T340997 task description.

search will never be used as an action_source in session_init event. There is a separate search event but I wonder if it's valid to call it a "sources for session initiation".

@abi_ There's search within the feature itself, for which we have an event, and yes, by that time the session would have already been initiated. But there is an entry point where users search for an article (general Wikipedia search), and if the article is not present, a dialog to to view automatic translation will appear, and that takes them to the feature, which will initiate a new session. "Searching for a missing page" entry point in T340997 task description.

The "Searching for a missing page" was explored, but I think it was not implemented. The ones selected for the initial implementation were those from the language selector and at the article page footer.

The "Searching for a missing page" was explored, but I think it was not implemented. The ones selected for the initial implementation were those from the language selector and at the article page footer.

Okay, if it's not part of the MVP, we can skip it.

Change #1128866 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] AX: Add action_source for session_init event

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

abi_ changed the task status from Open to In Progress.Mar 25 2025, 9:54 AM

This cannot be QA'ed until 1130942: AX: Enable entry-points on Tswana and Venetian wiki | https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1130942 is deployed because currently all entrypoints for MinT for Wikireaders is disabled.

This cannot be QA'ed until 1130942: AX: Enable entry-points on Tswana and Venetian wiki | https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1130942 is deployed because currently all entrypoints for MinT for Wikireaders is disabled.

This was verified in https://phabricator.wikimedia.org/T389164#10724646