Skip to content

feat: add archived timestamp to core data models for soft-delete/hide#36

Merged
brandtg merged 1 commit into
mainfrom
feat/archive-core-models
Jun 10, 2026
Merged

feat: add archived timestamp to core data models for soft-delete/hide#36
brandtg merged 1 commit into
mainfrom
feat/archive-core-models

Conversation

@brandtg

@brandtg brandtg commented Jun 10, 2026

Copy link
Copy Markdown
Owner
  • feat: add nullable archived column to feature_flag and feature_flag_group via migration; existing UNIQUE(name) is kept so archived names stay reserved permanently

  • feat: add archive(id) to FeatureFlagModel and FeatureFlagGroupModel that sets archived=now() only when null, making archiving irreversible and the timestamp immutable

  • feat: hide archived records from all reads by default with an includeArchived escape hatch, so archived flags evaluate as inactive while metadata is retained for audit

  • feat: exclude archived flags and archived groups from getSubjectMatchedFlagIds so an archived group stops contributing subject-based targeting; skip archived flags in updateAll and getFeatureFlags

  • feat: add archive and group-archive CLI commands plus a --include-archived flag on read commands

- feat: add nullable archived column to feature_flag and feature_flag_group via migration; existing UNIQUE(name) is kept so archived names stay reserved permanently

- feat: add archive(id) to FeatureFlagModel and FeatureFlagGroupModel that sets archived=now() only when null, making archiving irreversible and the timestamp immutable

- feat: hide archived records from all reads by default with an includeArchived escape hatch, so archived flags evaluate as inactive while metadata is retained for audit

- feat: exclude archived flags and archived groups from getSubjectMatchedFlagIds so an archived group stops contributing subject-based targeting; skip archived flags in updateAll and
getFeatureFlags

- feat: add archive and group-archive CLI commands plus a --include-archived flag on read commands
@brandtg
brandtg merged commit 2cab9a5 into main Jun 10, 2026
2 checks passed
@brandtg
brandtg deleted the feat/archive-core-models branch June 10, 2026 16:56
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