-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FF: Endpoint to Validate Imported JSON files #1716
Comments
The response and request objects should look like they do for /api/flags/:id , with "featureFlagSegmentInclusion" and "featureFlagSegmentExclusion" arrays that define the inclusion and exclusion lists, which should be created via calls to the /segment endpoints as part of the import action. I'm not sure we do it for experiments, but maybe we should verify that all included/excluded (public) segments already exist? |
Reminder that for v1, imports will be one at a time. Imported feature flag design IDs should not be processed (a new ID will be assigned). Required fields: Name, Key, Description (can be null if empty), App Context, Tags (can be null), Include List, Exclude List If there are public segments that don't exist during the import, the compatibility status will be |
For backend: the /validation api will expect the below format: [{ [{ |
@danoswaltCL @bcb37 @zackcl @amurphy-cl Just to confirm once, are we going to have the includeList and excludeList in import FF file? In the
|
Yeah, only the constructed lists, not segments that are public. |
This bug is related to this issue. |
This works as expected. Moving to done |
QA: Found a bug in this. If we try to import a duplicate feature flag which already exists, we show |
I am working on this issue. |
I will QA this |
QA passed |
On drag end or select of valid feature-flag JSON file(s) in the import modal, we will need to support a view that gives the user a list of files, their compatibility status (
COMPATIBLE
,WARNING
andINCOMPATIBLE
, and a text warning message for the warning and incompatible states that will give more complete information about what the user can expect or need to correct in order to proceed.@ppratikcr7 @VivekFitkariwala please help me to fill out the details for acceptance criteria of the response and request so that it will look familiar to the way we do it for experiments.
The text was updated successfully, but these errors were encountered: