-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-04-26] [$1000] Production Expensify LogSearch links always direct to staging LogSearch when clicked on staging #17178
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@alex-mechler would this be an internal issue because it touches our internal logSearch feature? Adding |
Triggered auto assignment to @Julesssss ( |
Maybe, but I wonder if this is some logic in NewDot that is replacing the domain. Especially because this is only occurring when you're on the staging env. Update: this doesn't occur for |
I think this can be external. Its likely related to the url swapping we do for attachments. https://github.com/Expensify/App/blob/main/src/libs/tryResolveUrlFromApiRoot.js If I click on the same link from the same message on production, it properly redirects to production. |
Ah nice okay, cool. Shipping on to |
Job added to Upwork: https://www.upwork.com/jobs/~01688c505ff837c0a7 |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Current assignee @Julesssss is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Links directing to log search are not directing to their intended target What is the root cause of that problem?When rendering anchor tags there are some conditions evaluated to decide how the link is opened. This is defined in App/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js Lines 25 to 35 in b041f49
So when the url for logs When user is in When user is in What changes do you think we should make in order to solve the problem?I think the current conditions should be kept as it is because several scenarios are already handled successfully. In addition to that we should add a simple check to pass through We simply need to extend this to include What alternative solutions did you explore? (Optional)We could rework the logic to handle internal urls better so that any other expensify url similar to |
@Julesssss Seems the above proposal is on the right track here, let me know your thoughts Not sure why we make changes to old dot production URLs ie. from expensify.com --> staging.expensify.com |
Given the user is viewing NewDot Staging, ie In this case we would want to direct the user to the same environment of OldDot that the user is currently on NewDot rather than sending them directly to original url which is in production. So |
Thanks for the detailed proposal! I think the exception for devtools makes the most sense 👍 |
📣 @pubudu-ranasinghe You have been assigned to this job by @Julesssss! |
Thanks. Applied in Upwork and will post a PR within the day |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.1-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-04-26. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@Julesssss I think we can skip the checklist here N/A. Since this is not a regression introduced anywhere, also we won't need a regression test as well! Do you agree? cc: @trjExpensify |
Yup, I agree with that sentiment. Alright, merge happened within 3 days (accounting the weekend). Payments due by my calculation 🤓 🧑🏫 $1,500 to @pubudu-ranasinghe for the fix Sent offers on Upwork! |
Settled up with you both! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The user should be taken to the exact link that is shown, and displayed when hovering the link
Actual Result:
The user is sent to the staging version of the same link
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.97-3
Reproducible in staging?: y
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
2023-04-07_09-58-55.mp4
Recording.169.mp4
Expensify/Expensify Issue URL:
Issue reported by: @alex-mechler
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680887189111179
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: