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

[Awaiting Payment 23rd April] [$250] Deprecate policy.role in favor of employeeList #39025

Closed
marcochavezf opened this issue Mar 26, 2024 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.

Comments

@marcochavezf
Copy link
Contributor

marcochavezf commented Mar 26, 2024

From this internal conversation, we want to deprecate policy.role in favor of employeeList to check the current user's role:

As a summary, I think ideally what we need to make happen is:
1. Update App so it fetches a policy role in the correct place (using employeeList, not top-level role which does not exist in the database)
2. Undo sending the role top-level policy attribute to Onyx
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d08fbf19a9080a89
  • Upwork Job ID: 1782708664427339776
  • Last Price Increase: 2024-04-23
  • Automatic offers:
    • shubham1206agra | Reviewer | 0
    • getusha | Contributor | 0
@marcochavezf marcochavezf added Engineering Daily KSv2 Improvement Item broken or needs improvement. labels Mar 26, 2024
@marcochavezf marcochavezf self-assigned this Mar 26, 2024
@marcochavezf
Copy link
Contributor Author

@marcochavezf marcochavezf changed the title Deprecate policy.role in favor of employeeList [HOLD] Deprecate policy.role in favor of employeeList Mar 28, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2024
@marcochavezf
Copy link
Contributor Author

Still on hold

@flodnv
Copy link
Contributor

flodnv commented Apr 3, 2024

Off HOLD 😄

@trjExpensify
Copy link
Contributor

Removing the hold from the title then! Marco is out until Monday, so hopefully we can pick it up then.

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@trjExpensify trjExpensify changed the title [HOLD] Deprecate policy.role in favor of employeeList Deprecate policy.role in favor of employeeList Apr 5, 2024
Copy link

melvin-bot bot commented Apr 5, 2024

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

@marcochavezf
Copy link
Contributor Author

Sounds good, I will work on it tomorrow

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2024
@marcochavezf
Copy link
Contributor Author

marcochavezf commented Apr 10, 2024

Ok, we'd need to deprecate policy.role first from the frontend in favor of employeeList and then remove all the policy.role instances from Auth. Looking for a contributor to help with the first part

@marcochavezf
Copy link
Contributor Author

Assigning @shubham1206agra to implement the first part. Meanwhile, I will be working on the backend part.

@marcochavezf
Copy link
Contributor Author

Hi @shubham1206agra, any update about the frontend implementation?

@shubham1206agra
Copy link
Contributor

I will raise a PR tomorrow.
Approximately 20 small changes are there.

@marcochavezf
Copy link
Contributor Author

Cool, thanks!

@marcochavezf
Copy link
Contributor Author

PR for the backend change on hold

@shubham1206agra
Copy link
Contributor

PR is up #40178
But we should hold this for #39489

@melvin-bot melvin-bot bot added the Overdue label Apr 15, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

@marcochavezf, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@marcochavezf
Copy link
Contributor Author

On hold for #40178

@melvin-bot melvin-bot bot removed the Overdue label Apr 15, 2024
@trjExpensify
Copy link
Contributor

@flodnv confirming we need to pay out $250 each to @getusha & @shubham1206agra for the work to date on the PR?

@flodnv
Copy link
Contributor

flodnv commented Apr 22, 2024

Yes

@marcochavezf
Copy link
Contributor Author

Assigning the bug label to handle the payment

@marcochavezf marcochavezf added the Bug Something is broken. Auto assigns a BugZero manager. label Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

Triggered auto assignment to @sonialiap (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 added Daily KSv2 and removed Weekly KSv2 labels Apr 22, 2024
@trjExpensify trjExpensify changed the title Deprecate policy.role in favor of employeeList [$250] Deprecate policy.role in favor of employeeList Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d08fbf19a9080a89

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

Current assignee @shubham1206agra is eligible for the External assigner, not assigning anyone new.

@trjExpensify trjExpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 23, 2024

📣 @getusha 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@trjExpensify
Copy link
Contributor

Offers have been sent to you both.

Confirming payment summary as follows:

@trjExpensify trjExpensify added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Apr 23, 2024
@trjExpensify trjExpensify changed the title [$250] Deprecate policy.role in favor of employeeList [Awaiting Payment 23rd April] [$250] Deprecate policy.role in favor of employeeList Apr 23, 2024
@shubham1206agra
Copy link
Contributor

Accepted the offer

@trjExpensify
Copy link
Contributor

Paid @shubham1206agra. @getusha let me know here when you accept, as this job in Upwork isn't assigned to me so I won't get a notification otherwise. :)

@getusha
Copy link
Contributor

getusha commented Apr 23, 2024

@trjExpensify accepted.

Copy link

melvin-bot bot commented Apr 23, 2024

@marcochavezf @trjExpensify @shubham1206agra @getusha this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@trjExpensify
Copy link
Contributor

paid @getusha, closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests

6 participants