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

Remove handler boilerplate by defining a "base handler" #340

Merged
merged 1 commit into from Feb 16, 2024

Conversation

julienduchesne
Copy link
Member

@julienduchesne julienduchesne commented Feb 16, 2024

Lots of the handler functions are just placeholders and used in some contexts
By using a base handler, we can set defaults that do nothing and can be overridden (shadowed)

If this is accepted, I think I'd do a follow-up where we could switch to TF-provider-style handler provisioning where each handler is a struct of the same type rather than an interface with various attributes that describe it (CRUD+List functions, etc) and it would make it even easier to specify new resource types

@julienduchesne julienduchesne force-pushed the julienduchesne/remove-boilerplate branch from b170ece to ce08540 Compare February 16, 2024 14:38
Lots of the handler functions are just placeholders and used in some contexts
By using a base handler, we can set defaults that do nothing and can be overridden (shadowed)
@julienduchesne julienduchesne force-pushed the julienduchesne/remove-boilerplate branch from ce08540 to e919677 Compare February 16, 2024 14:40
@julienduchesne julienduchesne marked this pull request as ready for review February 16, 2024 14:40
@julienduchesne julienduchesne requested a review from a team as a code owner February 16, 2024 14:40
@julienduchesne julienduchesne merged commit 82d4ad7 into main Feb 16, 2024
7 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/remove-boilerplate branch February 16, 2024 15:18
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.

None yet

2 participants