-
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
[HOLD for payment 2024-04-15] [Violations] [$500] Multilevel tags - "no longer valid" violation is shown after selecting all the tags #38044
Comments
Triggered auto assignment to @laurenreidexpensify ( |
👋 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 @grgia ( |
@grgia 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. |
We think this bug might be related to #wave6-collect-submitters. cc @greg-schroeder |
Maybe related to #37461 |
Taking over because this definitely comes from my PR. That said, let's not block deploys on this since violations are in beta |
I found the problem with this, and it's that we're not using the tag lists orderWeight to check the tag lists in the right order when diff --git a/src/libs/Violations/ViolationsUtils.ts b/src/libs/Violations/ViolationsUtils.ts
index fe2e5af537..b6aa513072 100644
--- a/src/libs/Violations/ViolationsUtils.ts
+++ b/src/libs/Violations/ViolationsUtils.ts
@@ -55,7 +55,11 @@ function getTagViolationsForMultiLevelTags(
policyRequiresTags: boolean,
policyTagList: PolicyTagList,
): TransactionViolation[] {
- const policyTagKeys = Object.keys(policyTagList);
+ let orderedTagList = new Array(Object.keys(policyTagList).length);
+ for (const tagList in policyTagList) {
+ orderedTagList[policyTagList[tagList].orderWeight] = policyTagList[tagList].name;
+ }
+ const policyTagKeys = orderedTagList;
const selectedTags = updatedTransaction.tag?.split(CONST.COLON) ?? [];
let newTransactionViolations = [...transactionViolations];
newTransactionViolations = newTransactionViolations.filter(
I'm going to label this External to get a proper proposal and move this forward |
Job added to Upwork: https://www.upwork.com/jobs/~01e30e5ceb96930999 |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@FitseTLT Waiting for your PR |
PR is on staging, so we'll start the regression period as soon as this hits production. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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-04-15. 🎊 For reference, here are some details about the assignees on 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:
|
Payment Summary:
|
Waiting on @dukenv0307 to complete checklist and confirm regression steps |
Bump for checklist @dukenv0307 |
BugZero Checklist:
|
@laurenreidexpensify Sorry for the delay. I completed the checklist ^ |
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.50-2
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):
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:
Tag violation will disappear after selecting the tags.
Actual Result:
After selecting all the tag, the last tag shows "no longer valid".
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6409633_1710163056343.20240311_211507.mp4
Bug6409633_1710163006169!independant_tag.csv
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @dukenv0307Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: