Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(coderd): remove the window option in open_in #16104

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 5 commits into from
Jan 15, 2025
Merged

Conversation

defelmnq
Copy link
Contributor

As we worked on adding a open_in parameter for workspace_apps - we initially created three options :

  • window
  • slim_window
  • tab

After further investigation, window should not be used and has to be removed.

ℹ️ I decided to remove the option instead of deprecating it as we've not created any release nor documented the feature. Can be discussed.

@defelmnq defelmnq self-assigned this Jan 13, 2025
@johnstcn
Copy link
Member

Relates to coder/terraform-provider-coder#297

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

We will still have the database enum type 'window'::workspace_app_open_in hanging around; I think we should drop this also.

WINDOW = 0;
SLIM_WINDOW = 1;
TAB = 2;
SLIM_WINDOW = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep the WINDOW member but mark it as deprecated.
As discussed, there's no way to remove an enum entry in Postgres so it's probably fine to just leave it lying around instead of the nonsense involved to get it removed properly.

@defelmnq
Copy link
Contributor Author

@dannykopping @johnstcn as per the comments and discussions we had, I :

  • Removed the WINDOW option from ConvertState - which means it can not be used anymore as an option.
  • Kept it from DB as removing a value from an ENUM is painful and will create more complexity than value it will bring.
  • Kept it as deprecated in gRPC to make sure we do not break anything.

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

LGTM

I was going to suggest updating the description of the enum 'window'::workspace_app_open_in to mark it as deprecated, but it's not possible at the schema level as far as I can tell.

@matifali
Copy link
Member

@defelmnq have we also removed the related changes from https://github.com/coder/terraform-provider-coder?

@defelmnq
Copy link
Contributor Author

@defelmnq have we also removed the related changes from https://github.com/coder/terraform-provider-coder?

Not yet, I merge this one as soon as possible to unblock bruno - but will have to create also one indeed on the tf-provider-coder 👍

@defelmnq defelmnq merged commit a160e8f into main Jan 15, 2025
34 of 36 checks passed
@defelmnq defelmnq deleted the open_in-remove-window branch January 15, 2025 14:26
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2025
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.

4 participants