You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-01-25] [$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat #33934
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 1.4.21-2 Reproducible in staging?: y Reproducible in production?: y 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
changed the title [-]Storybook - "Page not found.." appears when navigate to Storybook link from chat[/-][+][$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat[/+]on Jan 4, 2024
Please re-state the problem that we are trying to solve in this issue.
"Page not found.." appears when navigate to Storybook link from chat
What is the root cause of that problem?
The storybook link is being treated as internal Expensify/New Expensify path, so it tries to open using navigation which won't work.
What changes do you think we should make in order to solve the problem?
Treat storybook link as external path, we can check the path prefix of the storybook to determine this.
We can update here so that it additionally checks the path prefix of the storybook, if it matches then it will not be considered as internal new Expensify path.
We can enhance the CONST.PATHS_TO_TREAT_AS_EXTERNAL so that it uses RegEx to check rather than exact match, then we can put RegEx of the storybook links there
What alternative solutions did you explore? (Optional)
An alternate implementation is we can use exact match for the storybook pathname docs/index.html but we need to compare the pathname instead of this attrPath which currently includes the search/hash as well
We should also double check other places that can let users open arbitrary link from the app as well to see if the same issue is present. The solution should be similar.
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer 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 📖
changed the title [-][$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat[/-][+][HOLD for payment 2024-01-25] [$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat[/+]on Jan 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this 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:
[@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
[@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@aimane-chnaif] Determine if we should create a regression test for this bug.
[@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@miljakljajic] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
[-]Storybook - "Page not found.." appears when navigate to Storybook link from chat[/-][+][$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat[/+]melvin-bot commentedon Jan 4, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01fbe4578a663e3299
melvin-bot commentedon Jan 4, 2024
Triggered auto assignment to @miljakljajic (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 4, 2024
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Jan 4, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (
External)tienifr commentedon Jan 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
"Page not found.." appears when navigate to Storybook link from chat
What is the root cause of that problem?
The storybook link is being treated as internal Expensify/New Expensify path, so it tries to open using navigation which won't work.
What changes do you think we should make in order to solve the problem?
Treat storybook link as external path, we can check the path prefix of the storybook to determine this.
We can update here so that it additionally checks the path prefix of the storybook, if it matches then it will not be considered as internal new Expensify path.
We can enhance the
CONST.PATHS_TO_TREAT_AS_EXTERNALso that it uses RegEx to check rather than exact match, then we can put RegEx of the storybook links thereMore info on the path of story book here.
What alternative solutions did you explore? (Optional)
An alternate implementation is we can use exact match for the storybook pathname
docs/index.htmlbut we need to compare the pathname instead of this attrPath which currently includes the search/hash as wellWe should also double check other places that can let users open arbitrary link from the app as well to see if the same issue is present. The solution should be similar.
miljakljajic commentedon Jan 4, 2024
@aimane-chnaif are you able to reproduce this? The link works fine for me?
aimane-chnaif commentedon Jan 4, 2024
yes, reproduced. To reproduce, it should be deep link opened from chat, not directly visit.
miljakljajic commentedon Jan 8, 2024
Got it, thank you. Please review @tienifr 's proposal when you're ready!
9 remaining items
melvin-bot commentedon Jan 11, 2024
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer 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 📖
[-][$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat[/-][+][HOLD for payment 2024-01-25] [$500] Storybook - "Page not found.." appears when navigate to Storybook link from chat[/+]melvin-bot commentedon Jan 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-2 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 2024-01-25. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 18, 2024
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:
miljakljajic commentedon Jan 22, 2024
@aimane-chnaif please accept the offer in upwork when you have a chance!
miljakljajic commentedon Jan 25, 2024
paid and paid, closing.