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

Improve unmarshalling for binary payloads #3826

Merged
merged 5 commits into from
Feb 23, 2024

Conversation

manicminer
Copy link
Contributor

This removes the double pointer workaround for unmarshaling binary payloads into a []byte.

Needs coordination with corresponding base layer PR: hashicorp/go-azure-sdk#890

@hashicorp hashicorp deleted a comment from github-actions bot Feb 20, 2024
@hashicorp hashicorp deleted a comment from github-actions bot Feb 20, 2024
@hashicorp hashicorp deleted a comment from github-actions bot Feb 20, 2024
@hashicorp hashicorp deleted a comment from github-actions bot Feb 20, 2024
@hashicorp hashicorp deleted a comment from github-actions bot Feb 20, 2024
@hashicorp hashicorp deleted a comment from github-actions bot Feb 20, 2024
Copy link

Breaking Changes

No Breaking Changes were found 👍

Copy link

Summary of Changes

No Breaking or Non-Breaking Changes were found 👍

Copy link

New Resource ID Segments containing Static Identifiers

No new Resource ID Segments containing Static Identifiers were identified in the set of changes 🤙.

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

one minor comment around LOG_LEVEL but this otherwise LGTM 👍

@@ -59,6 +59,10 @@ func (c ServeCommand) Run(args []string) int {
serviceNames = pointer.To(strings.Split(serviceNamesRaw, ","))
}

if logLevel := strings.TrimSpace(os.Getenv("PANDORA_LOG")); logLevel != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I've not made the change to the Data API yet, but the other tools are now using LOG_LEVEL fwiw, probably worth doing that here too:

Suggested change
if logLevel := strings.TrimSpace(os.Getenv("PANDORA_LOG")); logLevel != "" {
if logLevel := strings.TrimSpace(os.Getenv("LOG_LEVEL")); logLevel != "" {

(in the other tools this is done in main.go - but that's a minor nit we can clear up later if needed)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah cool, I will align it with the rest of the tooling 👍

Copy link

Breaking Changes

No Breaking Changes were found 👍

Copy link

Summary of Changes

No Breaking or Non-Breaking Changes were found 👍

Copy link

New Resource ID Segments containing Static Identifiers

No new Resource ID Segments containing Static Identifiers were identified in the set of changes 🤙.

@manicminer manicminer merged commit 54ec352 into main Feb 23, 2024
4 checks passed
@manicminer manicminer deleted the bugfix/resp-model-unmarshaling branch February 23, 2024 12:59
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