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
Fixed missing tracks for error notifications #12184
Conversation
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APK here. |
…new intent brings this WPMainActivity to the foreground
Hi there! This is a standard release version bump message. Let me know if you have any feedback. |
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.
Good catch with this @mzorz 👍 !
I did a first pass and left a couple of notes/doubts I have to get your feedback. Let me know wdyt, thanks 🙇♂️
WordPress/src/main/java/org/wordpress/android/ui/main/WPMainActivity.java
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/main/WPMainActivity.java
Outdated
Show resolved
Hide resolved
Hi there! |
@mzorz @develric This issue is being bumped a second time without any updates. Could you please either merge it until the next code freeze or update the milestone manually and document the blocker for it? Thank you! Hi there! This is a standard release version bump message. Let me know if you have any feedback. |
Hi @oguzkocer ! This PR was a side contribution made in the last bit of HACK week and I was planning on following up with @develric's comments, but got busy with stories alpha, hence deprioritized this one in my ToDo list since this is not even a blocker. Should have made a comment about that here, getting back at it now 👍 |
@mzorz No worries about keeping a PR open but not getting to work on it. We just need to document our intentions in the PR for others, in this case release managers, to see. For example, it'd be totally fine to remove the milestone, convert the PR to a draft and add a comment saying "This is not a priority right now, so will work on it when I can". Hope that makes sense! |
Your point about communication is clear @oguzkocer 👍 |
… time a new intent brings this WPMainActivity to the foreground" This reverts commit b739754.
Ready for another round @develric - this time keeping the PR constrained to fixing what the issue describes 👍 🙇 |
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.
Hi @mzorz 👋! Checked this again and LGTM 👍. I tested the behavior as per reported steps and it works as expected. Only left a comment related to a small np, otherwise I'm fine to merge it. Let me know and thanks 🙇♂️.
WordPress/src/main/java/org/wordpress/android/ui/posts/PostsListActivity.kt
Outdated
Show resolved
Hide resolved
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 for the np update 🙇♂️ ! LGTM
Fixes #12063
For a reference, check original PR in #10679
This PR fixes that, by checking the proper
ARG_NOTIFICATION_TYPE
inonNewIntent
in the related activities (it was being set properly in the upload service and related classes, but not used when intended).- While at it, also fixed an issue in b739754: tracking code was only being called for new instances of WPMainActivity, when it should really have been the case for new intents to always get tracked.reverted in cef1846To test:
CASE A: Post list
trackTappedNotification
gets executedVariant: try creating the post from the Post list or from the Main activity, results should be the same (special case is when the Posts list it still instantiated, so don't go back to the Main activity in step 4 to let it sit there).
CASE B: Pages
Follow the same steps above but create a Page instead.
CASE C: Media
trackTappedNotification
gets executedPR submission checklist:
RELEASE-NOTES.txt
if necessary.