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

[wvzcpHQH] Add SSFR check for apoc.spatial procedures #305

Merged
merged 3 commits into from
Feb 15, 2023
Merged

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Jan 25, 2023

  • Added failing tests for ip blocklist setting.

It's not necessary to change the implementation,
as both apoc.spatial.geocode and apoc.spatial.reverseGeocode call JsonUtil.loadJson(...)
which ends up on the work done in this pr.

@CLAassistant
Copy link

CLAassistant commented Jan 26, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@AzuObs AzuObs left a comment

Choose a reason for hiding this comment

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

These tests do not seem to be passing in the CI or on my machine either. Would it be possible to fix them before resubmitting this for review?

@vga91
Copy link
Collaborator Author

vga91 commented Jan 30, 2023

@AzuObs ok, now it seems to work in the CI as well

Copy link
Contributor

@AzuObs AzuObs left a comment

Choose a reason for hiding this comment

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

Thank you very much for fixing the tests. It's very pleasing to see that these tests clearly demonstrate that these procedures were already protected 🎉

I left a couple of nitpicks regarding the time these tests take to run, and also regarding whether these tests could be more readable.

Copy link
Contributor

@AzuObs AzuObs left a comment

Choose a reason for hiding this comment

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

Thank you for actioning the comments. Nice work 🙌

@vga91 vga91 merged commit ba41be8 into dev Feb 15, 2023
@vga91 vga91 deleted the blocklist_geocode branch February 15, 2023 13:56
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this pull request Feb 15, 2023
* [wvzcpHQH] Add SSFR check for apoc.spatial procedures

* [wvzcpHQH] Fix test in the CI

* [wvzcpHQH] added descriptive method and speed up tests
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this pull request Feb 21, 2023
#3451)

* [wvzcpHQH] Add SSFR check for apoc.spatial procedures (neo4j/apoc#305)

* [wvzcpHQH] Add SSFR check for apoc.spatial procedures

* [wvzcpHQH] Fix test in the CI

* [wvzcpHQH] added descriptive method and speed up tests

* [wvzcpHQH] changed err. message in 4.4
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

3 participants