Skip to content
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

fix: stale querystring parameter value as boolean #15605

Merged
merged 9 commits into from
Jan 1, 2023

Conversation

dttung2905
Copy link
Contributor

Hi Nomad core dev team,

Please let me know if there are other places I need to make changes too. Thank you !

Resolve: #15562

Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

This is looking great, @dttung2905! I left some comments mostly about style, but functionally this is good.

Since this is a bug fix, we'll need to also be sure to add a changelog entry. You can type make cl to start a small wizard that helps create one.

command/agent/http.go Outdated Show resolved Hide resolved
command/agent/http.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

Thanks @dttung2905, just a few more nitpicks and then we'll get this merged 🙂

command/agent/http.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
command/agent/http_test.go Outdated Show resolved Hide resolved
@vercel
Copy link

vercel bot commented Dec 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nomad-storybook-and-ui 🔄 Building (Inspect) Dec 24, 2022 at 0:49AM (UTC)

@shoenig shoenig merged commit 1584496 into hashicorp:main Jan 1, 2023
shoenig added a commit that referenced this pull request Jan 2, 2023
In #15605 we fixed the bug where the presense of "stale" query parameter
was mean to imply stale, even if the value of the parameter was "false"
or malformed. In parsing, we missed the case where the slice of values
would be nil which lead to a failing test case that was missed because
CI didn't run against the original PR.
shoenig added a commit that referenced this pull request Jan 3, 2023
In #15605 we fixed the bug where the presense of "stale" query parameter
was mean to imply stale, even if the value of the parameter was "false"
or malformed. In parsing, we missed the case where the slice of values
would be nil which lead to a failing test case that was missed because
CI didn't run against the original PR.
@shoenig shoenig added backport/1.2.x backport to 1.1.x release line backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line labels Jan 3, 2023
shoenig added a commit that referenced this pull request Jan 3, 2023
In #15605 we fixed the bug where the presense of "stale" query parameter
was mean to imply stale, even if the value of the parameter was "false"
or malformed. In parsing, we missed the case where the slice of values
would be nil which lead to a failing test case that was missed because
CI didn't run against the original PR.
shoenig added a commit that referenced this pull request Jan 3, 2023
In #15605 we fixed the bug where the presense of "stale" query parameter
was mean to imply stale, even if the value of the parameter was "false"
or malformed. In parsing, we missed the case where the slice of values
would be nil which lead to a failing test case that was missed because
CI didn't run against the original PR.
shoenig added a commit that referenced this pull request Jan 3, 2023
In #15605 we fixed the bug where the presense of "stale" query parameter
was mean to imply stale, even if the value of the parameter was "false"
or malformed. In parsing, we missed the case where the slice of values
would be nil which lead to a failing test case that was missed because
CI didn't run against the original PR.

Co-authored-by: Seth Hoenig <[email protected]>
shoenig added a commit that referenced this pull request Jan 3, 2023
In #15605 we fixed the bug where the presense of "stale" query parameter
was mean to imply stale, even if the value of the parameter was "false"
or malformed. In parsing, we missed the case where the slice of values
would be nil which lead to a failing test case that was missed because
CI didn't run against the original PR.

Co-authored-by: Seth Hoenig <[email protected]>
@github-actions
Copy link

github-actions bot commented May 5, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.2.x backport to 1.1.x release line backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parse stale querystring parameter value as boolean
2 participants