Closed kavimuru closed 1 year ago
Triggered auto assignment to @trjExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)@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 Engineering
for now to get more eyes.
Triggered auto assignment to @Julesssss (Engineering
), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
would this be an internal issue because it touches our internal logSearch feature? Adding Engineering for now to get more eyes.
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 https://www.expensify.com/
, but does for https://www.expensify.com/_devportal/
. So I'm starting to think this is in fact an internal issue, that will require changes in Web-E.
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 external
then! :)
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 (External
)
Current assignee @Julesssss is eligible for the External assigner, not assigning anyone new.
Links directing to log search are not directing to their intended target
When rendering anchor tags there are some conditions evaluated to decide how the link is opened. This is defined in AnchorRenderer
newdotreport?reportID=
this is opened in the app internallyopenOldDotLink
and replaces the domain with respective old dot domainsSo when the url for logs https://www.expensify.com/_devportal...
is posted, the conditions evaluate this to be an old dot url and replaces the domain.
When user is in staging.new.expensify.com
expensify.com
--> staging.expensify.com
When user is in localhost
expensify.com
--> expensify.com.dev
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 _devportal
links. Already there is a similar condition which ignores concierge/
urls
We simply need to extend this to include && !attrPath.startsWith('_devportal')
We could rework the logic to handle internal urls better so that any other expensify url similar to _devportal
can pass through. But I do not have enough knowledge in the matter on what kind of other internal links are expected, if they are expected at all.
@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
@Santhosh-Sellavel
Given the user is viewing NewDot Staging, ie staging.new.expensify.com
And a link is posted which is supposed to be opened in OldDot. Something like www.expensify.com/exists_in_old_dot
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 www.expensify.com/exists_in_old_dot
is replaced with www.staging..expensify.com/exists_in_old_dot
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! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
Thanks. Applied in Upwork and will post a PR within the day
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.1-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-04-26. :confetti_ball:
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 $1,500 to @Santhosh-Sellavel for C+ $0 to @alex-mechler for reporting the bug 😛
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
https://user-images.githubusercontent.com/43996225/230699814-4b4b098c-2ae9-4ade-8c56-691ecfab47db.mp4
https://user-images.githubusercontent.com/43996225/230699819-2e05df93-55a8-4551-8aea-13255fb43fef.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