App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD Violations in Auth] RTER Pending Expense - RTER Pending expense is not moved to new report when it's approved

Open isagoico opened this issue 1 year ago β€’ 32 comments

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.20-6

Reproducible in staging?: Yes Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail: https://github.com/Expensify/Expensify/issues/403524#issuecomment-2290080995

Email or phone of affected tester (no customers): [email protected]

Logs: https://stackoverflow.com/c/expensify/questions/4856

Issue reported by: Applause - Internal team Slack conversation:

Action Performed:

Preconditions: a workspace with scheduled submit enabled, a employee and admin and the employee has a company card assigned.

  1. In an account that has a domain controlled company card (not Expensify Card)
  2. Submit a expense via scan in the workspace chat
  3. Wait for the smartscan to finish
  4. Verify the expense has pending status
  5. In the workspace chat, submit a manual expense
  6. Submit the report
  7. As the approver - Approve the report

Expected Result:

The pending expense should be moved to a new Report.

Actual Result:

The pending expense is not moved to a new report and it still has the Pending Status.

Below are the details of a report with this issue: Account: [email protected] Report ID: 8189390567239041 Transaction ID: 6273679857286185

Workaround:

N/A

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

image

image

View all open jobs on GitHub

isagoico avatar Aug 15 '24 17:08 isagoico

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

melvin-bot[bot] avatar Aug 15 '24 17:08 melvin-bot[bot]

Going to drop off this one, Gents. I'm sure you know what you're doing :)

trjExpensify avatar Aug 15 '24 19:08 trjExpensify

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

melvin-bot[bot] avatar Aug 19 '24 18:08 melvin-bot[bot]

Looking today

yuwenmemon avatar Aug 20 '24 15:08 yuwenmemon

This is coming up with customers btw. More in Slack.

JmillsExpensify avatar Aug 21 '24 12:08 JmillsExpensify

After some further discussion in Slack we were conflating this with the other Pending CC Transaction state, which is affecting the customer.

This one might actually benefit from waiting a bit while we get the RTER Violation in Auth (cc @deetergp), since we would be able to keep all logic there and have it be 1:1:1.

yuwenmemon avatar Aug 21 '24 15:08 yuwenmemon

Waiting on https://github.com/Expensify/Auth/pull/11972 before implementing this in Auth

yuwenmemon avatar Aug 22 '24 14:08 yuwenmemon

Still waiting on https://github.com/Expensify/Auth/pull/11972

yuwenmemon avatar Aug 26 '24 17:08 yuwenmemon

Still on HOLD

yuwenmemon avatar Aug 29 '24 00:08 yuwenmemon

@JmillsExpensify, @yuwenmemon Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Sep 03 '24 18:09 melvin-bot[bot]

Still on HOLD

yuwenmemon avatar Sep 04 '24 07:09 yuwenmemon

@JmillsExpensify, @yuwenmemon Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Sep 09 '24 18:09 melvin-bot[bot]

Just a heads up that https://github.com/Expensify/Auth/pull/11972 was deployed to production a few days ago.

deetergp avatar Sep 10 '24 18:09 deetergp

Niiice! Thanks for the heads up!

yuwenmemon avatar Sep 10 '24 18:09 yuwenmemon

Relevant DD section: https://docs.google.com/document/d/1zJqlTe_RajuBtfQYvbMx8PpXgA9CEnUGVyuqZihQ-ok/edit#heading=h.xp9szvgb3nej

yuwenmemon avatar Sep 11 '24 20:09 yuwenmemon

Based on this conversation the full ramp-up for violations will take longer than just the implementation of the RTER violation we had been waiting on, so I'm just going to go with the original way we had it in the design doc.

yuwenmemon avatar Sep 12 '24 04:09 yuwenmemon

@war-in I'm looking to do something similar to what you and @robertjchen did for Held Requests with this PR (and Issue), except with Expenses that have the "Receipt pending match with card transaction" Violation - are you interested in giving this a look?

I can work on the back-end components for ya.

yuwenmemon avatar Sep 12 '24 06:09 yuwenmemon

@yuwenmemon I'm currently involved in HybridApp development but I found someone from our team who can take care of it - @zfurtak :)

I can help with questions if there are any 🫑

war-in avatar Sep 12 '24 10:09 war-in

Thanks @war-in!

Okay so based on the continuing conversation here, I think ideally we still wait to make the back-end changes until we have Violations fully in Auth. - which seems like it will be a couple of weeks now at the minimum...

That being said, what we'd want to do in the client is treat all transactions with a Pending RTER Violation like they're held. Does that make sense @zfurtak?

yuwenmemon avatar Sep 12 '24 19:09 yuwenmemon

Hi πŸ‘‹ Sorry but I don't have access to the linked chat.

That being said, what we'd want to do in the client is treat all transactions with a Pending RTER Violation like they're held. Does that make sense @zfurtak?

So similarly to the Held Requests, after approving we want to transfer them to to a new report?

zfurtak avatar Sep 13 '24 09:09 zfurtak

hi @isagoico, could you tell me how can I add this card to reproduce the issue? 😊 Or maybe can I use already created account?

zfurtak avatar Sep 13 '24 13:09 zfurtak

Sorry but I don't have access to the linked chat.

Yeah, sorry about that. It's an internal one. In that thread, I was asking about our back-end logic for violations. We're currently in the middle of moving them from one system to another. Based on some recent developments in that discussion, we wanted to hold the back-end changes until that's done.

Now, this puts us at a bit of a crossroads. We can hold off until the back-end is ready to go (maybe about a month, hopefully less) or we can move forward on these front-end portions without being able to reliably test for the moment. Up to us.

yuwenmemon avatar Sep 13 '24 18:09 yuwenmemon

As for reproducing, @isagoico I actually don't know how you set that up πŸ˜… - but if you wanted to import a card into your Expensify account you can follow the instructions here: https://help.expensify.com/articles/expensify-classic/connect-credit-cards/Personal-Credit-Cards

yuwenmemon avatar Sep 13 '24 18:09 yuwenmemon

@yuwenmemon If this issue is not urgent I would wait for the backend to be ready, as the process of writing frontend code without the backend part is usually slower and may produce some issues due to lack of testing. What do you think? πŸ€”

zfurtak avatar Sep 16 '24 09:09 zfurtak

Yep, that sounds good to me I will place this on HOLD once more.

yuwenmemon avatar Sep 16 '24 19:09 yuwenmemon

Still on hold

JmillsExpensify avatar Sep 25 '24 17:09 JmillsExpensify

Still waiting on violations in auth

JmillsExpensify avatar Oct 09 '24 17:10 JmillsExpensify

Still on hold

JmillsExpensify avatar Oct 24 '24 16:10 JmillsExpensify

Holding on other projects.

JmillsExpensify avatar Nov 06 '24 18:11 JmillsExpensify

Still holding

JmillsExpensify avatar Nov 20 '24 17:11 JmillsExpensify