Jetpack Section: Backup Screen Tracking Events#13956
Conversation
This 'source' property will help identify whether the 'ActivityLogDetail' screen is being launched from within the 'activity_log' or 'backup' screen.
Also this commit adds back the 'activity_log_rewind_started' track event, which existed within the 'RewindStatusService.rewind(...)' function that got replaced by the restore use cases.
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
👋 @leandroalonso ! I added you as a reviewer as well just as an FYI to you so that you are aware of this since you were working on the |
|
You can test the changes on this Pull Request by downloading the APK here. |
malinajirka
left a comment
There was a problem hiding this comment.
Thanks @ParaskP7! I'm having some doubts about some of the events we came up with. Let's discuss this during the Android Sync meeting today.
I'm not approving the PR yet, I'll approve it when we make a final decision on how to proceed.
Click the RESTORE button and then the RESTORE SITE dialog button. Notice that you will be redirected back to the Backup screen and that the jetpack_backup_rewind_started track event is triggered.
Should this trigger also jetpack_restore_opened and when you confirm the dialog -> jetpack_restore_confirmed?
Related question: should jetpack_restore_opened event be fired when I click on "MySite -> Backup -> more button on one of the items -> "Restore to this point" ?
jetpack_backup_rewind_started
I'm not sure about this event. I tried to keep the separation between backup/activityLog only on the level of the entry points - -> so we don't need to pass backup/activityLog flag into all the flows and keep having ifs all over the place. I understand that activity_log_rewind_started is an existing event, but I'm wondering if we should probably make an exception here and stop recording it (or record the same event even for backup).
| } | ||
|
|
||
| public static void viewActivityLogDetailForResult(Activity activity, SiteModel site, String activityId) { | ||
| public static void viewActivityLogDetailForResult( |
There was a problem hiding this comment.
🔍 Nitpick: We usually don't use "parameter per line" formatting in Java classes. We might want to update this to
public static void viewActivityLogDetailForResult(Activity activity, SiteModel site, String activityId,
boolean rewindableOnly) {
Wdyt?
There was a problem hiding this comment.
Oh cool, thanks for letting me know. I saw that this was not being done on the other methods as well and I was wondering why. Will update to your suggestion. 🙏
There was a problem hiding this comment.
Ohh, you are right - there is a lot of methods which use the formatting you used. In that case, don't worry about it ;).
|
Many thanks for the thorough review @malinajirka ! 🌟
Definitely! 👌
Makes sense. 👍
No, this actual event is a bit tricky and it is not a "new" one per se. This was located within the
This track events are related to the
I touched on that a bit above, now realising that you kind of have the picture. This is up to us to decide, I am comfortable in us stopping recording it, but at the same time why not just keep it for a while to get some results, figure out whether it is valuable and then drop it afterwards, especially since we already have data for the PS: Currently, we cannot record the same event for backup since within the |
malinajirka
left a comment
There was a problem hiding this comment.
Thanks for the clarification @ParaskP7!
As discussed activity_log_rewind_started is currently tracked only in the legacy flows. We need to make decision if it's find to stop tracking this event in the new flows or if we need to retain it.
All looks good to me ;)!
🙏
👌
🙏 |
Parent #13629
This PR adds five new track events specific to the new
Backupscreen and enhances an existingActivity Log Detailevent with asourceproperty so that it differentiates between theactivity_logorbackupentry points.To test:
My Sitetab.My Site->Toolbar Avatar->App Settings->Privacy settingsCollect informationto enable tracking on your device.My Site->Toolbar Avatar->App Settings->Test feature configuration.BackupsFeatureConfig, scroll down and click theRESTART THE APPbutton. DO NOT confuse this feature flag with theBackupFeatureConfig(singular). Make sure to enable the right feature flag.Android Logcat, filter the logcat bytrackedand start noticing the🔵 Trackedevents.My Siteand click on theBackupmenu item. Notice thejetpack_backup_list_openedtrack event is triggered.activity_log_detail_openedtrack event is triggered withbackupas itssource.RESTOREbutton and then theRESTORE SITEdialog button. Notice that you will be redirected back to theBackupscreen and that thejetpack_backup_rewind_startedtrack event is triggered.Date Rangechip. Notice thejetpack_backup_filterbar_range_button_tappedtrack event is triggered.SAVE. Notice that you will be redirected back to theBackupscreen and that thejetpack_backup_filterbar_select_rangetrack event is triggered.xinner button within the chip to clear the filter. Notice thejetpack_backup_filterbar_reset_rangetrack event is triggered.PR submission checklist:
RELEASE-NOTES.txtif necessary.