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

[Re-test] Workspace - "Hmm it's not here" message appears briefly when changing tags #41905

Closed
1 of 6 tasks
lanitochka17 opened this issue May 9, 2024 · 18 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@lanitochka17
Copy link

lanitochka17 commented May 9, 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.72.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #41723

Action Performed:

Preconditions: Have a Collect WS with Tags and Taxes enabled. Have at least one tag added

  1. Log in with an expensifail account
  2. Navigate to FAB - Send invoice
  3. Finish the invoice flow
  4. Open the invoice details
  5. Change the tag

Expected Result:

No error should be visible

Actual Result:

"Hmm it's not here" message appears briefly when changing tags

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

Add any screenshot/video evidence

Bug6475607_1715241293798.REBW6051.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 9, 2024
Copy link

melvin-bot bot commented May 9, 2024

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

@lanitochka17
Copy link
Author

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

@nkdengineer
Copy link
Contributor

Proposal

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

"Hmm it's not here" message appears briefly when changing tags

What is the root cause of that problem?

For the invoice report, we move to this case and update the iouReport in IOUUtils.updateIOUOwnerAndTotal

updatedMoneyRequestReport = IOUUtils.updateIOUOwnerAndTotal(iouReport, updatedReportAction.actorAccountID ?? -1, diff, TransactionUtils.getCurrency(transaction), false, true);

In here we have the logic to swap managerAccountID and ownerAccountID when the total < 0. But for invoice report, the total is always <0 so the managerAccountID is changed to the current user

App/src/libs/IOUUtils.ts

Lines 88 to 92 in 0e8a10d

if (iouReportUpdate.total < 0) {
// The total sign has changed and hence we need to flip the manager and owner of the report.
iouReportUpdate.ownerAccountID = iouReport.managerID;
iouReportUpdate.managerID = iouReport.ownerAccountID;
iouReportUpdate.total = -iouReportUpdate.total;

And then not found page appear briefly by this condition

App/src/libs/ReportUtils.ts

Lines 2597 to 2599 in 0e8a10d

if (isInvoiceReport(moneyRequestReport) && isManager) {
return false;
}

const shouldShowNotFoundPage = !shouldShowTag || (isEditing && (isSplitBill ? !canEditSplitBill : reportAction && !canEditMoneyRequest(reportAction)));

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

I think invoice report is similar with expense report, we should add the check for invoice report here so the iouReport can be updated correctly in optimistic data.

} else if ((ReportUtils.isExpenseReport(iouReport) || ReportUtils.isInvoiceReport(iouReport)) && typeof iouReport.total === 'number') {

} else if (ReportUtils.isExpenseReport(iouReport) && typeof iouReport.total === 'number') {

What alternative solutions did you explore? (Optional)

If the invoice report should be updated in IOUUtils.updateIOUOwnerAndTotal, we should change this condition accordingly for this report like this

if ((iouReportUpdate.total) * (ReportUtils.isInvoiceReport(iouReport) ? -1 : 1) < 0) {

App/src/libs/IOUUtils.ts

Lines 88 to 92 in 0e8a10d

if (iouReportUpdate.total < 0) {
// The total sign has changed and hence we need to flip the manager and owner of the report.
iouReportUpdate.ownerAccountID = iouReport.managerID;
iouReportUpdate.managerID = iouReport.ownerAccountID;
iouReportUpdate.total = -iouReportUpdate.total;

@melvin-bot melvin-bot bot added the Overdue label May 13, 2024
Copy link

melvin-bot bot commented May 14, 2024

@strepanier03 Huh... This is 4 days overdue. Who can take care of this?

@strepanier03
Copy link
Contributor

Working on testing this, haven't been able to repro so far but will keep working on it.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 16, 2024
Copy link

melvin-bot bot commented May 21, 2024

@strepanier03 Eep! 4 days overdue now. Issues have feelings too...

@strepanier03 strepanier03 added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label May 21, 2024
@strepanier03 strepanier03 changed the title Workspace - "Hmm it's not here" message appears briefly when changing tags [Re-test] Workspace - "Hmm it's not here" message appears briefly when changing tags May 21, 2024
@strepanier03
Copy link
Contributor

I am only able to test via Browserstack and I'm still struggling to recreate this. I added testing labels so we can get some weekly testing done before moving forward.

@melvin-bot melvin-bot bot removed the Overdue label May 21, 2024
Copy link

melvin-bot bot commented May 23, 2024

@strepanier03 this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label May 24, 2024
Copy link

melvin-bot bot commented May 27, 2024

@strepanier03 Huh... This is 4 days overdue. Who can take care of this?

@strepanier03
Copy link
Contributor

Retesting for now.

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Jun 3, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

@strepanier03 Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Jun 10, 2024

@strepanier03 10 days overdue. Is anyone even seeing these? Hello?

@strepanier03
Copy link
Contributor

Pausing during retesting, no repro for 1 week. Holding.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 10, 2024
@strepanier03
Copy link
Contributor

strepanier03 commented Jun 13, 2024

Pausing during retesting. I'm unable to repro still.

@melvin-bot melvin-bot bot removed the Overdue label Jun 13, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

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

@strepanier03
Copy link
Contributor

Retesting.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 18, 2024
@strepanier03
Copy link
Contributor

I'm not able to repro this still. Closing now.

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. Daily KSv2 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
None yet
Development

No branches or pull requests

4 participants