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

[hxmGFWvF] Only create a TriggerHandler if triggers are enabled. #637

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

Lojjs
Copy link
Contributor

@Lojjs Lojjs commented Jun 25, 2024

Some of the TriggerHandler code, in particular the start() method was run even if triggers were disabled. This could cause issues in some edge cases as well as impact performance.

Also improve testing of disabled triggers.

The old code tried to put the expected error message in the help message place in assertThrows, leading to the tests passing even if there was another RuntimeException.
@Lojjs Lojjs added bug Something isn't working team-cypher-surface dev labels Jun 25, 2024
@Lojjs Lojjs force-pushed the dev-no-triggerhandler-when-disabled branch 2 times, most recently from f5b183f to 2ace4f4 Compare June 26, 2024 10:05
@Lojjs Lojjs force-pushed the dev-no-triggerhandler-when-disabled branch from 2ace4f4 to b46dddf Compare June 26, 2024 12:39
Copy link
Contributor

@gem-neo4j gem-neo4j left a comment

Choose a reason for hiding this comment

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

Nice work :D

common/src/main/java/apoc/util/Util.java Show resolved Hide resolved
@Lojjs Lojjs force-pushed the dev-no-triggerhandler-when-disabled branch from ff32693 to 6ab73cd Compare June 27, 2024 07:29
@Lojjs Lojjs force-pushed the dev-no-triggerhandler-when-disabled branch from 6ab73cd to 4895d14 Compare June 27, 2024 08:25
@Lojjs Lojjs merged commit 3dcda9d into dev Jun 28, 2024
20 checks passed
@Lojjs Lojjs deleted the dev-no-triggerhandler-when-disabled branch June 28, 2024 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev team-cypher-surface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants