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

Add changes to add subscription status to application.yaml when exporting and to support ignoreTier query param when importing #12442

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shnrndk
Copy link
Contributor

@shnrndk shnrndk commented May 10, 2024

Related PR: https://github.com/wso2-support/carbon-apimgt/pull/6447, https://github.com/wso2-support/carbon-apimgt/pull/6451

This PR adds the subscription workflow status to the application.yaml when exporting an application. Please note that although we added the changes to the application.yaml, we haven't considered the status when importing. Need to have a discussion and support preserving the workflow status when importing too. Currently the status is shown as "ON_HOLD" for all 3 types (ON_HOLD, ACCEPTED, REJECTED).
This PR adds a query parameter to the import Rest API call as ''ignoreTier". This is to skip considering whether the subscription tier is available at the API for a particular subscription at the time of importing the application. The default value is false. If the value is set to true, then the tier will not be considered and the import will be done for all the subscriptions. Only an error will be logged saying the particular tier is not available for the subscription of the particular API. If the value is false, default behaviour will be considered and the application will be imported giving a 207 status.

…ting and to support ignoreTier query param when importing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant