Skip to content
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 App#37783] [$250] Multilevel tags - Tag name in selection list shows the other tag name in confirmation page #38465

Closed
6 tasks done
izarutskaya opened this issue Mar 18, 2024 · 18 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 18, 2024

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: v.1.4.53-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: https://expensify.testrail.io/index.php?/tests/view/4429997
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • User is an employee of Collect workspace.
  • The Collect workspace has dependant multilevel tag set up
  • The multilevel tag is as follow:
    First level: State
    Second level: Region
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Begin manual request flow.
  4. In confirmation page, click Show more.
  5. Click the first level tag: State.
  6. Click the second level tag: Region.

Expected Result:

The tag name in RHP will show the correct tag name.

Actual Result:

The tag name in RHP shows the incorrect tag name.
In Step 5, it shows Region when it is State.
In Step 6, it shows State when it is Region.
Different from issue 37783 because this issue occurs in confirmation page only in this build v.1.4.53-2

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6417475_1710758436207.20240318_183255.mp4

Bug6417475_1710758436175!Dependent.-.Multi.Level.tags.NEW.csv

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015c4cfe611e62ddef
  • Upwork Job ID: 1769707891827982336
  • Last Price Increase: 2024-03-18
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 18, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 18, 2024

Current assignee @puneetlath is eligible for the Engineering assigner, not assigning anyone new.

@izarutskaya
Copy link
Author

@puneetlath 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.

@izarutskaya
Copy link
Author

We think that this bug might be related to the #collect project.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Mar 18, 2024
@melvin-bot melvin-bot bot changed the title Multilevel tags - Tag name in selection list shows the other tag name in confirmation page [$500] Multilevel tags - Tag name in selection list shows the other tag name in confirmation page Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015c4cfe611e62ddef

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External)

@mountiny mountiny changed the title [$500] Multilevel tags - Tag name in selection list shows the other tag name in confirmation page [$250] Multilevel tags - Tag name in selection list shows the other tag name in confirmation page Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Upwork job price has been updated to $250

@FitseTLT
Copy link
Contributor

FitseTLT commented Mar 18, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Multilevel tags - Tag name in selection list shows the other tag name in confirmation page

What is the root cause of that problem?

We order it with orderWeight to get tag list here

App/src/libs/PolicyUtils.ts

Lines 190 to 191 in 28cfc14

.sort((tagA, tagB) => tagA.orderWeight - tagB.orderWeight);
}

But we do not order before we get the tag name using the unordered list here
const policyTagListName = PolicyUtils.getTagListName(policyTags, tagIndex);

What changes do you think we should make in order to solve the problem?

We should order the policyTags using orderWeight as in here

App/src/libs/PolicyUtils.ts

Lines 190 to 191 in 28cfc14

.sort((tagA, tagB) => tagA.orderWeight - tagB.orderWeight);
}

and pass it here
const policyTagListName = PolicyUtils.getTagListName(policyTags, tagIndex);

What alternative solutions did you explore? (Optional)

@tienifr
Copy link
Contributor

tienifr commented Mar 18, 2024

Dupe of #37783, same root cause, this will be fixed in #37783

@mountiny
Copy link
Contributor

Thanks! Odd this came as a blocker now. I will demote this also because the multilevel tags are not yet used by customers in NewDot and put on hold for that linked issue

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 18, 2024
@mountiny mountiny changed the title [$250] Multilevel tags - Tag name in selection list shows the other tag name in confirmation page [HOLD App#37783] [$250] Multilevel tags - Tag name in selection list shows the other tag name in confirmation page Mar 18, 2024
@puneetlath
Copy link
Contributor

Still on hold.

@melvin-bot melvin-bot bot removed the Overdue label Apr 1, 2024
@puneetlath
Copy link
Contributor

Still on hold.

@melvin-bot melvin-bot bot added the Overdue label Apr 17, 2024
@puneetlath
Copy link
Contributor

Still on hold.

@melvin-bot melvin-bot bot removed the Overdue label Apr 17, 2024
@puneetlath
Copy link
Contributor

Still on hold.

@puneetlath
Copy link
Contributor

Looks like the other issue is fixed on staging. Asked for a re-test here: https://expensify.slack.com/archives/C9YU7BX5M/p1714410750527969

@kbecciv
Copy link

kbecciv commented Apr 29, 2024

Unable to reproduce it, build 1.4.67.2

bandicam.2024-04-29.21-37-07-452.mp4

@puneetlath
Copy link
Contributor

Great, closing out!

@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #expense Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Archived in project
Development

No branches or pull requests

7 participants