feat(flags): add optional folder field (minimal schema + api support)#303
feat(flags): add optional folder field (minimal schema + api support)#303agent-sure wants to merge 6 commits intodatabuddy-analytics:mainfrom
Conversation
|
Someone is attempting to deploy a commit to the Databuddy OSS Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile OverviewGreptile SummaryThis PR adds minimal folder support for feature flags by introducing an optional Changes:
Issue Found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant API
participant Validation
participant DB
Client->>API: Create/Update Flag with folder
API->>Validation: Validate flagFormSchema
Validation->>Validation: Check folder regex & length
Validation-->>API: Valid
API->>DB: Insert/Update flags table
Note over DB: folder column (text, nullable)
DB-->>API: Flag with folder
API-->>Client: Success
|
Additional Comments (1)
|
Closes #271 (partial, minimal first patch)
This PR adds optional folder support for flags with minimal surface area, without changing any flag evaluation logic.
What’s included
foldercolumn toflagstablefolderinflagFormSchemafolderinupdateFlagSchemafolderincreateflowWhat’s intentionally not included in this first patch
I’m using this as a safe incremental baseline and can follow up with UI organization + screenshots in next PR(s).