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

feat: adddefault_apps field tocoder_agent resource#147

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
sreya merged 10 commits intomainfromjon/defaultapps
Aug 30, 2023
Merged

Conversation

sreya
Copy link
Collaborator

@sreyasreya commentedAug 14, 2023
edited
Loading

  • Enables a template admin to configure which apps are displayed to the user in the dashboard.

fixes the provider side ofcoder/coder#8033

It takes the form

resource"coder_agent""dev" {os="linux"arch="amd64"display_apps {vscode=falsevscode_insiders=trueweb_terminal=falseport_forwarding_helper=falsessh_helper=false} }
  • If you do not add adisplay_apps block you opt-in to the defaults.
  • To opt out of all apps you must explicitly set them all tofalse.

- Enables a template admin to configure which apps are displayed  to the user in the dashboard.
os = "linux"
arch = "amd64"
display_apps {
vscode = false
Copy link
Member

Choose a reason for hiding this comment

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

Do we need an extra test case to check .tf with only a few apps selected:

display_apps {   vscode = true   web_terminal = true

sreya reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Since they all have default values I tested that specifying their non-defaults (inOK) and then omitting them to produce the defaults (inOmitted) produces the desired result. I added another one anyway but I don't think it adds much value.

mtojek reacted with thumbs up emoji
@matifalimatifali changed the titlefeat: add default_apps field to agentfeat: adddefault_apps field tocoder_agent resourceAug 29, 2023
@sreyasreya requested a review frommtojekAugust 29, 2023 23:37
Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

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

👍

just take a look at the comment inexamples_test.go

@sreyasreya merged commit233ea60 intomainAug 30, 2023
@sreyasreya deleted the jon/defaultapps branchAugust 30, 2023 19:02
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 30, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@matifalimatifalimatifali left review comments

@kylecarbskylecarbskylecarbs approved these changes

@mtojekmtojekmtojek approved these changes

@bpmctbpmctAwaiting requested review from bpmct

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@sreya@kylecarbs@matifali@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp