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-06-20] [$250] [Violations] Tags - Violation for unselected dependent tags displays tag name briefly then changes to "tag" #38095

Closed
6 tasks done
izarutskaya opened this issue Mar 11, 2024 · 71 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 11, 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: 1.4.50-0
Reproducible in staging?: Y
Reproducible in production?: N
Issue reported by: Applause-Internal team
Workspace ID: 34D57014C907E72E
Transaction thread reportID: 2426939351372174
Transaction ID: 7718685459543892670

Action Performed:

Precondition:

  • User is an employee of Collect workspace.
  • The Collect workspace has multilevel dependent tags.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create a manual request without tags.
  4. Go to request details page immediately after the request is created.

Expected Result:

The violation for unselected tags will display "missing tagname".

Actual Result:

The violation for unselected tags displays "missing tagname" briefly, then changes to "missing tag".

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

Bug6409992_1710179947631.bandicam_2024-03-12_01-53-35-255.mp4

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/~01f0cc71bb900348ff
  • Upwork Job ID: 1769788312802717696
  • Last Price Increase: 2024-05-23
Issue OwnerCurrent Issue Owner: @isabelastisser
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to @isabelastisser (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 11, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Mar 11, 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.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to @stitesExpensify (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@izarutskaya
Copy link
Author

@stitesExpensify 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 #wave6-collect-submitters
CC @greg-schroeder

@izarutskaya
Copy link
Author

Production video

Recording.2249.mp4

@luacmartins
Copy link
Contributor

luacmartins commented Mar 11, 2024

Demoting to NAB since it involves violations and that feature is behind a beta

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Mar 11, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 14, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

@isabelastisser, @stitesExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@isabelastisser isabelastisser added External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 18, 2024
@melvin-bot melvin-bot bot changed the title Tags - Violation for unselected dependent tags displays tag name briefly then changes to "tag" [$500] Tags - Violation for unselected dependent tags displays tag name briefly then changes to "tag" Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01f0cc71bb900348ff

Copy link

melvin-bot bot commented Mar 18, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Mar 18, 2024
@isabelastisser
Copy link
Contributor

Waiting for proposals.

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 23, 2024
@isabelastisser isabelastisser removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 23, 2024
@isabelastisser
Copy link
Contributor

Hey @hoangzinh, can you do the PR review for this issue before the end of this week? Thanks!

@hoangzinh
Copy link
Contributor

sure @isabelastisser

@hoangzinh
Copy link
Contributor

Hi @cead22 @luacmartins can anyone help to add my email toiyeucuocsong99+30@gmail.com (employee account) and toiyeucuocsong99+ws@gmail.com (admin WS account) to use violation beta? Thanks

@cead22
Copy link
Contributor

cead22 commented May 24, 2024

@hoangzinh added

Copy link

melvin-bot bot commented May 31, 2024

@cead22, @hoangzinh, @isabelastisser, @pac-guerreiro Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@hoangzinh
Copy link
Contributor

We're still working on the PR #40741 (comment)

Copy link

melvin-bot bot commented Jun 10, 2024

@cead22, @hoangzinh, @isabelastisser, @pac-guerreiro Eep! 4 days overdue now. Issues have feelings too...

@hoangzinh
Copy link
Contributor

hoangzinh commented Jun 11, 2024

PR was merged yesterday. Waiting to be deployed to staging/prod.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [$250] [Violations] Tags - Violation for unselected dependent tags displays tag name briefly then changes to "tag" [HOLD for payment 2024-06-20] [$250] [Violations] Tags - Violation for unselected dependent tags displays tag name briefly then changes to "tag" Jun 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jun 13, 2024

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:

  • [@hoangzinh] The PR that introduced the bug has been identified. Link to the PR:
  • [@hoangzinh] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@hoangzinh] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@hoangzinh] Determine if we should create a regression test for this bug.
  • [@hoangzinh] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 19, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

Payment Summary

Upwork Job

  • ROLE: @hoangzinh paid $(AMOUNT) via Upwork (LINK)
  • Contributor: @pac-guerreiro is from an agency-contributor and not due payment

BugZero Checklist (@isabelastisser)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1769788312802717696/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@isabelastisser
Copy link
Contributor

@hoangzinh, can you please complete the BZ list? Thanks!

ROLE: @hoangzinh paid $250 Contributor role
Contributor: @pac-guerreiro is from an agency-contributor and not due payment

@hoangzinh
Copy link
Contributor

BugZero Checklist:

  • The PR that introduced the bug has been identified. Link to the PR: Add violation logic for multi level tags #37461
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/37461/files#r1648218896
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • Determine if we should create a regression test for this bug: Yes

@hoangzinh
Copy link
Contributor

Regression Test Proposal

Create a policy in old dot with multi-level dependent tags. You can use this tags file dependent_tags.csv

  1. Sign in to New dot
  2. Click on Submit expense in a workspace you just created
  3. Select manual and enter any valid amount
  4. Fill the required fields while leaving the tag fields empty and create the expense
  5. Click on the preview of the expense you just created
  6. The tag fields that you didn't fill should display an error message - missing {tagName}, where tagName is the name of the tag field
  7. Wait a bit (1 minute or so) until the app is refreshed with updated data from the server
  8. Verify that the same error messages are showing in Step 6
  9. Then, update a tag field that is missing
  10. Verify that other tag fields should display a new error message All tags required

Offline tests

Same as above, but don't need step 7

  1. Sign in to New dot
  2. Click on Submit expense in a workspace you just created
  3. Select manual and enter any valid amount
  4. Fill the required fields while leaving the tag fields empty and create the expense
  5. Click on the preview of the expense you just created
  6. The tag fields that you didn't fill should display an error message - missing {tagName}, where tagName is the name of the tag field
  7. Verify that the same error messages are showing in Step 6
  8. Then, update a tag field that is missing
  9. Verify that other tag fields should display a new error message All tags required

Do we agree 👍 or 👎

@hoangzinh
Copy link
Contributor

Accepted offer. Thanks @isabelastisser

@cead22
Copy link
Contributor

cead22 commented Jun 21, 2024

That looks good to me. I had written a similar testing script, which I think is a bit more comprehensive, what do you think

  • In old dot, in the workspace editor > tags tab, switch on the Use multiple levels of tags and the People must tag expenses toggles
  • Click import from spreadsheet, uncheck “Are these independent tags?”, and upload the file in this issue comment
  • On new dot, press big plus sign > submit expense
  • Select Manual tab (from Manual | Scan | Distance)
  • Enter $15 as the amount amount and press next
  • Press the workspace from the pre-testing steps (press the row, not the split button in the row)
  • Press the merchant row and enter a merchant
    • Confirm the Required label shows on the State, Region, and City rows
  • Press the Submit $15 button
    • Confirm the report preview has a red circle
  • Press the report preview
  • If the report has more than 1 expense
    • Confirm the money request preview has a red circle and shows “Review Required”
  • Press the money request preview
    • Verify you see Missing State, Missing Region, and Missing City violations
  • Press the Region menu item, and select a region
    • Verify that the Missing Region violation disappears right away
    • Verify you see All tags required violations under State and City
  • Select a State
    • Verify that the see All tags required violation disappears from under State
    • Verify you see All tags required violations under City
  • Select a City
    • Verify that the see All tags required violations are gone
  • De-select City
    • Verify that the All tags required violation appears under City
  • 🛜Switch to new dot and go offline
  • Repeat steps 1-16. The report preview, money request preview should be grayed out
  • Go online, and confirm everything looks the same, except nothing is grayed out
  • Submit a new expense on the same workspace, and select all the required fields so there are no violation on that expense
  • Click on the link in the transaction thread header to go back to the expense report if you didn’t land there already
    • Verify the money request preview for the first expense says Review Required next to the a red circle

@isabelastisser
Copy link
Contributor

All set! Thanks, team!

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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests