-
Notifications
You must be signed in to change notification settings - Fork 95
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
chore(entities): codegen cleanup #1171
Conversation
2ba5f46
to
0be9f75
Compare
f8c7d43
to
ca0ada5
Compare
(edited version of the comment posted on 19 Jun 2024) @sanderblue one more question 😄 in Can you please take a look just so we can double check removing these methods is safe? I plan on taking a deeper look into I see |
b5d8209
to
8e266a6
Compare
Phew, that was a lot to go through, but I'm glad you called all that stuff out. It gives me some more confidence that this huge code regeneration should work out okay. 🙂 😎 🤞 |
Thanks for clarifying - I just took a final look and I guess we're all set :) |
a6084c0
to
9a4e8c4
Compare
Our
entities
package (along with a few others), contain a mix of manually edited code and generated code. The primary intent of this PR is to clean up and reorganize ourentities
package in a manner that allows us to generate code seamlessly for this package.This PR will require changes in terraform-provider-newrelic and newrelic-cli to accommodate updates to inputs and types. These changes should not be breaking changes.
Important design patterns to discuss as a team:
_
). E.g.entities/entities_api_.go
andentities/types_.go
. We have the option to flip this as well, i.e. make the generated files have the underscore, but that would require a massive overhaul with our code generation across the entire repo.Associated PRs for dependent projects: