New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #5069: Add a "hint/solution viewed" event to complement the existing "offered"/"unlocked" events. #5298
base: develop
Are you sure you want to change the base?
Fix #5069: Add a "hint/solution viewed" event to complement the existing "offered"/"unlocked" events. #5298
Conversation
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Vishwajith-Shettigar! This solution looks good to me, but we need to add tests for the new events that have been added.
@@ -273,6 +273,19 @@ class ExplorationProgressController @Inject constructor( | |||
return submitResultFlow.convertToSessionProvider(SUBMIT_HINT_REVEALED_RESULT_PROVIDER_ID) | |||
} | |||
|
|||
/** | |||
* Notifies the controller that the user wishes to view a hint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Notifies the controller that the user wishes to view a hint. | |
* Notifies the controller that the user has viewed a hint. |
@@ -289,6 +302,14 @@ class ExplorationProgressController @Inject constructor( | |||
return submitResultFlow.convertToSessionProvider(SUBMIT_SOLUTION_REVEALED_RESULT_PROVIDER_ID) | |||
} | |||
|
|||
/** | |||
* Notifies the controller that the user wishes to view the answer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Notifies the controller that the user wishes to view the answer. | |
* Notifies the controller that the user has viewed the answer. |
@@ -1329,6 +1372,30 @@ class ExplorationProgressController @Inject constructor( | |||
override val callbackFlow: MutableStateFlow<AsyncResult<Any?>>? = null | |||
) : ControllerMessage<Any?>() | |||
|
|||
/** | |||
* [ControllerMessage] to log cases when user viewed hint for the current session. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* [ControllerMessage] to log cases when user viewed hint for the current session. | |
* [ControllerMessage] to log cases when the user has viewed a hint for the current session. |
) : ControllerMessage<Any?>() | ||
|
||
/** | ||
* [ControllerMessage] to log cases when user viewed solution for the current session. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* [ControllerMessage] to log cases when user viewed solution for the current session. | |
* [ControllerMessage] to log cases when the user has viewed the solution for the current session. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is missing tests for the two newly created events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need tests for the new events here. Please follow up via the group chat whether sensitive/non-sensitvive values are a concern that we need to address for these new events, since sometimes we collect additional data when a study is on, that we don't collect when the study is off.
@@ -191,6 +191,12 @@ message EventLog { | |||
// The event being logged is related to the amount spent by the user with the app in | |||
// foreground. | |||
AppInForegroundTimeContext app_in_foreground_time = 48; | |||
|
|||
// The event being logged is related to accessing a hint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// The event being logged is related to accessing a hint. | |
// The event being logged is related to viewing a hint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need tests for the new events as well.
Hi @Vishwajith-Shettigar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Explanation
Fixes #5069: Added a new event called view existing for hints and solution. This event logs every time user views a hint or solution, except for the first time.
Existing event log access_hint and access_solution renamed to reveal_hint and reveal_solution.
Hints view log
hint.webm
Solution view log
solution.webm
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: