-
Notifications
You must be signed in to change notification settings - Fork 461
Labels
Description
Need to refactor or delete all code from flagsmith, flagsmith-common and flagsmith-workflows that's associated with the old segment serializer and model APIs.
Task list
- Delete unused metadata and segment serializer code from flagsmith-common.
- ✅ Completed as of MetadataSerializers of core and flagsmith-common clashing #5907.
- Delete obsolete logic from flagsmith-workflows.
- ✅ Completed as of https://github.com/Flagsmith/flagsmith-workflows/pull/72.
- Import improvements from this closed PR:
- Segment manager/model architecture
- Segment tests
- ✅ Completed in refactor(Segments): Clean up after Segment Change Request work #6265
- Make
Segment.version.default = 1at database level instead of using a hook. - Make
Segment.version_of = nullthe indication for a live segment — right now live segments are those whichversion_ofpoint to themselves, which adds unnecessary overhead and complexity. - Inherit
MetadataSerializerMixinfromSerializerand maybe prevent repeating meta fields?