Open izarutskaya opened 2 months ago
Triggered auto assignment to @johncschuster (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.
@johncschuster Huh... This is 4 days overdue. Who can take care of this?
Job added to Upwork: https://www.upwork.com/jobs/~021836148946035230114
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External
)
Hi, I’m Bartek from Callstack and I would like to investigate this issue.
@johncschuster Please assign @burczu here
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
@johncschuster, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
@johncschuster @burczu @shubham1206agra this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Thanks for assigning me to the issue. I was able to reproduce the issue and from what I see for admin, when we try to access the expense details report, we get the Report not found
error from the backend:
So I suspect this issue may be related to the backend - especially we don't get this error for an employee, so it looks like the report is not accessible in circumstances described in this issue. I'll spend some more time digging deeper to check if there is something else on the frontend side that may cause this, but I didn't find anything promising yet.
Thanks, @burczu! I'll take it internal then!
@shubham1206agra are you able to work on this?
@johncschuster I am not an internal employee. Please apply hot pick to assign an engineer.
Thanks, @shubham1206agra! I've done that now.
Waiting on this to get picked up
@johncschuster @burczu @shubham1206agra this issue is now 4 weeks old, please consider:
Thanks!
@johncschuster, @burczu, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
Still waiting on this one to get picked up
@srikarparsi curious for your input here, seems like another reason to execute this plan to not archive expense reports on workspace deletion: https://expensify.slack.com/archives/C036QM0SLJK/p1728047968818889?thread_ts=1728047962.737329&cid=C036QM0SLJK
Moving to the #quality GH project where the remaining "closed and archived" work has moved.
@johncschuster, @burczu, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Not overdue, Melvin. We're looking for some insight from @srikarparsi.
@srikarparsi curious for your input here, seems like another reason to execute this plan to not archive expense reports on workspace deletion:
So it's kind of two different things in the code at least.
I think this bug is happening because of the unsharing part.
Intereeesting. Are you saying these open expense reports remain on the workspace, but the admins/auditors of said workspace lose access to them? 🤔
Not overdue. Still discussing
@srikarparsi can you take a look at Tom's last message when you get a moment?
Intereeesting. Are you saying these open expense reports remain on the workspace, but the admins/auditors of said workspace lose access to them? 🤔
Yup, exactly. This comment: Unshare all open reports from admins and auditors.
Yeah, so I think the question comes down to:
Q: When a workspace is deleted, should the admins/auditors retain access to the open expense reports on the workspace to be able to move those somewhere else?
Move report
somewhere else (i.e another workspace that they're an admin of). Move report
elsewhere, including an option for the selfDM which would unreport the expenses).I don't really see the downside of (1). Do you, @JmillsExpensify @twisterdotcom?
Another option might have been to automatically move the open
expense reports off the workspace on deletion and to the member's individual workspace, but the notion of a "personal workspace" in NewDot doesn't exist. The closest equivalent would be the selfDM, but that would mean auto-unreporting all the expenses (as only unreported expenses exist in the selfDM), which I'm not sure a submitter would appreciate more than just keeping the open report intact and being able to move it elsewhere to another workspace or unreport the expenses on their own accord.
(Still discussing, Melvin)
I do prefer leaving the former admins with some access, and I don't see any problem with doing that.
@johncschuster, @burczu, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Discussing
I do prefer leaving the former admins with some access, and I don't see any problem with doing that.
Cool, then I think we do (1) then. 👍
Sounds good! @srikarparsi, will you be taking this on?
@johncschuster, @burczu, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@trjExpensify I believe @srikarparsi's plate is pretty full at the moment. Should we get this issue redistributed, or can it wait until his bandwidth opens back up?
Srikar isn't assigned in the first place, so it's available as a Hot pick in the meantime if someone can pick it up.
Hey sorry! I started looking at this and there's a little more to unpack because we also unshare all archived reports from everyone except the owner here. I'm going to think about this tomorrow and might have a couple of questions about expected behavior but I think I can take this on.
Ok, so we do two things in terms of un-sharing:
We're still archiving expense reports in the context of the code (they will still have the private_isArchived rNVP so that we can know to hide action buttons - submit, pay, etc. - in the frontend)
I know we had some other discussions about what reports should be accessible to who after a policy has been deleted. @trjExpensify or @twisterdotcom do you have any thoughts on this and I can move forward with implementing it?
I'm not sure what exactly you're asking for thoughts on, but to summarise on this.
Submit
, Approve
, or Pay
actions (which ever is applicable to the report state) and prevent additional expenses from being added to it. This ensures that:
I'm not sure what exactly you're asking for thoughts on
Sorry, the part I wanted thoughts on was who loses access to each type of report after a policy has been deleted. So for example right now I believe:
Owners: Lose access to all open expense reports Admins: Lose access to all archived reports Auditors: Lose access to all archived reports Members: Lose access to all archived reports
And based on what you said above, is expected that: Owners: Retain access to all reports Admins: Lose access to all archived chat and task reports (not expense reports) Auditors: Lose access to all archived chat and task reports (not expense reports) Members: Lose access to all archived chat and task reports (not expense reports)
Is this right? Sorry for not clarifying earlier.
Right, we aren't looking to modify the existing behaviour of other report types on policy deletion. We're clarifying what to do about expense
reports only with this.
Cool started on a PR here
@johncschuster, @burczu, @srikarparsi, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Chill out, Melvin. A PR is in the works!
We are holding this for https://github.com/Expensify/Auth/pull/12960
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: 9.0.33-1 Reproducible in staging?: Y Reproducible in production?: Y Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
As admin, opening expense details page in archived control workspace must not direct to hmm not here .
Actual Result:
As admin, opening expense details page in archived control workspace directs to hmm not here but as employee can view expense.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/267f3c2a-765e-48df-9a4f-7404e69921a1
View all open jobs on GitHub
Upwork Automation - Do Not Edit