Skip to content

fix(cli): handle version mismatch re MatchedProvisioners response #15682

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 9 commits into from
Nov 29, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Nov 28, 2024

  • Modifies MatchedProvisioners response of codersdk.TemplateVersion to be a pointer
  • CLI now checks for absence of *MatchedProvisioners before showing warning regarding provisioners
  • Extracts logic for warning about provisioners to a function
  • Improves test coverage for CLI template push with coder_workspace_tags.

@johnstcn johnstcn self-assigned this Nov 28, 2024
@johnstcn johnstcn force-pushed the cj/templateversion-matched-provisioners-ptr branch from ec9f677 to a266455 Compare November 28, 2024 20:18
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

Nothing blocking from my side

@johnstcn johnstcn merged commit 3014713 into main Nov 29, 2024
27 checks passed
@johnstcn johnstcn deleted the cj/templateversion-matched-provisioners-ptr branch November 29, 2024 19:46
johnstcn added a commit that referenced this pull request Dec 12, 2024
…5682)

* Modifies `MatchedProvisioners` response of `codersdk.TemplateVersion`
to be a pointer
* CLI now checks for absence of `*MatchedProvisioners` before showing
warning regarding provisioners
* Extracts logic for warning about provisioners to a function
* Improves test coverage for CLI template push with
`coder_workspace_tags`.

(cherry picked from commit 3014713)
johnstcn added a commit that referenced this pull request Dec 12, 2024
…5682)

* Modifies `MatchedProvisioners` response of `codersdk.TemplateVersion`
to be a pointer
* CLI now checks for absence of `*MatchedProvisioners` before showing
warning regarding provisioners
* Extracts logic for warning about provisioners to a function
* Improves test coverage for CLI template push with
`coder_workspace_tags`.

(cherry picked from commit 3014713)
johnstcn added a commit that referenced this pull request Dec 12, 2024
…5682)

* Modifies `MatchedProvisioners` response of `codersdk.TemplateVersion`
to be a pointer
* CLI now checks for absence of `*MatchedProvisioners` before showing
warning regarding provisioners
* Extracts logic for warning about provisioners to a function
* Improves test coverage for CLI template push with
`coder_workspace_tags`.

(cherry picked from commit 3014713)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants