-
Notifications
You must be signed in to change notification settings - Fork 3k
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] IOU - Missing Tag violation on IOU details page when tag was disabled in OD #36380
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01da546d53cc21957d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Triggered auto assignment to @adelekennedy ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that when a custom tag is selected for an IOU and then later disabled by an admin in Old Dot (OD), the expected tag violation does not appear on the IOU details page within the app. This leads to improper functionality due to a disabled tag being able to be used for an IOU. What is the root cause of that problem?The root cause seems to be a failure in the app's logic to check for tag status changes in OD after an IOU is created. There appears to be either a missing real-time update flow from OD to the app or a lack of validation check for tag status when displaying the IOU details. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)An alternative could be to prevent the disabling of tags in OD if they have been used in any outstanding IOUs, thus avoiding this issue altogether. |
@allroundexperts, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Thanks for your proposal @brandonhenry. Your proposal seems too generic and does not provide a clear cut solution. |
Still looking for more proposals. |
@allroundexperts i did some more digging on this one and I wonder if this issue is well defined? The video shows interaction with the OD workspace and the ND workspace. Are these supposed to be connected? I am currently having issues with there seemingly being two types of workspaces specific to each? Maybe this one is a bit beyond me for my first contributor assist but I am curious why I am having the user experience I am. Reproduceable steps:
If you create the workspace in ND first, you cannot see that workspace inside of OD. In addition, I do not see any way to create a non-free workspace inside of ND, so i am unable to work with tags inside of the ND..? Not sure if this is the way its suppose to be |
Going to still do some digging but was finding it hard to find the particularly screen shown in the original post without being able to access a paid workspace inside of ND.. |
@allroundexperts managed to find the hopeful culprit. Updated ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that when a custom tag is selected for an IOU and then later disabled by an admin in Old Dot (OD), the expected tag violation does not appear on the IOU details page within the app. This leads to improper functionality due to a disabled tag being able to be used for an IOU. What is the root cause of that problem?The root cause seems to be a failure in the app's logic to check for tag status changes in OD after an IOU is created. There appears to be either a missing real-time update flow from OD to the app or a lack of validation check for tag status when displaying the IOU details. What changes do you think we should make in order to solve the problem?// Inside the MoneyRequestView component In order for the error to properly show when a tag is disabled / not there, we need to update the inline error property for the MenuItem to check if the tag is available and enabled like so:
|
@brandonhenry Thanks for the updated proposal. Your proposal is making sense now. However, I am unsure what exactly is the expected behaviour of this issue. Pulling in an internal engineer for further discussion 🎀 👀 🎀 |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@neil-marcellini Shouldn't the backend be attaching a violation to the |
I think we should put a hold on this issue, since this is a known issue that we need to holistic solution for, because updating tags is only one case where the violations displayed in the UI might be outdated. The tag change on old dot should push the updated tag lists to the relevant new dot clients, but that alone doesn't trigger the re-render of the money request view (or money request preview, or report preview) to display violations |
Ok sounds good @cead22. What issue should we hold this on? |
We don't have one yet. Should we make this one internal, and I'll take it over, or do you think it's better that I create a new one? |
Actually, let's close this in favor of #34541 since it's a dupe |
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.40.0
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:
Issue found when executing PR #35048
Action Performed:
Precondition: set up Admin and Employee accounts and add only one tag to the workspace in OD
Expected Result:
The tag violation should be displayed on the IOU details page
Actual Result:
The tag violation is missing on the IOU details page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6377302_1707773969777.Screen_Recording_2024-02-12_at_19.35.23.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: