Context: #114914 (comment)
We should make a clear distinction between the mutative upgrade operation and the read-only dry run operation for package policy upgrades by supporting two different HTTP verbs for these API calls.
The existing POST /package-policy/<id>/upgrade endpoint should remain the same, and will serve the purpose of upgrading a package policy to the latest installed version of its package. It does not support edits to the policy.
We should create a new GET /package-policy/<id>/upgrade endpoint that fulfills the same contract as the existing workflow around the request:
POST /package-policy/<id>/upgrade
{
"dryRun": true
}
Context: #114914 (comment)
We should make a clear distinction between the mutative
upgradeoperation and the read-onlydry runoperation for package policy upgrades by supporting two different HTTP verbs for these API calls.The existing
POST /package-policy/<id>/upgradeendpoint should remain the same, and will serve the purpose of upgrading a package policy to the latest installed version of its package. It does not support edits to the policy.We should create a new
GET /package-policy/<id>/upgradeendpoint that fulfills the same contract as the existing workflow around the request: