Skip to content
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

Rename cluster default env name when empty #777

Merged
merged 2 commits into from
May 8, 2024

Conversation

carolineechen
Copy link
Collaborator

@carolineechen carolineechen commented May 3, 2024

after introducing cluster default envs as a property of a cluster, we no longer need a catch all name for all unnamed envs, which can have confusing behavior. rather,

  • cluster w/ a specified default env: if the env is unnamed, the name is assigned to be {cluster.name}_default_env (similar to how cluster ssh secrets are automatically named). this is used as the key for the env servlet, and also for purposes of saving the cluster.
  • cluster does not have a specified default env: use the var Cluster.EMPTY_DEFAULT_ENV_NAME = _cluster_default_env, which is part of the cluster class, rather than the env class. this is used as the env servlet key, and not part of the cluster config so will not be saved.

Copy link
Collaborator Author

carolineechen commented May 3, 2024

@carolineechen carolineechen force-pushed the cc/rename-default-env branch 7 times, most recently from c2df812 to 02c50a9 Compare May 5, 2024 20:45
@carolineechen carolineechen marked this pull request as ready for review May 6, 2024 13:45
Copy link
Contributor

@rohinb2 rohinb2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, good edge case to cover

Copy link

graphite-app bot commented May 6, 2024

Hunger Games GIF (Added via Giphy)

Copy link

graphite-app bot commented May 6, 2024

Graphite Automations

"rohin" took an action on this PR • (05/06/24)

1 gif was posted to this PR based on Rohin Bhasin's automation.

Base automatically changed from cc/unnamed-env-docs to main May 8, 2024 14:49
@carolineechen carolineechen merged commit 3a4218c into main May 8, 2024
7 of 11 checks passed
@carolineechen carolineechen deleted the cc/rename-default-env branch May 8, 2024 16:22
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.

2 participants