Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
defelmnq merged 5 commits intomainfromopen_in-remove-window
Jan 15, 2025

Conversation

defelmnq
Copy link
Contributor

As we worked on adding aopen_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.

@defelmnqdefelmnq self-assigned thisJan 13, 2025
@johnstcn
Copy link
Member

Relates tocoder/terraform-provider-coder#297

Copy link
Member

@johnstcnjohnstcn 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 theWINDOW 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.

johnstcn reacted with thumbs up emoji
@defelmnq
Copy link
ContributorAuthor

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

  • Removed theWINDOW 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

@dannykoppingdannykopping 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

@johnstcnjohnstcn 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 fromhttps://github.com/coder/terraform-provider-coder?

@defelmnq
Copy link
ContributorAuthor

@defelmnq have we also removed the related changes fromhttps://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 👍

@defelmnqdefelmnq merged commita160e8f intomainJan 15, 2025
34 of 36 checks passed
@defelmnqdefelmnq deleted the open_in-remove-window branchJanuary 15, 2025 14:26
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 15, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@defelmnqdefelmnq

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@defelmnq@johnstcn@matifali@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp