-
Notifications
You must be signed in to change notification settings - Fork 334
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
Clone environment #172
Comments
As discussed with @gagantrivedi: We need an endpoint that 'clones' an environment. This should take the existing environment id and a new name for the cloned environment as an input and return the new environment details. Something like:
|
@kyle-ssg I think we should add an Environment drop down here: hook it up to the API, and then we're done. |
#238 Frontend's done for this under the flag "clone_environment", just need backend. |
This isnt working for me on staging.
|
The issue is the all the hooks installed on feature state are not aware of the cloning feature, and they fill the feature value with the default instead of using the cloned one. |
Yeah, that sounds like a smart idea to me. |
This may work for Feature state, but we have to copy segments and identities as well. and some of them don't have hooks. |
Ok, so we just need to do that in the |
I am planning to implement clone method on Feature state, feature segments and feature identity. each clone method will be responsible for creating clone of itself with a different env |
Data to copy:
Make initiating user the Admin of that environment Nothing else |
As far as I can see, this still doesn't work - feature states are not copied over, at least currently in production. Also if it's behind a feature flag we should perhaps delay closing this until it's enabled. |
@dabeeeenster can't reproduce. Can you list the steps? |
Can no longer replicate, has this feature been deployed / adjusted in production since the 15th @gagantrivedi ? |
Yep sorry I cant replicate this any more - closing |
When creating a new environment, you currently take the default flag states for that project, which are currently not shown anywhere.
It would be better to be able to select which existing environment state you want to clone for the new environment.
The text was updated successfully, but these errors were encountered: