-
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
[Pay when ntdiary is setup for NewDot payments][$500] Multilevel tag - Tag name in RHP is not the same as the tag being clicked on #37783
Comments
Triggered auto assignment to @mallenexpensify ( |
@mallenexpensify 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 that this bug might be related to #wave6-collect-submitters |
ProposalPlease re-state the problem that we are trying to solve in this issue.Multilevel tag - Tag name in RHP is not the same as the tag being clicked on What is the root cause of that problem?In Later in In short, we first process the policy tags object from Onyx to an array sorted based on What changes do you think we should make in order to solve the problem?We should modify the return getTagList(policyTagList, tagIndex).name; Note: What alternative solutions did you explore? (Optional)NA |
Job added to Upwork: https://www.upwork.com/jobs/~01fff45536696176bf |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @ntdiary ( |
@ntdiary can you help me here? I just spent ~20 mins trying to get the account setup to test.
Anything you know of that I'm doing wrong? |
@mallenexpensify Please take a look at QA steps 1 - 3 from #34127. Also you need to log out then log in again then the collect workspace is there. If that still didn't work, please try to create a money request to the collect workspace from employee account by the bottom bar |
ProposalPlease re-state the problem that we are trying to solve in this issue.Multilevel tag - Tag name in RHP is not the same as the tag being clicked on What is the root cause of that problem?We display sorted tags by name, but we forgot to use
Lines 179 to 188 in a04481f
What changes do you think we should make in order to solve the problem?We need to pass sorted const policyTagLists = useMemo(() => PolicyUtils.getTagLists(policyTags), [policyTags]);
const policyTagListName = PolicyUtils.getTagListName(policyTagLists, tagIndex);
// Update getTagListName
function getTagListName(policyTagList: PolicyTag[], tagIndex: number): string {
if (!policyTagList.length) {
return '';
}
return policyTagList[tagIndex]?.name ?? '';
} Resulttag_list_name.mp4 |
@mallenexpensify, I think this can be external. |
@mallenexpensify, I guess you forgot the step 2 (i.e., executing the js code) before inviting the employee account. |
@mallenexpensify, sure, I can reproduce it, and this can be fixed in NewDot, so I think this can be external. But I'm going to bed, so I can only review proposals tomorrow, if it's urgent, we can apply another c+ here. :) |
Note: we all know that the code incorrectly uses the sorted index and the index generated by App/src/libs/ModifiedExpenseMessage.ts Lines 197 to 198 in 401bb21
|
Current assignee @ntdiary is eligible for the External assigner, not assigning anyone new. |
Thx @ntdiary , added |
ProposalPlease re-state the problem that we are trying to solve in this issue.In Step 4, when opening RHP for first level tag (State), the tag name is the second level tag (Region). What is the root cause of that problem?When we try to edit the tag, it will open a route with a But when retrieving the tag name here, it's using the unsorted list to get the name, causing the switching issue in the OP. Meanwhile, in other places like here, it's using the What changes do you think we should make in order to solve the problem?Part of the confusion here is that we're relying on Instead, the tag So we should (suggested in here):
This approach will also work fine because the What alternative solutions did you explore? (Optional)
|
@tienifr, Which field does tag |
This issue has not been updated in over 15 days. @ntdiary, @NikkiWines, @mallenexpensify, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. @ntdiary, @NikkiWines, @mallenexpensify, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@ntdiary can you update the BZ checklist plz? 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:
|
Regression test:Precondition:
Steps:
|
$500 approved for @ntdiary |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.47-2
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
First level: State
Second level: Region
Multi Level tag
Dependent - Multi Level tags NEW.csv
Expected Result:
When the respective level tag is opened, the RHP will show the correct tag name (Step 4 and 5).
Actual Result:
In Step 4, when opening RHP for first level tag (State), the tag name is the second level tag (Region).
In Step 5, when opening RHP for second level tag (Region), the tag name is the second level tag (State).
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6403264_1709667194180.20240305_200515.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: