uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
552 stars 149 forks source link

feat: add new add/remove admin to organization, deprecate old add/remove #3763

Open shreddedbacon opened 2 weeks ago

shreddedbacon commented 2 weeks ago

General Checklist

Database Migrations

The old process of adding a user as an owner of an organization was previously an owner flag, then with #3733 added admin. This is now different to other things that have a role concept.

This PR introduces a new OrganizationRole type and 2 new mutations that deprecate the older functions with the new types. Both old and new can still be used, but the recommendation would be to use the new ones for simplicity.

Changes