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

feat: Instance Settings API #239

Merged
merged 1 commit into from
Feb 12, 2024
Merged

feat: Instance Settings API #239

merged 1 commit into from
Feb 12, 2024

Conversation

gkats
Copy link
Member

@gkats gkats commented Feb 10, 2024

API operations for instance settings. Update instance settings, update instance restrictions and update instance organization settings.

@gkats gkats requested a review from a team as a code owner February 10, 2024 16:09
API operations for instance settings. Update instance settings, update
instance restrictions and update instance organization settings.
@gkats gkats force-pushed the core-1512-instance branch from f8b310e to c5cbc42 Compare February 10, 2024 16:10
@@ -279,6 +279,35 @@ func TestBackendCall_SuccessfulResponse_GetRequest(t *testing.T) {
assert.JSONEq(t, rawJSON, string(resource.Response.RawJSON))
}

// TestBackendCall_SuccessfulResponse_EmptyResponse tests successful
// responses with no response body.
func TestBackendCall_SuccessfulResponse_EmptyResponse(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

var argsRE = regexp.MustCompile("^.+\\)\\s\\(")
var returnRE = regexp.MustCompile("^.+\\)")
var argsRE = regexp.MustCompile("^.+\\)\\s[\\(e]")
var returnRE = regexp.MustCompile("^.+\\s{")
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Mostly an idea/suggestion for possible future improvement, definitely not a current action item: we can use AST parsing to perform code generation in a possibly more maintainable way in the future: https://eli.thegreenplace.net/2021/rewriting-go-source-code-with-ast-tooling/

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this "generator" is a disgrace. 😞

Copy link
Contributor

Choose a reason for hiding this comment

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

Gets the work done is what matters 🥇

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.

2 participants