Details
-
Story
-
Status: Closed
-
Medium
-
Resolution: Done
-
None
Description
Create a REST API which when called will explicitly set the data sync enabled flag.
Initial flag should be set to false for data sync enabled, during module sync
User can then set the state once flag is set.
Think about potential Request types which would be suitable.
Open Questions
- Does this completely replace global cache configuration param? (Yes)
- Will this API then set the initial data Sync enabled flag which will in turn set the initial data sync state? (Yes)
- If data sync enabled is already true, and data sync state is SYNCRONIZED, can state then be set to false, will this in turn affect the existing data?(Potentially delete the sync data, state reverts back to non-requested)
- If data sync enabled is set to true, and during synchronization, it is set back to false, how will this the effect the data, how should it be dealt with?(Check at end of sync process, is the data sync enabled set to true)
A/C
- Completely remove configuration parameter set as part of story
- Create and agree new endpoint exposed to user with team
- /v1/ch/{cm-handle}/data-sync?enabled=true/false (PUT/POST - No Body)
- /v1/ch/{cm-handle}/set-data-sync-state
- /v1/ch/{cm-handle}/set-data-sync-state-enabled
- /v1/ch/{cm-handle}/set-data-sync-cache
- User cannot use this endpoint before Cm-Handle is in READY state, use same check that is used for passthrough API's(same applies to non-existent cm handles)
- Silently ignore data sync enabled if current state is already set
- Delete resource data if setting state back to NONE_REQUESTED
- Demo to Team
Out Of Scope
- Create CSIT test to verify the data sync
Attachments
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
129986,11 | Enable/Disable Data Sync for Cm Handle | master | cps | Status: MERGED | +2 | +1 |