Skip to content
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

Remove editor_upload_media_paused analytics event #19972

Closed

Conversation

derekblank
Copy link
Contributor

@derekblank derekblank commented Jan 18, 2024

Removes instances of the (unreleased) editor_upload_media_paused analytics event in favor of tracking these as part of media_service_upload_response_error in tandem with CONNECTION_ERROR.

See also:

To Test:

editor_upload_media_paused should no longer appear in analytics events.


Regression Notes

  1. Potential unintended areas of impact
    Analytics events

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Manual Testing in Superset/Looker

  3. What automated tests I added (or what prevented me from doing so)
    N/A


PR Submission Checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@derekblank derekblank added Analytics Gutenberg Editing and display of Gutenberg blocks. labels Jan 18, 2024
@derekblank derekblank requested a review from dcalhoun January 18, 2024 01:33
@derekblank derekblank self-assigned this Jan 18, 2024
@derekblank derekblank added this to the 24.1 milestone Jan 18, 2024
@wpmobilebot
Copy link
Contributor

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19972-61034fc
Commit61034fc
Direct Downloadwordpress-prototype-build-pr19972-61034fc.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19972-61034fc
Commit61034fc
Direct Downloadjetpack-prototype-build-pr19972-61034fc.apk
Note: Google Login is not supported on these builds.

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 40.45%. Comparing base (916c1cc) to head (61034fc).
Report is 4566 commits behind head on trunk.

Files with missing lines Patch % Lines
...press/android/ui/posts/editor/media/EditorMedia.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #19972   +/-   ##
=======================================
  Coverage   40.45%   40.45%           
=======================================
  Files        1440     1440           
  Lines       66513    66506    -7     
  Branches    10957    10957           
=======================================
  Hits        26905    26905           
+ Misses      37121    37114    -7     
  Partials     2487     2487           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -308 to -316
val properties: Map<String, Any?> = withContext(bgDispatcher) {
analyticsUtilsWrapper
.getMediaProperties(media.isVideo, null, media.filePath)
.also {
it["error_type"] = error.type.name
}
}

analyticsTrackerWrapper.track(EDITOR_UPLOAD_MEDIA_PAUSED, site, properties)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I review the required changes, it makes me pause and wonder if retaining this event is worthwhile to retain a "balance" in total number of editor_upload analytic events. I.e., with these changes the overall project work will now reduce the number of editor_upload events because we introduced a scenario where we no longer track the editor_upload error event.1

I still think the EDITOR_UPLOAD_MEDIA_PAUSED is unnecessary in that it duplicates media_service failure events associated with NO_CONNECTION, but that is true of EDITOR_UPLOAD_MEDIA_FAILED as well.

From looking at the origins of the events in 5201e74 and a88901e, their additions appear to be over a year apart with no mention of one another. My guess is the overlapping events are merely oversight.

All that to say: the proposed changes look sound for removing the event, but if you'd prefer to close this PR instead of merging, I'd support that as well.

Footnotes

  1. I will note that this "balancing" argument is irrelevant to iOS where we seemingly do not trigger any editor_upload events (p1704979060599929-slack-C063XEQAM8X?thread_ts=1704979060.599929&cid=C063XEQAM8X).

@derekblank derekblank modified the milestones: 24.1, 24.2 Jan 22, 2024
@derekblank
Copy link
Contributor Author

Deferring to 24.2 milestone to evaluate this event further.

@spencertransier spencertransier modified the milestones: 24.2, 24.3 Feb 5, 2024
@oguzkocer
Copy link
Contributor

It seems this PR was approved a while back, but it's not being merged until further evaluation. Instead of pushing the milestone every release, I am going to remove the milestone from it. Please do set it once it's decided which release it's going to go in.

@oguzkocer oguzkocer removed this from the 24.3 milestone Feb 19, 2024
@dangermattic
Copy link
Collaborator

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@nbradbury
Copy link
Contributor

As discussed elsewhere, we've decided to close older PRs that have non-trivial merge conflicts and/or have non-trivial CI conflicts.

@nbradbury nbradbury closed this Aug 28, 2024
@dcalhoun dcalhoun deleted the gutenberg/remove-upload-paused-analytics-event branch August 28, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analytics Gutenberg Editing and display of Gutenberg blocks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants