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

fix: resolve compiler error for unused dbObj variable in event hooks #311

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

seancribbs
Copy link
Contributor

The dbObj in the deletion event hook is only needed when there are additional
subject annotations on non-sensitive fields or relations, so I created a template
function to check that condition and wrapped the entire section that processes
those annotations in an if.

@seancribbs seancribbs requested a review from a team as a code owner March 10, 2025 14:07
@seancribbs seancribbs force-pushed the avoid-unused-dbobj branch 2 times, most recently from ba30229 to 848da0e Compare March 10, 2025 17:34
Signed-off-by: Sean Cribbs <seancribbs@gmail.com>
@seancribbs seancribbs requested review from a team as code owners March 10, 2025 17:38
Copy link
Member

@nicolerenee nicolerenee left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

Tested locally with location-api and ensured generated code still had everything it should have.

@nicolerenee nicolerenee added this pull request to the merge queue Mar 10, 2025
Merged via the queue into infratographer:main with commit 783b8c4 Mar 10, 2025
6 checks passed
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