Closed nutrina closed 9 months ago
@nutrina Per the conversation with Ceramic - Jan 10th - Let's include a new column to include the ceramic stream ID so that we can ensure there are no data discrepancies between Ceramic & Passport (or at least be able to understand them)
User Story:
As a Developer or Data Analyst working on Passport or Scorer applications, I want a reliable way to monitor if data is properly saved in Compose-DB, So that I can quickly identify data loss or discrepancies for further analysis and action.
Acceptance Criteria
Scenario 1: GIVEN I am a Developer or Data Analyst WHEN I query the CeramicCache model THEN I should see the following nullable columns
compose_db_save_status
andcompose_db_stream_id
AND they should showcompose_db_save_status="saved"
andcompose_db_stream_id="<valid stream id>"
if the stamp was successfully stored in Compose-DB AND it should indicatecompose_db_save_status="failed"
andcompose_db_stream_id=null
if the stamp was not successfully stored in Compose-DBScenario 2: GIVEN I am a user of the Passport app WHEN I claim a stamp (new or refreshed) AND the stamp is saved to the CeramicCache model THEN the
compose_db_save_status
field should be reset to null AND thecompose_db_stream_id
field should be left unchanged (will be null by default)Scenario 3: GIVEN I am a user of the Passport app WHEN I claim a stamp (new or refreshed) AND the saving to Compose-DB has been performed THEN the
compose_db_save_status
field in CeramicCache should reflect the success or failure of the saving action AND thecompose_db_stream_id
field should store the valid stream_idTech Details:
CeramicCache
model to include thestatus
column.status
tonull
whenever a stamp is saved or updated.status
field.Open Questions:
status
tonull
, should we set it to "outdated" to indicate a pending save to Compose-DB?Notes/Assumptions:
This feature is not about the data storage mechanism itself, but rather aims to monitor and flag the reliability of data storage in Compose-DB.