care
care copied to clipboard
Lock asset feature
Proposed Changes
- Add locking mechanism for assets by creating an in memory record of the occupied status of the asset.
- Create two new types of action types in the
/operate_assets
, namelylock_asset
andunlock_asset
. - Validate all actions to the
/operate_assets
api based on the lock.
Associated Issue
Merge Checklist
- [ ] Tests added/fixed
- [ ] Update docs in
/docs
- [ ] Linting Complete
- [ ] Any other necessary step
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins