forgejo_team has two related attributes permission and units_map. There are certain dependencies between these two attributes, which are not properly documented and not validated during terraform plan.
permission is currently optional, with a default value of read. This does not cover all use cases, see #147 for an example.
We need to:
- Understand the exact dependency between these two parameters.
- Refactor the schema to prevent this from becoming a footgun. (e.g. combine into a single attribute, add custom validation logic, etc.)
For reference, here's how the UI presents team permissions/units:

forgejo_teamhas two related attributespermissionandunits_map. There are certain dependencies between these two attributes, which are not properly documented and not validated duringterraform plan.permissionis currently optional, with a default value ofread. This does not cover all use cases, see #147 for an example.We need to:
For reference, here's how the UI presents team permissions/units: