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

HPC-9280: Support for plan deletion #133

Merged
merged 4 commits into from
Nov 21, 2023
Merged

HPC-9280: Support for plan deletion #133

merged 4 commits into from
Nov 21, 2023

Conversation

Pl217
Copy link
Contributor

@Pl217 Pl217 commented Nov 16, 2023

  • Add new permission global.DELETE_ANY_PLAN, granted to HPC and RPM admins
  • Allow to provide a transaction to authGrant.create and authGrant.update. Executing these methods in a transaction is vital, so we need a way to specify a transaction
  • Introduce auth target deletion util method

Only HPC and RPM admins are granted this role
Type `Models` is actually just a redefined
`Database` type. So, instead of defining a
local type, use the standard one. Also, all
utility methods that accept argument of this
type are calling it `database` and not `models`.
This code is implemented as utility method and
direct access to `models.authTarget.destroy` is
deprecated. Utility method is chosen over a
wrapper around `authTarget.destroy` because
of type mismatch that would occur because of
`actor: ParticipantId` argument, which deviates
from standard `{where, trx}` arguments.
@Pl217 Pl217 added the ready for review All comments have been addressed, and the Pull Request is ready for review label Nov 16, 2023
@Pl217 Pl217 requested a review from a team as a code owner November 16, 2023 15:16
@enxtur enxtur assigned Pl217 and unassigned enxtur Nov 20, 2023
@enxtur enxtur added ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished. and removed ready for review All comments have been addressed, and the Pull Request is ready for review labels Nov 20, 2023
@Pl217 Pl217 merged commit 25b6a45 into develop Nov 21, 2023
1 check passed
@Pl217 Pl217 deleted the HPC-9280 branch November 21, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants