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 for payment 2024-09-26] [$250] [Dupe Detection] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow #47615

Closed
6 tasks done
IuliiaHerets opened this issue Aug 18, 2024 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 18, 2024

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: v9.0.21-3
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Workspace has a tag in X: Y format.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense without tag.
  4. Submit another same expense as the previous one, but with tag in X: Y format.
  5. Go to transaction thread.
  6. Click Review duplicates.
  7. Select Keep this one (any).
  8. Proceed to tag selection page.

Expected Result:

Tag in X: Y format will be displayed in X: Y format in review flow.

Actual Result:

Tag in X: Y format is displayed in X: Y format in review flow.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6575232_1723985370030.20240818_204619.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0176ca0a6294fa423b
  • Upwork Job ID: 1826096228342537444
  • Last Price Increase: 2024-08-21
  • Automatic offers:
    • etCoderDysto | Contributor | 103689450
Issue OwnerCurrent Issue Owner: @getusha
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 18, 2024
Copy link

melvin-bot bot commented Aug 18, 2024

Triggered auto assignment to @stephanieelliott (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@IuliiaHerets
Copy link
Author

@stephanieelliott 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

@etCoderDysto
Copy link
Contributor

Proposal

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

Tag in X: Y format is displayed in X: Y format in review flow

What is the root cause of that problem?

We are passing a tag that is formatted in X\: Y without removing the \ here to text prop of options object here

const options = useMemo(
() =>
compareResult.change.tag?.map((tag) =>
!tag
? {text: translate('violations.none'), value: ''}
: {
text: tag,
value: tag,

Then ReviewFields will use the text prop to render the X\: Y formatted tag
<ReviewFields<'tag'>
stepNames={stepNames}
label={translate('violations.tagToKeep')}
options={options}

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

Using PolicyUtils.getCleanedTagName(), we should remove \ from X\: Y tag before passing it to ReviewFields here

 {
      text: PolicyUtils.getCleanedTagName(tag),
      value: tag,
},

What alternative solutions did you explore? (Optional)

@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Aug 21, 2024
@melvin-bot melvin-bot bot changed the title Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow [$250] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow Aug 21, 2024
Copy link

melvin-bot bot commented Aug 21, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0176ca0a6294fa423b

@melvin-bot melvin-bot bot added Overdue Help Wanted Apply this label when an issue is open to proposals by contributors labels Aug 21, 2024
Copy link

melvin-bot bot commented Aug 21, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2024
@raza-ak
Copy link
Contributor

raza-ak commented Aug 23, 2024

Proposal

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

Tag in X: Y format is displayed in X: Y format in review flow

What is the root cause of that problem?

There are two issues.

  1. [Frontend] When users create a tag then escapeTagName function is appending // before colon in the tag name before sending request to server.
    -1-New-Expensify.webm
image
  1. [Backend] I tested by removing the // from the tag name but // is still appending to the tab name.

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

  1. We don’t need to call escapeTagName function and send the user provided tag name to server.
  2. I tested by removing the // from the tag name but // is still appending to the tab name. So we need to fix this issue from backend as well.

@melvin-bot melvin-bot bot added the Overdue label Aug 23, 2024
@getusha
Copy link
Contributor

getusha commented Aug 23, 2024

cc @bernhardoj this looks related to #46556

@melvin-bot melvin-bot bot removed the Overdue label Aug 23, 2024
@bernhardoj
Copy link
Contributor

It's not. We're not cleaning the tag name as @etCoderDysto suggested.

@getusha
Copy link
Contributor

getusha commented Aug 24, 2024

@etCoderDysto's proposal looks good to me.
🎀 👀 🎀 C+ Reviewed!

Copy link

melvin-bot bot commented Aug 24, 2024

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

@melvin-bot melvin-bot bot added Overdue and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Aug 26, 2024
Copy link

melvin-bot bot commented Aug 26, 2024

📣 @etCoderDysto 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@etCoderDysto
Copy link
Contributor

PR will be ready for review soon

@trjExpensify trjExpensify changed the title [$250] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow [$250] [Dupe Detection] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow Aug 28, 2024
Copy link

melvin-bot bot commented Aug 29, 2024

@puneetlath, @stephanieelliott, @getusha, @etCoderDysto Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@puneetlath
Copy link
Contributor

@etCoderDysto how's the PR coming?

@etCoderDysto
Copy link
Contributor

Hi @puneetlath. Sorry, I am OOO until the coming Monday. PR will be ready for review on Monday.

Copy link

melvin-bot bot commented Sep 1, 2024

@puneetlath @stephanieelliott @getusha @etCoderDysto this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@etCoderDysto
Copy link
Contributor

PR will be ready for review by tomorrow

@etCoderDysto
Copy link
Contributor

@getusha PR is ready for review

@stephanieelliott
Copy link
Contributor

PR is still under active review

@stephanieelliott
Copy link
Contributor

PR was merged to main

@stephanieelliott
Copy link
Contributor

PR was deployed to prod on 9/19 but it looks like the automation didn't work. Updating manually to add payment date

@stephanieelliott stephanieelliott added the Awaiting Payment Auto-added when associated PR is deployed to production label Sep 24, 2024
@stephanieelliott stephanieelliott changed the title [$250] [Dupe Detection] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow [HOLD for payment 2024-09-26] [$250] [Dupe Detection] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow Sep 24, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Sep 25, 2024
Copy link

melvin-bot bot commented Sep 25, 2024

This issue has not been updated in over 15 days. @puneetlath, @stephanieelliott, @getusha, @etCoderDysto 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!

@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

  • Contributor: @etCoderDysto $250 via Upwork -- PAID
  • Contributor+: @getusha $250 via NewDot -- please request

Upwork job is here: https://www.upwork.com/jobs/~0176ca0a6294fa423b

@garrettmknight
Copy link
Contributor

$250 approved for @getusha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review
Projects
Archived in project
Development

No branches or pull requests

8 participants