Skip to content

Report field - Show violation on single transaction expense reports #46215

Description

@m-natarajan

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Found when validating #44139
Version Number: 9.0.12.0
Reproducible in staging?: y
Reproducible in production?: no
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:

  • Workspace is under Control plan.
  • Report fields feature is enabled.
  • Text type report field is added and it has no initial value.
  • The workspace has no unsettled expense.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit a manual expense.
  4. Go to expense report.
  5. Note that report field violations do not show up.
  6. Submit another manual expense.
  7. Note that report field violation shows up.
  8. Go to Troubleshoot > Clear cache and restart > Reset and restart.
  9. Go to expense report.
  10. Note that report field violations disappear..

Expected Result:

In Step 5, report field violation will show up after submitting the first expense.
In Step 10, report field violation will persist after clearing cache and restarting app.

Actual Result:

In Step 5, report field violation does not show up after submitting the first expense.
It only shows up after submitting the second expense (Step 7).
In Step 10, report field violation disappears after clearing cache and restarting app.

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

Bug6552777_1721919071237.20240725_224410.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on Jul 25, 2024
  2. melvin-bot commented on Jul 25, 2024

    @melvin-bot

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

  3. melvin-bot commented on Jul 25, 2024

    @melvin-bot

    Triggered auto assignment to @kadiealexander (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.

  4. github-actions commented on Jul 25, 2024

    @github-actions
    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.
  5. AndrewGable commented on Jul 25, 2024

    @AndrewGable
    Contributor
  6. 9 remaining items

  7. war-in commented on Jul 29, 2024

    @war-in
    Contributor

    I think I found the cause of the issue: #46425

    When the first expense was created we dealt with an optimistic IOU report and there was no fieldList field in it. If the fieldList is undefined we can't tell which fields were violated.

    I added fieldList to the OptimisticIOUReport and OptimisticExpenseReport types. That way we can optimistically set fieldList 🎉

    I'll mark PR as ready for review tomorrow because I need to test it and record videos

  8. war-in commented on Jul 31, 2024

    @war-in
    Contributor

    PR is ready for C+ review :)

    cc @allroundexperts

  9. melvin-bot commented on Aug 23, 2024

    @melvin-bot

    This issue has not been updated in over 15 days. @thienlnam, @kadiealexander, @war-in 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!

  10. allroundexperts commented on Aug 23, 2024

    @allroundexperts
    Contributor

    Can I get assigned here since I reviewed the PR?

  11. thienlnam commented on Aug 26, 2024

    @thienlnam
    Contributor

    Yeah, but this was a regression from #44139

  12. allroundexperts commented on Oct 8, 2024

    @allroundexperts
    Contributor

    My bad. This can be closed. You're correct @thienlnam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringMonthlyKSv2ReviewingHas a PR in review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions