Skip to content

track title changes in history objects#308

Open
elfkuzco wants to merge 1 commit into
title-flavoursfrom
title-history
Open

track title changes in history objects#308
elfkuzco wants to merge 1 commit into
title-flavoursfrom
title-history

Conversation

@elfkuzco
Copy link
Copy Markdown
Contributor

@elfkuzco elfkuzco commented May 29, 2026

Rationale

This PR provides the functionality to track changes to a title's fields in history objects and revert the title's fields to previous values at a particular point in time

Screenshot_20260529_130024 Screenshot_20260529_125309 Screenshot_20260529_125255 Screenshot_20260529_125246

Changes

  • create initial history item when title is created newly or updated
  • refactor functions to create/update title to take in a pydantic schema instead of the individual arguments
  • use the update_title function for archiving and restore since it creates history items
  • add logic to revert title to a particular history entry
  • add UI to view history and revert
  • show differences summary while updating title
  • add maintenace script to create initial history entries for all titles in the DB. account maint-script must exist in DB.
    This closes track title history #302

@elfkuzco elfkuzco self-assigned this May 29, 2026
@elfkuzco elfkuzco requested a review from benoit74 May 29, 2026 12:04
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 93.16770% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.48%. Comparing base (26e7b72) to head (73f60cd).
⚠️ Report is 1 commits behind head on title-flavours.

Files with missing lines Patch % Lines
backend/src/cms_backend/db/title.py 84.93% 5 Missing and 6 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           title-flavours     #308      +/-   ##
==================================================
+ Coverage           82.24%   82.48%   +0.23%     
==================================================
  Files                  58       58              
  Lines                2738     2763      +25     
  Branches              280      269      -11     
==================================================
+ Hits                 2252     2279      +27     
+ Misses                412      410       -2     
  Partials               74       74              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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