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

Issue with Change Lifecycle Checklist Items when migrating from APIM 2.6.0 to APIM 4.0.0 #7699

Closed
BLasan opened this issue Feb 21, 2024 · 0 comments

Comments

@BLasan
Copy link
Contributor

BLasan commented Feb 21, 2024

Description:
When publishing a new API version with Require re-subscription when publishing the API ticked, on lifecycle change it executes with incorrect check list.

Approach:

  • Log into the carbon management console (https://<APIM_HOST>:<APIM_PORT>/carbon)
  • Select the "Browse" under the "Resources" section.
  • Then navigate to the below registry location.
  • /_system/config/repository/components/org.wso2.carbon.governance/lifecycles
  • You will be able to see a file named "APILifeCycle".
  • Click the "Actions" drop-down in front of that file and click the "Download" button.
  • After that, click the "Delete" button to remove the current APILifeCycle file.
  • Back up the downloaded APILifeCycle file and search for the below phrases.
  • Deprecate old versions after publish the API
  • Require re-subscription when publish the API
  • You will be able to see two occurrences as below,
  <state id="Created">
                     <datamodel>
                         <data name="checkItems">
                             <item name="Deprecate old versions after publishing the API" forEvent="">
                             </item>
                             <item name="Require re-subscription when publish the API" forEvent="">
                             </item> 
                         - - - - - - -
                           
                         </data>
                       - - - - - - -  
                 </state>
                 <state id="Prototyped">
                     <datamodel>
                         <data name="checkItems">
                             <item name="Deprecate old versions after publishing the API" forEvent="">
                             </item>
                               <item name="Require re-subscription when publish the API" forEvent="">
                             </item> 
                             - - - - -
                         </data>
                        - - - - - -
                </state>
  • Replace both occurrences with the below phrase (Please refer to the attached sample APILifeCycle file ).
  • Deprecate old versions after publishing the API
  • Requires re-subscription when publishing the API
  • After modifying the APILifeCycle file click the "Add Resource" button under the same registry path (/_system/config/repository/components/org.wso2.carbon.governance/lifecycles)
  • Upload the modified file and define the resource name as APILifeCycle as below.
  • Click the Add button to upload the modified APILifeCycle file.
@BLasan BLasan closed this as completed Feb 21, 2024
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

No branches or pull requests

1 participant