samagra-comms/uci-apis

Update Edit Api

Closed this issue · 4 comments

Currently, Edit Api completely overrides the original object which should be updated to upsert query to update only the passed values.

What will be the implication of this on the transaction layer? Since bots are cached on the transaction layer, when an update in a bot occurs the cache will need to be validated both on UCI-API and the transaction layer services, or it will introduce inconsistencies.

The transaction layer also needs to provide an endpoint for invalidating the cache.

PR to be raised by @chinmoy12c today

Merged to develop. To be deployed.