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

Make /api/v2/workflow_approvals/ endpoint read-only #13593

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

gamuniz
Copy link
Contributor

@gamuniz gamuniz commented Feb 17, 2023

SUMMARY

Currently the workflow_approvals endpoint allows posts which are unnecessary and by themselves are not useful. This changes the parent class to one which only allows list.

If someone is trying to approve or deny a workflow approval the correct endpoint would be:
/api/v2/workflow_approvals/N/approve/
api/v2/workflow_approvals/N/deny/

Where N is the id of the approval.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
AWX VERSION
make VERSION
awx: 21.11.1.dev79+gbbe2a4d669

ADDITIONAL INFORMATION

@gamuniz gamuniz self-assigned this Feb 17, 2023
included workflow approval as a read only endpoint to pass collection tests
@github-actions github-actions bot added the component:awx_collection issues related to the collection for controlling AWX label Feb 17, 2023
@gamuniz gamuniz changed the title changing the signature of workflowapprovallist changing workflowapprovallist to a read only endpoint. Feb 17, 2023
@shanemcd shanemcd changed the title changing workflowapprovallist to a read only endpoint. Make /api/v2/workflow_approvals/ endpoint read-only Feb 17, 2023
@gamuniz gamuniz merged commit 77ec46f into ansible:devel Feb 17, 2023
@gamuniz gamuniz deleted the fix_workflowapproval_view branch February 17, 2023 23:19
@tvo318
Copy link
Member

tvo318 commented Feb 23, 2023

@gamuniz - will this be back-ported to 4.3 and 4.2?

@gamuniz
Copy link
Contributor Author

gamuniz commented Feb 24, 2023

@tvo318 After discussing this with @AlanCoding this will not be back ported to earlier versions, it might require we document that this endpoint was never intended to be posted to in the tips and tricks or known issues portion of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:api component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants