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

update IdentifierInput struct fields to be pointers and usage of struct #303

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

davidbloss
Copy link
Contributor

Issues

#145

Changelog

BREAKING CHANGE:
Update IdentifierInput struct fields to be pointers.
IdentifierInputs are core to this code and it's safe to assume this necessary change will cause downstream issues.

In most cases this is a simple fix.

  • dereference the field to get the underlying string

  • cast a dereferenced opslevel.ID as a string, e.g., input.Id, --> string(*input.Id)

  • List your changes here

  • Make a changie entry

Tophatting

task test - all tests pass

@davidbloss davidbloss requested review from rocktavious and a user November 13, 2023 16:38
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM - it's best that we test these changes on CLI/TF before merging to find any gotcha's that can come up.

Key2 ol.IdentifierInput `json:"key2,omitempty"`
Key3 *ol.IdentifierInput `json:"key3"`
Key4 *ol.IdentifierInput `json:"key4,omitempty"`
IdInputConcrete ol.IdentifierInput `json:"idInputConcrete"`
Copy link

Choose a reason for hiding this comment

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

really like this naming change for the field! makes the tests easier to understand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

💯
Thanks and I couldn't agree more! 🙌

@davidbloss davidbloss merged commit 2f56eae into main Nov 14, 2023
@davidbloss davidbloss deleted the db/make-all-identifier-input-fields-pointers branch November 14, 2023 17:07
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.

1 participant