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

[hDJkPkOQ] Add QueryType validation in apoc.trigger.add #214

Closed
wants to merge 1 commit into from

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Oct 18, 2022

TODO - Waiting for #250

Added QueryType validations in validateQuery() method,
so as to fail if the procedure tries to execute schema operations.

See point 2 here: #208 (review)

@vga91 vga91 marked this pull request as draft October 18, 2022 13:42
@vga91 vga91 force-pushed the validate-trigger-query-operation branch from 6de102f to 5eb3e2b Compare November 15, 2022 16:22
@vga91 vga91 marked this pull request as ready for review November 15, 2022 16:22
@vga91 vga91 changed the title [NOID] Add QueryType validation in apoc.trigger.add [hDJkPkOQ] Add QueryType validation in apoc.trigger.add Nov 15, 2022
@vga91 vga91 force-pushed the validate-trigger-query-operation branch from 99f3f83 to aa3fe55 Compare November 18, 2022 13:55
@Lojjs Lojjs self-assigned this Dec 1, 2022
@vga91
Copy link
Collaborator Author

vga91 commented Jan 24, 2023

TODO - Waiting for #250

Added QueryType validations in validateQuery() method, so as to fail if the procedure tries to execute schema operations.

See point 2 here: #208 (review)

I'm afraid I waited in vain :X
I think this pr is no longer valid on 5.x, as in apoc.trigger.install we removed the Util.validateQuery(db, statement) ( see here ),
while the apoc.trigger.add is now deprecated.

So, I just created a pr for 4.4 neo4j-contrib/neo4j-apoc-procedures#3421

@vga91 vga91 closed this Jan 24, 2023
@ncordon ncordon deleted the validate-trigger-query-operation branch May 11, 2023 17:09
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