feat(outputs): add versioning functionality of outputs #156

Merged
chartgerink merged 20 commits from add/versions into main 2026-03-30 09:16:34 +00:00
Owner

Builds on the structural changes introduced in 2.0.0.

To do

  • Ensure version labels for versions prior to February 1st, 2026 are 1.0.0 by default
Builds on the structural changes introduced in 2.0.0. ## To do - [x] Ensure version labels for versions prior to February 1st, 2026 are `1.0.0` by default - [x]
Author
Owner

After deploying this, the production database needs to be managed properly:

Check for multiple versions prior to Feb 1, 2026 (expecation: none):

-- Find outputs with multiple pre-Feb-2026 versions
SELECT output_id, COUNT(*) as conflict_count
FROM versions
WHERE published_at < '2026-02-01'
GROUP BY output_id
HAVING COUNT(*) > 1;

Then update the version labels for those before 2026-02-01 to be v1.0.0

UPDATE versions
SET version_label = '1.0.0'
WHERE published_at < '2026-02-01';
After deploying this, the production database needs to be managed properly: Check for multiple versions prior to Feb 1, 2026 (expecation: none): ``` -- Find outputs with multiple pre-Feb-2026 versions SELECT output_id, COUNT(*) as conflict_count FROM versions WHERE published_at < '2026-02-01' GROUP BY output_id HAVING COUNT(*) > 1; ``` Then update the version labels for those before 2026-02-01 to be v1.0.0 ``` UPDATE versions SET version_label = '1.0.0' WHERE published_at < '2026-02-01'; ```
chartgerink changed title from WIP: feat(outputs): add versioning functionality of outputs to feat(outputs): add versioning functionality of outputs 2026-03-30 09:14:33 +00:00
chartgerink deleted branch add/versions 2026-03-30 09:16:35 +00:00
Sign in to join this conversation.
No description provided.