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

[LOW] DeleteWorkspace doesn't use optimistic reportAction data #35952

Closed
roryabraham opened this issue Feb 6, 2024 · 44 comments
Closed

[LOW] DeleteWorkspace doesn't use optimistic reportAction data #35952

roryabraham opened this issue Feb 6, 2024 · 44 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Monthly KSv2

Comments

@roryabraham
Copy link
Contributor

roryabraham commented Feb 6, 2024

Coming from https://expensify.slack.com/archives/C035J5C9FAP/p1706800444942609...

Problem

When we delete a workspace in NewDot, we create an optimistic CLOSED reportAction on the policy rooms, policyExpenseChat, etc...

However, that optimistic reportActionID is not used by the back-end.

Solution

Update DeleteWorkspace to follow our offline-first patterns and accept the optimistic reportActionIDs of the CLOSED actions and use them when closing reports in the back-end.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0116862805e09bb850
  • Upwork Job ID: 1754951538014932992
  • Last Price Increase: 2024-02-06
@roryabraham roryabraham added Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Bug Something is broken. Auto assigns a BugZero manager. Hot Pick Ready for an engineer to pick up and run with labels Feb 6, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0116862805e09bb850

Copy link

melvin-bot bot commented Feb 6, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @allroundexperts (Internal)

Copy link

melvin-bot bot commented Feb 6, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@roryabraham
Copy link
Contributor Author

@perunt can you help clarify that effect this has on the end-user?

@perunt
Copy link
Contributor

perunt commented Feb 7, 2024

Currently, it doesn't impact users as we filter out this type of action.
It is more important for Comment Linking as we need a proper message chain. But it also isn't a blocker, as the optimistic response can be temporarily removed.

@CortneyOfstad
Copy link
Contributor

@roryabraham any update on @perunt's comment above? Thanks!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 9, 2024
@CortneyOfstad
Copy link
Contributor

Bump @roryabraham ^^^ thanks!

@melvin-bot melvin-bot bot removed the Overdue label Feb 12, 2024
@greg-schroeder greg-schroeder changed the title DeleteWorkspace doesn't use optimistic reportAction data [MEDIUM] DeleteWorkspace doesn't use optimistic reportAction data Feb 12, 2024
@CortneyOfstad
Copy link
Contributor

Bump @roryabraham ^^^

@melvin-bot melvin-bot bot added the Overdue label Feb 16, 2024
@CortneyOfstad
Copy link
Contributor

@roryabraham can you confirm that you saw @perunt's comment here? Thank you!

@melvin-bot melvin-bot bot removed the Overdue label Feb 16, 2024
@roryabraham roryabraham added Weekly KSv2 and removed Daily KSv2 labels Feb 17, 2024
@roryabraham
Copy link
Contributor Author

Sorry for the delays - I'm not assigned to this issue so it's not in my K2, and I got behind on my email inbox.

It seems like this is a lower priority issue, but still one that we should fix. Going to make this weekly and move it to LOW in Wave 6. It's internal so we'll just need an Expensify engineer with bandwidth to take this on. Hopefully it should be included in the daily/weekly breakdown for wave6 issues in the slack channel and get a volunteer before too long.

@roryabraham
Copy link
Contributor Author

sorry, I know it has been a few weeks without updates here. In that time we landed comment linking and the new arch, and have had a number of urgent issues/fires that have consumed all my attention. Hopefully in a few days, things will settle down and I'll be able to make my rounds on internal issues where I need to actually complete some PRs. Hopefully I can have something by EOW or next week

@CortneyOfstad
Copy link
Contributor

Sounds good — thanks @roryabraham!

@CortneyOfstad
Copy link
Contributor

Hi @roryabraham! Just doing a check-in to see if we're still on track to have something by EOW? If not, do you think we should adjust the frequency to monthly? Just trying to gauge where we're at — thank you!

@CortneyOfstad
Copy link
Contributor

Bump @roryabraham ^^^ Thanks!

@CortneyOfstad
Copy link
Contributor

@roryabraham bump ^^^

@melvin-bot melvin-bot bot added the Overdue label May 14, 2024
@CortneyOfstad
Copy link
Contributor

Changing this to monthly. @roryabraham feel free to adjust it if need-be 👍

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2024
@CortneyOfstad CortneyOfstad added Monthly KSv2 Overdue and removed Weekly KSv2 labels May 15, 2024
@melvin-bot melvin-bot bot removed the Overdue label May 15, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 17, 2024
@CortneyOfstad
Copy link
Contributor

Not overdue!

@melvin-bot melvin-bot bot removed the Overdue label Jun 17, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 18, 2024
@CortneyOfstad
Copy link
Contributor

Still not overdue — low priority at this point!

@melvin-bot melvin-bot bot removed the Overdue label Jul 22, 2024
@trjExpensify
Copy link
Contributor

Is this issue needed anymore? 🤔 Just thinking we've moved to archiving reports using the isArchived rNVP, so wonder if this CLOSED action consideration is obsolete. CC: @srikarparsi for a second opinion.

@melvin-bot melvin-bot bot added the Overdue label Aug 22, 2024
@CortneyOfstad
Copy link
Contributor

@srikarparsi interested to hear your opinion on this! If we feel this is not needed, we can definitely close! I wasn't aware of the change to use isArchived rNVP — sorry for missing that!

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

We still need the closed action because that contains the archived reason we display in the footer.

image

I'll assign myself and if I have time to look into this next week I will.

@srikarparsi srikarparsi self-assigned this Aug 23, 2024
@trjExpensify
Copy link
Contributor

Gotcha, so what are the next steps here? It's a bit unclear, and what impact this is having, especially as it has been open since Feb.

@srikarparsi
Copy link
Contributor

Impact:
Basically nothing I believe? @roryabraham correct me if I'm wrong though. It's just that in most places, we optimistically create a report action in the beginning and then use that in the backend. But for this, I believe we didn't follow that here.

Next steps:
We would need App, Web and Auth PRs to push and use the right reportActionIDs for this but it's nothing crazy. I just haven't had time to prioritize it over current issues.

@trjExpensify
Copy link
Contributor

Alright, but I think if we follow that git blame trail it leads to this issue of Aldo's to address it, so I think this issue is a dupe and we should close it? https://github.com/Expensify/Expensify/issues/383435

@roryabraham
Copy link
Contributor Author

Agree, this is a dupe of https://github.com/Expensify/Expensify/issues/383435. Or technically that one is a dupe of this one. Happy to close this one and let @aldo-expensify handle

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. Engineering Internal Requires API changes or must be handled by Expensify staff Monthly KSv2
Projects
No open projects
Development

No branches or pull requests

7 participants