Skip to content

refactor: deprecate login_before_ready in favor of startup_script_behavior #7837

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

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Jun 5, 2023

This is in many ways just a cosmetic change, but quite a lot of code was touched to make it.

When startup_script_behavior is set to a non-empty value, it is preferred, otherwise we attempt to read the login_before_ready value and translate it to startup_script_behavior.

Fixes #7758

Ref: #7757

@mafredri mafredri changed the title refactor: Deprecate login_before_ready in favor of startup_script_behavior feat: Deprecate login_before_ready in favor of startup_script_behavior Jun 5, 2023
@mafredri mafredri changed the title feat: Deprecate login_before_ready in favor of startup_script_behavior refactor: deprecate login_before_ready in favor of startup_script_behavior Jun 5, 2023
@mafredri mafredri force-pushed the mafredri/refactor-startup-script-behavior branch from 90a85ff to 7baef4d Compare June 5, 2023 12:49
@mafredri mafredri requested review from kylecarbs and mtojek June 5, 2023 13:18
@mafredri mafredri marked this pull request as ready for review June 5, 2023 13:18
@@ -0,0 +1,8 @@
ALTER TABLE workspace_agents ADD COLUMN login_before_ready boolean NOT NULL DEFAULT TRUE;
Copy link
Member

Choose a reason for hiding this comment

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

nit: Do we need begin & commit around this block?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose yes, fixed. I'm sometimes on the fence since we're not consistent about always using them. We should probably always enforce it, can't think of a reason not to.

@mafredri mafredri requested a review from mtojek June 5, 2023 16:15
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

Ship it!

@mafredri mafredri merged commit 660bbb8 into main Jun 6, 2023
@mafredri mafredri deleted the mafredri/refactor-startup-script-behavior branch June 6, 2023 08:58
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for startup_script_behavior (replaces login_before_ready)
2 participants