openBackhaul / RegistryOffice

Apache License 2.0
2 stars 8 forks source link

/v1/register-application :: application-data logic to be updated if preceding-data is not present in request-body #469

Closed IswaryaaS closed 1 year ago

IswaryaaS commented 1 year ago

In /v1/register-application service, if preceding-application-name and preceding-release-number attributes are not present, for the first request, only future-application-name and future-release-number are getting created in "preceeding-application-information" list.

The same request for the second time is creating attributes preceding-application-name and preceding-release-number in "preceeding-application-information". This behavior is not expected. If preceding-data is not present in request-body, it shall not be created.

On the other hand, if preceding-data is already present for an application in "preceeding-application-information" list, and if /v1/register-application is triggered for same application without preceding-data, then the available attributes shall be removed. This is currently not happening.

Priority:Medium;

vanithavalluripalli9 commented 1 year ago

This issue is closed as part of PR https://github.com/openBackhaul/RegistryOffice/pull/498