Null status in deploymentInfo response when deploying an API product
Description
In GET /api-products/{id}/revisions?query=deployed%3Atrue call, the deploymentInfo.status value of the response is null.
Due to this, the auto-fetching functionality of gateway notifier feature is not working with API Products. So the user has to manually refresh the page to see the deployment progress. (The auto fetching frontend logic is written to consider the deploymentInfo.status when fetching)
Steps to Reproduce
- Create an API Product
- Go to deployments page and click on "Deploy"
- Check the response payload of GET
/api-products/{id}/revisions?query=deployed%3Atruenetwork call
deploymentInfo.statusis null. (In normal APIs the value of this attribute isAPPROVED)
Version
4.6.0
Environment Details (with versions)
No response
⚠️ Note: Revert the change done in https://github.com/wso2/apim-apps/pull/1110/commits/99904b99c99678d4a10893d6d7ad19d31f26226b after this issue is resolved
Keeping this issue open since the backend issue still persists.