Skip to content

[Task]: sync enforcement actions from cinder policies api endpoint #15421

@eviljeff

Description

@eviljeff

Description

When we implemented cinder policies api sync the enforcement action was unavailable via the API response - only the name and uuid was exposed. Because of this we required AMO operations admin to manually set some enforcement actions (default_cinder_action) to make some reviewer tools functionality work. Now this is exposed via their API we can skip this manual setup.

Things to note though:

  • there can be multiple enforcement actions
  • some reviewer tools functionality may only expect default_cinder_action to be set on certain policies - we will need to check something doesn't break in unexpected ways.

Acceptance Criteria

  ### Milestones/checkpoints
  - [ ] enforcement_action list saved to AMO CinderPolicy model instances
  - [ ] these enforcement actions are used instead of manually defined `default_cinder_action` property

Checks

  • If I have identified that the work is specific to a repository, I have removed "repository:addons-server" or "repository:addons-frontend"

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions