-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
feat: duplicate global environment under team workspaces #4334
feat: duplicate global environment under team workspaces #4334
Conversation
14a348b
to
f2117bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the FE does not subscribe to the environment-created subscription, I need to reload the screen for the newly created environment to pop up.
WhatsApp.Video.2024-09-11.at.12.44.47_6383bb3c.mp4
@jamesgeorge007 can you confirm ??
Discussed separately, it was found specific to the local environment setup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
1716558
to
9d5e07a
Compare
For actions over environments.
Applicable to team workspaces.
9d5e07a
to
a2e51df
Compare
The duplicate global environment action was specific to the personal workspace, where the entries were added and hidden while at a team workspace with #4245. This PR re-enables the action under team workspaces and extends support. Also, the following changes are added alongside applicable to team workspaces:
- Duplicate
suffix for duplicated environment entries.Closes HFE-575.
Preview
duplicate-global-environment-team-workspaces.mov
What's changed
duplicateGlobalEnvironmentLoading
(keeps track of the n/w call status and dismisses the context menu) &showContextMenuLoadingState
(Indicates the context menu is to be displayed during the n/w call in a team workspace) and defines a new eventduplicate-global-environment
under theEnvironmentsMyEnvironment
component.Environments
component to trigger thecreateTeamEnvironment
GQL mutation with the global environment variables in scope.getEnvActionErrrorMessage
abstracting the error messages reused for environment-related actions.- Duplicate
suffix to duplicated environment names under team workspaces.Notes to reviewers
Please ensure to cross-check the error message updates once with the newly added helper function.