flagsmith icon indicating copy to clipboard operation
flagsmith copied to clipboard

fix(Segments): Improve data model around live segments

Open emyller opened this issue 4 months ago • 3 comments

Closes #5825

Changes

  • [x] Make Segment.version_of = null the indication for a live segment

Implementation Notes

[!WARNING] Migration 0031_set_version_of_to_null_for_canonical_segments:

  • Migrates canonical segments from version_of=self to version_of=NULL
  • May block during deployment depending on segment count
  • Follows same pattern as migration 0023 which originally set version_of=id

emyller avatar Nov 11 '25 18:11 emyller

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs Ignored Ignored Preview Nov 11, 2025 10:26pm
flagsmith-frontend-preview Ignored Ignored Preview Nov 11, 2025 10:26pm
flagsmith-frontend-staging Ignored Ignored Preview Nov 11, 2025 10:26pm

vercel[bot] avatar Nov 11 '25 18:11 vercel[bot]

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-6275 Finished :white_check_mark: Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-6275 Finished :white_check_mark: Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-6275 Finished :white_check_mark: Results :white_check_mark:

github-actions[bot] avatar Nov 11 '25 19:11 github-actions[bot]

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 98.02%. Comparing base (ec45a23) to head (d2729ac).

Additional details and impacted files
@@                            Coverage Diff                            @@
##           refactor/segment-change-requests-cleanup    #6275   +/-   ##
=========================================================================
  Coverage                                     98.02%   98.02%           
=========================================================================
  Files                                          1280     1281    +1     
  Lines                                         45399    45401    +2     
=========================================================================
+ Hits                                          44501    44503    +2     
  Misses                                          898      898           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Nov 11 '25 19:11 codecov[bot]