Description:
Implement a system to create a revision every time the data object in a document changes. The revisions will be stored in a sub-collection, providing a clear history of changes and aiding in tracking and auditing document modifications.
Objectives:
-
Revision Path:
- Store revisions at the path
tanam-documents/{docId}/revisions/{id}.
-
Timestamp:
- Include a
createdAt timestamp to record when the revision was created.
-
Revision Counter:
- Maintain an ever-incrementing counter for the revision number, derived from the parent document's current revision number incremented by one.
-
Data Field:
- Store the document's data in a field called
data.
-
Read-Only Access:
- Ensure the revision documents are read-only for all users.
Benefits:
- Provides a clear history of document changes.
- Enhances tracking and auditing capabilities.
- Ensures data integrity and security by maintaining read-only revisions.
Acceptance Criteria:
Notes:
- Ensure robust error handling and logging during the revision creation process.
- Thoroughly test the revision system to confirm consistency and reliability.
- Update documentation to reflect the new revision system and handling processes.
Description:
Implement a system to create a revision every time the
dataobject in a document changes. The revisions will be stored in a sub-collection, providing a clear history of changes and aiding in tracking and auditing document modifications.Objectives:
Revision Path:
tanam-documents/{docId}/revisions/{id}.Timestamp:
createdAttimestamp to record when the revision was created.Revision Counter:
Data Field:
data.Read-Only Access:
Benefits:
Acceptance Criteria:
tanam-documents/{docId}/data/revision/{id}.createdAttimestamp.data.Notes: