-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Login - Web - Onyx console error when opening the login site #60531
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
Comments
Triggered auto assignment to @sakluger ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Login - Web - Onyx console error when opening the login site What is the root cause of that problem?We set Lines 97 to 107 in 7e5a333
On first load on incognito all will be empty What changes do you think we should make in order to solve the problem?set What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-19 13:58:04 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Login - Web - Onyx console error when opening the login site What is the root cause of that problem?When we first time open the page in incognito mode What changes do you think we should make in order to solve the problem?To fix this issue we need to set Solution 1const [lastVisitedPath] = useOnyx(ONYXKEYS.LAST_VISITED_PATH, {canBeMissing: true}); Or Solution 2We need to return some initial data from here What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)To fix this issue we need to set const [lastVisitedPath] = useOnyx(ONYXKEYS.LAST_VISITED_PATH, {initWithStoredValues: false, canBeMissing: true}); |
ProposalPlease re-state the problem that we are trying to solve in this issue.Login - Web - Onyx console error when opening the login site What is the root cause of that problem?RCA - When a user opens the the app for the first time from incognito tab - the value of Line 107 in b8b86db
What changes do you think we should make in order to solve the problem?
const [lastVisitedPath] = useOnyx(ONYXKEYS.LAST_VISITED_PATH, {canBeMissing: isAnonymousUser() || false}); Line 107 in b8b86db
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)Optionally we could make use of Navigation module to check for current path and conditionally pass Line 106 in b8b86db
so that navigation path is initialized before retrieving the value of lastVisitedPath from Onyx DB.
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Question for people who posted proposals: Does this console error negatively affect end users in any way? If so, what problem is caused for end users? |
No this console error does not effect end users any how. When So philosophy for the key is - pass false for the objects which are absolutely necessary to render the page and could potentially crash the page/app in case values are missing in onyx store, so to catch any potential bug prior to a crash due to missing values. Find more context here - #58499 cc. @sakluger |
@iwiznia tagging you because you were assigned to the GH issue linked in the previous comment. Do you think we should fix this console error, or can we just close the issue given that it doesn't affect end users? |
Yes we should fix it, having no console errors is part of the check lists. We discussed a couple of |
Job added to Upwork: https://www.upwork.com/jobs/~021915877434962707714 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
Got it, thanks! I'll add the external label. @shubham1206agra could you help determine where the regression came from so that we can assign the correct person to fix this? |
@sakluger The offending PR was #59191, but it is out of the regression period. @fabioh8010 Can you take this issue up? |
@fabioh8010 I assigned you to the issue. Could you please take a look and see if this is something you should work on? |
@fabioh8010 is OOO this week, but I'll ask if someone from the team wants to take it over! |
Hi, I'm Marta from Callstack. Please assign me to this issue, I can take it over ✌ |
Hi @martasudol, would you like to fix this issue #60991 (comment) together in your PR? Thanks |
Sure! Let me fix it in my PR 🖖 |
@iwiznia, since these errors appear throughout the entire app, changing individual Could you provide more context on why this value is needed in the first place? Curious to hear your thoughts on this! 🖖 CC @fabioh8010 |
Triggered auto assignment to @johncschuster ( |
I will be OOO from May 5 - 16, so I have added another BZ member to watch over the issue while I'm out. |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
The thing is that no new ones should be appearing, since they create a console error and we should not merge PRs with console errors (it's part of the checklist). So if new ones appear, we should assign them to whoever added that |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.1.30-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5957614
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: Windows 10 / Chrome
App Component: Other
Action Performed:
Expected Result:
There shouldn't be any console errors.
Actual Result:
Onyx console error when opening the login site.
Workaround:
Unknown
Platforms:
Screenshots/Videos
1.mp4
2.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: