-
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
[$500] Tag - "Missing tag" error appears & disappears when change Category on created request #37644
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @deetergp ( |
We think that this bug might be related to #wave36 |
@deetergp FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Job added to Upwork: https://www.upwork.com/jobs/~01fd47387167e68ba4 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Not able to reproduce Screen.Recording.2024-03-02.at.2.37.40.AM.mov |
ProposalProblem:When creating a manual expense request, if the user edits the category after initial submission, a "Missing tag" error briefly flashes even though the "People must tag expenses" setting is disabled. Root Cause:The issue is caused by incorrect validation logic in the hasMissingSmartscanFields function or the getViolationsOnyxData function. These functions is incorrectly triggering the "Missing tag" error even when the policy does not require tags. Proposed Changes:Modify the validation logic in the hasMissingSmartscanFields function:
This change ensures that the "Missing tag" error is only triggered when the policy actually requires tags. Alternatively, modify the getViolationsOnyxData function: If the issue is in the getViolationsOnyxData function, you would need to modify the logic that checks for missing tags to also consider the policy requirements. Alternative Solutions:Another possible solution could be to investigate the state management in the MoneyRequestView component to see if there is a problem with how the state is being updated when the category is changed. However, based on the information provided, fixing the validation logic seems like the most likely solution. By implementing the proposed changes, we can ensure that the "Missing tag" error is only displayed when it is truly required by the policy, preventing confusion and improving the user experience. |
@omarnagy91 Thanks for the proposal. Were you able to reproduce the bug? Seeing this is a deploy blocker, were you able to find the offending PR? |
@s77rt |
@s77rt |
@omarnagy91 I'm still unable to reproduce. I can't validate the root cause but seeing this is a deploy blocker and no recent changes to |
@s77rt
I think this is the commit |
@s77rt |
commit caa025b
|
@s77rt it's one of those three commits I am still analyzing everything
|
@omarnagy91 Both #34564 and #35871 are already on production, they can't be the offending PRs. |
I'm able to reproduce in dev, but not yet sure what the root cause is. Screen.Recording.2024-03-04.at.10.13.59.AM.mov |
@deetergp try searching console logs for Onyx and seeing what updates are getting applied? without further investigation my guess would be that the front-end and the back-end aren't in agreement about whether a tag is required. So something like this is happening:
|
Since the violations feature is in beta, this does not need to be a blocker. Also, one of our internal engineers has a draft PR going that should address this https://github.com/Expensify/App/pull/37461/files |
removing |
#37461 is merged. Can someone please retest this if it's still reproducible? |
I just requested a retest in our QA Slack channel. I'll report back when I know more. |
Tester is still able to reproduce. Recording.2588.mp4 |
@deetergp Let's reopen this. I was able to reproduce, I had to logout and login again. This bug is internal as the BE returns |
Current assignee @s77rt is eligible for the Internal assigner, not assigning anyone new. |
I have not had a chance to dig much deeper into this. I hope to get to it before the week is out. |
Hoping to get to this today. |
Still have not had a chance to look into this. Hopefully sometime this week. |
I just retested this on staging and am not able to reproduce. Can anyone else? |
@cead22 was this the same as the bug we tried debugging for a few hours on a call about a month ago? I know that one was also inconsistently reproducible, but you also traced the source and fixed it right? |
Yeah this should be fixed |
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: 1.4.46-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition:
Expected Result:
Selected category should be displayed and no error messages should occur
Actual Result:
"Missing tag" error message appears and disappears when change Category on created Manual request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6398779_1709325409504.Recording__2445.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: