-
Notifications
You must be signed in to change notification settings - Fork 6
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
[MOB-3221] Native SRPV Analytics #873
Conversation
PR Reviewer Guide 🔍(Review updated until commit 50b66e7)Here are some key observations to aid the review process:
|
CODE_SIGN_STYLE = Automatic; | ||
CODE_SIGN_STYLE = Manual; |
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.
Had to change this to run EcosiaTests locally since it was with Automatic signing enabled.
PR Code Suggestions ✨Latest suggestions up to 50b66e7
Previous suggestionsSuggestions up to commit e48eed8
|
Persistent review updated to latest commit 50b66e7 |
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.
All good and I highlighted some of the implementation and polishment here and there! Asked some clarifying comments before giving final 👍 💪
Thanks!
var updatedUrl = newURL | ||
// Ecosify if needed |
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.
Should we use our standard // Ecosia:
and /* Ecosia */
patter here and below or is there a special case for this series of comments in this snippet?
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.
Above this code, on the first line of the setter, we already have
/* Ecosia: Change setter to update URL accordingly and track search event when needed
locationView.url = newURL
*/
Everything below that then is already Ecosia code. This is already similar to what we had before but I added more code there and included some explaining comments. To try and make this more visible I left all of the code together with no separating blank lines. Do yo think that's clear enough? Or would you suggest we have multiple Ecosia comments?
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 explanation!
I thought there was a reason and the second part of that comment made me feel so 👌 .
The only "challenge" I see is from a person willing to contribute (beyond us today with an history on making such contribution) and reading the Ecosia comment section. If in the next upgrade for any reason it won't be us working on it, the fellow Ecosian may discard such comments as not following the pattern and seeing the "conflict" raised as a reason to, by default, discard it and follow Firefox's approach.
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.
Yeah, you're right, will add them even if there's the one on top 🙂
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.
Done! ✅
4b19b77
to
40b23ed
Compare
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 updates! 🙏 🚀
Will fix the production build issues then will be available for being merged 💪
83bf274
to
9667fe4
Compare
MOB-3221
(reopening #870 after it got closed due to the main branch migration)
Context
We want to have Native SRPV we can use to base retention metrics of.
Approach
Finding where to track
Finding out exactly where in code is the best place to track this url can was trickier than expected, as the tab flow is quite complex and changes might happens on multiple places. Here are some attempts worth documenting:
1
did not fit, a number of other candidates where attempted like for example using the observed URL value change which in turn triggered the tab event handler. They seem great but in the end have the same core issue of being triggered multiple times from different places.Some things that still trigger the event (if the url matches) but there's not much way around without over-complicating:
Other
URL Tests
Took the opportunity to organise them and mark, besides adding the new ones.
Flaky tests
Skipped some more flaky tests that are troubling us for a while and added them to MOB-3030 so they can be checked later.
Before merging
Checklist
// Ecosia:
helper comments where needed