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

[Payment due October 4]Remove any code that references or was used only for free workspaces (policies) #48345

Closed
tgolen opened this issue Aug 30, 2024 · 23 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@tgolen
Copy link
Contributor

tgolen commented Aug 30, 2024

Problem

There was a project this summer to deprecate and remove all of the free workspaces in Expensiy and migrate them over to team workspaces. Now that there are no free workspaces in the database or in the backend, there is a lot of leftover code that is no longer necessary.

Why is this important to solve?

Keeping the code up-to-date reduces technical debt and allows it to be more easily maintained.

Solution

Find any code that references or was used only for the free plan in E/App and remove it.

Issue OwnerCurrent Issue Owner: @situchan
@tgolen tgolen added External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Aug 30, 2024
@tgolen tgolen self-assigned this Aug 30, 2024
Copy link

melvin-bot bot commented Aug 30, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

Copy link

melvin-bot bot commented Aug 30, 2024

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

@cretadn22
Copy link
Contributor

@tgolen
Should we also remove the Personal Policy?

@cretadn22
Copy link
Contributor

cretadn22 commented Aug 30, 2024

Edited by proposal-police: This proposal was edited at 2024-08-30 17:00:38 UTC.

Proposal

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

Remove any code that references or was used only for free workspaces

What is the root cause of that problem?

New refactor

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

Remove CONST.POLICY.TYPE.FREE and PolicyUtils.isFreeGroupPolicy, and clean up all instances where they are used.

Also, remove the corresponding routes and pages associated with them

  • ROUTES.WORKSPACE_CARD
  • ROUTES.WORKSPACE_REIMBURSE
  • ROUTES.WORKSPACE_BILLS

Remove: workspace.type.free translation

What alternative solutions did you explore? (Optional)

@tgolen
Copy link
Contributor Author

tgolen commented Aug 30, 2024

Should we also remove the Personal Policy?

Nope, that one needs to stay there.

While you are looking for the code that can be removed, I've heard reports that there are pages or routes that are still referencing the free plan somehow, so please try to track down any pages or URL routes of that nature too. They might not be referencing that constant, so they might be a little tricky to find.

@cretadn22
Copy link
Contributor

Proposal updated

@cretadn22
Copy link
Contributor

@tgolen Could you review it once more?

Copy link

melvin-bot bot commented Sep 2, 2024

@tgolen, @Christinadobrzyn, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Sep 2, 2024
@Christinadobrzyn Christinadobrzyn added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024

This comment was marked as off-topic.

@Christinadobrzyn Christinadobrzyn removed their assignment Sep 3, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 3, 2024
@Christinadobrzyn Christinadobrzyn added Overdue Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Triggered auto assignment to @anmurali (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 melvin-bot bot removed the Overdue label Sep 3, 2024
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Sep 3, 2024

Just a heads up - I'm going to be ooo 9/4-9/10. I'll add a BZ teammate to watch this while I'm away!

@anmurali - we are reviewing/discussing this proposal. So I think you'll just need to monitor this but I don't expect anything will be needed while I'm away.

@tgolen
Copy link
Contributor Author

tgolen commented Sep 4, 2024

bump @situchan Can you please give the proposals a look?

@situchan
Copy link
Contributor

situchan commented Sep 4, 2024

We can go with @cretadn22's proposal.
Please add screenshots of all pages to be removed from route in PR. (opened from deep link)
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Sep 4, 2024

Current assignee @tgolen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 4, 2024
@cretadn22 cretadn22 mentioned this issue Sep 6, 2024
50 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 6, 2024
@Christinadobrzyn
Copy link
Contributor

@tgolen, when you have a moment, can you please check out this proposal review? TY! #48345 (comment)

@tgolen
Copy link
Contributor Author

tgolen commented Sep 20, 2024

@Christinadobrzyn Yeah, I had a look at it and assigned them a couple of weeks ago. It looks like they have a PR that is ready for review which I'm going to be taking a look at today.

@Christinadobrzyn
Copy link
Contributor

Thanks for the update @tgolen!

It looks like this PR was just merged to staging.

heads up - I'm going to be ooo until 9/30. Since we're reviewing PRs I'm not going to assign a BZ teammate to monitor this while I'm gone. If you need someone while I'm gone please feel free to reach out in Slack for a volunteer. TY!

@Christinadobrzyn Christinadobrzyn changed the title Remove any code that references or was used only for free workspaces (policies) [Payment due October 4]Remove any code that references or was used only for free workspaces (policies) Sep 30, 2024
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Sep 30, 2024

PR in production! Adding payment date to the title.

Payouts due:

Do we need a regression test (I assume not?)

@situchan
Copy link
Contributor

No need regression test. I am paid via upwork

@Christinadobrzyn
Copy link
Contributor

Thanks @situchan can you accept this offer - #48345 (comment)

TY!

@Christinadobrzyn Christinadobrzyn added Daily KSv2 and removed Weekly KSv2 labels Oct 4, 2024
@Christinadobrzyn
Copy link
Contributor

Moving to daily to pay this out.

@Christinadobrzyn
Copy link
Contributor

waiting on @situchan to accept the offer - https://www.upwork.com/nx/wm/offer/104260166

@Christinadobrzyn
Copy link
Contributor

This is paid out! Based on this payment summary #48345 (comment)

Closing as complete

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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants