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: use app wildcards for apps if configured#4263

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
deansheather merged 11 commits intomainfromdean/app-relative-path
Oct 5, 2022

Conversation

deansheather
Copy link
Member

@deansheatherdeansheather commentedSep 29, 2022
edited
Loading

  • Addssubdomain to the WorkspaceApp struct.
  • Changes the dashboard to use subdomain app access ifsubdomain istrue and an app hostname is set.
  • Add a tooltip explaining why the app button is greyed out if so.
  • Upgrade coder/coder terraform module to 0.5.0 (which deprecatesrelative_path and addssubdomain).
  • Renamerelative_path tosubdomain across the codebase and in the database

@deansheatherdeansheather marked this pull request as ready for reviewOctober 4, 2022 15:32
@deansheatherdeansheather requested a review froma team as acode ownerOctober 4, 2022 15:32
@deansheatherdeansheather requested review fromjsjoeio andf0ssel and removed request fora teamOctober 4, 2022 15:32
Copy link
Contributor

@jsjoeiojsjoeio left a comment

Choose a reason for hiding this comment

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

Nice work!

// `coder server` or via a hostname-based dev URL. If this is set to false
// and there is no app wildcard configured on the server, the app will not
// be accessible in the UI.
RelativePath bool `json:"relative_path"`
Copy link
Member

Choose a reason for hiding this comment

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

I think we'll have to invert this on the provider to not break current deployments.

This is defaulting tofalse:https://github.com/coder/terraform-provider-coder/blob/main/provider/app.go#L62, which I believe would break everyone.

eg. removerelative_path and addsubdomain instead

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done!

- rename relative_path -> subdomain when referring to apps    - migrate workspace_apps.relative_path to workspace_apps.subdomain- upgrade coder/coder terraform module to 0.5.0
Command string `mapstructure:"command"`
Subdomain bool `mapstructure:"subdomain"`
// RelativePath is deprecated in favor of Subdomain.
RelativePath *bool `mapstructure:"relative_path"`
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this needs to be a pointer anymore

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We prefer the deprecated value over the new value if it's set, so we have to use a pointer for this to determine if it was explicitly set or not. I will add a comment

@deansheatherdeansheatherenabled auto-merge (squash)October 5, 2022 15:17
@deansheatherdeansheather merged commit2a66395 intomainOct 5, 2022
@deansheatherdeansheather deleted the dean/app-relative-path branchOctober 5, 2022 19:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jsjoeiojsjoeiojsjoeio approved these changes

@kylecarbskylecarbskylecarbs approved these changes

@f0sself0sselAwaiting requested review from f0ssel

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

Successfully merging this pull request may close these issues.

3 participants
@deansheather@jsjoeio@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp