Skip to content

forgejo_team: Refactor permission & units_map attributes #149

Description

@acch

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:

  1. Understand the exact dependency between these two parameters.
  2. 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:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgoPull requests that update Go codequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions