Skip to content

[SAP] feat: add volume history tracking - #352

Open
hemna wants to merge 1 commit into
stable/2023.1-m3from
feature/volume-history-tracking
Open

[SAP] feat: add volume history tracking#352
hemna wants to merge 1 commit into
stable/2023.1-m3from
feature/volume-history-tracking

Conversation

@hemna

@hemna hemna commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Add volume history tracking to record all changes made to volumes.

Changes

  • VolumeHistory SQLAlchemy model — new model to store volume change history
  • Alembic migration — creates the volume_history table with indexes
  • DB layer integration — records history on volume create, update, and destroy
  • Config optionvolume_history_enabled to toggle the feature on/off
  • Unit tests — comprehensive tests for history recording behavior
  • Migration test — validates the schema migration
  • SAP documentation — usage and configuration docs

Testing

  • Unit tests cover create, update, destroy, no-op updates, ordering, and request_id capture
  • Migration test validates table structure and indexes

@hemna
hemna force-pushed the feature/volume-history-tracking branch 2 times, most recently from 8afe9bd to dcbeb66 Compare July 22, 2026 15:19
Add volume history tracking to record all changes made to volumes.
This includes:
- VolumeHistory SQLAlchemy model
- Alembic migration for volume_history table
- History recording in the DB layer (create, update, destroy)
- Config option volume_history_enabled to toggle the feature
- Unit tests for volume history tracking
- Migration test for volume_history table
- SAP documentation

Change-Id: Ie1fdfe47fa4e2d7133ac27b6a1cc2022ffe2fcfc
@hemna
hemna force-pushed the feature/volume-history-tracking branch from dcbeb66 to 8c9cf83 Compare July 22, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant