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: Validate monotonicity for coder_parameter#90

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
mtojek merged 2 commits intocoder:mainfrommtojek:5574-monotonic
Feb 3, 2023

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedFeb 3, 2023
edited
Loading

Related:coder/coder#5574
Related:coder/coder#5978

This PR adds a new validation propertymonotonic to thecoder_parameter. Unfortunately, we can only validate the format within the Terraform runner, but a comparison of values, current and new, will be performed on thecoderd API level.

@mtojekmtojek self-assigned thisFeb 3, 2023
@mtojekmtojek marked this pull request as ready for reviewFebruary 3, 2023 10:21
@mtojekmtojek mentioned this pull requestFeb 3, 2023
"monotonic": {
Type:schema.TypeString,
Optional:true,
Description:"Number monotonicity, either increasing or decreasing.",
Copy link
Member

Choose a reason for hiding this comment

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

Just curious: Why don't we use a validation func here?

(I do see the check invalueIsType, it's just not obvious why we're doing that instead of validation func.)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I will pass this question to@kylecarbs who originally implemented this code. I deduce that this is due to the compliance withterraform-plugin-sdk?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure actually...

@mtojekmtojek merged commit22f160d intocoder:mainFeb 3, 2023
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 3, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@mafredrimafredrimafredri approved these changes

@kylecarbskylecarbskylecarbs approved these changes

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@mtojekmtojek

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mtojek@mafredri@kylecarbs@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp