-
Notifications
You must be signed in to change notification settings - Fork 15
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
ALS Admin Service DELETE API not working as expected #2342
Comments
After a quick review, it looks like the Oracle entries are marked as inactive and not deleted as such, hence the error. To fix - we need to either remove entries when DELETE call is made or 'activate' a disabled oracle if the same entry is retried on POST or use a different key (such as start date) and make every POST request for creating a new oracle a new entry.. |
@elnyry-sam-k, the approach of maintaining a history of oracles could be done as follows:
This should allow a "history" of oracles to exists within the Database without impacting the API's functions. This will also allow the deleteOracle domain operation to function as intended. |
Nvm, its a default entry. The tests were giving me the wrong impression. |
Can you clarify this comment @mdebarros for me and what problem this solves?
Do you mean setting |
Correction in bold (although its a bit hard to see):
I.e. it means you can only update an existing oracle with isActive=true IFF (if and only if) there is no other oracle with isActive=true with the these matching fields: ['partyIdTypeId', 'endpointTypeId', 'currencyId']. Does that make more sense?
Correct |
Summary:
The DELETE API in ALS Admin Service is not deleting the required Oracle completely from Switch
Severity:
High
Priority:
Medium
Expected Behavior
After calling the DELETE API to delete a specific oracle id for a type, we should be able to add the same Oracle Type without any issues.
Steps to Reproduce
Specifications
Notes:
The text was updated successfully, but these errors were encountered: