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

Poc generic crud functions #160

Merged
merged 5 commits into from
Jun 30, 2023

Conversation

maksym-nazarenko
Copy link
Collaborator

@maksym-nazarenko maksym-nazarenko commented May 25, 2023

This PR shows how to use Generic..Resource functions for Terraform resources (introduced in #161).

I created this PR against terraform-model-client-struct-marshalling branch to show only resource changes.

As you can see, the amount of code significantly reduced, so code generation could be done with less effort from our side - no need to implement modelToXXXX() and XXXXToModel() anymore

@maksym-nazarenko
Copy link
Collaborator Author

@ddelnano just realized that I can't create PR to branch from #161 as it is in my own fork 🥴
Just ignore changes under mikrotik/internal/utils

@maksym-nazarenko maksym-nazarenko marked this pull request as ready for review May 25, 2023 14:58
@ddelnano
Copy link
Owner

Very exciting to see how this will make the code generation easier. Change lgtm as is but I'll wait until this is rebased before submitting my approval.

@maksym-nazarenko maksym-nazarenko force-pushed the poc-generic-crud-functions branch from 7ebb559 to 0995483 Compare June 6, 2023 20:16
@maksym-nazarenko maksym-nazarenko marked this pull request as draft June 6, 2023 20:21
@maksym-nazarenko maksym-nazarenko marked this pull request as ready for review June 8, 2023 15:08
@ddelnano ddelnano merged commit 62355f5 into ddelnano:master Jun 30, 2023
@maksym-nazarenko maksym-nazarenko deleted the poc-generic-crud-functions branch September 19, 2023 18:54
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