Skip to content

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

Merged
defelmnq merged 5 commits into
mainfrom
open_in-remove-window
Jan 15, 2025
Merged

chore(coderd): remove the window option in open_in#16104
defelmnq merged 5 commits into
mainfrom
open_in-remove-window

Conversation

@defelmnq

Copy link
Copy Markdown
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
Copy Markdown
Member

Relates to coder/terraform-provider-coder#297

@johnstcn johnstcn left a comment

Copy link
Copy Markdown
Member

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.

Comment thread provisionersdk/proto/provisioner.proto Outdated
WINDOW = 0;
SLIM_WINDOW = 1;
TAB = 2;
SLIM_WINDOW = 0;

Copy link
Copy Markdown
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
Copy Markdown
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.

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM :shipit:

@johnstcn johnstcn left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

@defelmnq

Copy link
Copy Markdown
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
@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