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

Solve 5.21 compile errors #4126

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Solve 5.21 compile errors #4126

merged 2 commits into from
Jul 2, 2024

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Jul 2, 2024

Solve 5.21 compile errors

  • Added CypherScope.CYPHER_5, added here, which annotates procedures usable in Cypher 5.x

  • Changed namespace from List to String[], as in neo4j 5.21 the QualifiedName no longer accept List

  • Fixed various 5.21 compile errors due to APOC Core changes,
    See here

    • new signature Exceptions, e.g. here
    • changeFileUrlIfImportDirectoryConstrained method changed, see here
    • checkIfUrlBlankAndGetFileUrl method changed, see here
  • Changed ParquetTest.testStreamRoundtripParquetAllWithImportExportConfsDisabled,
    since FileUtils now has a method apocConfig().checkReadAllowed(url, urlAccessChecker);

  • Changed LoadCsvTest.testWithSpacesInFileName,
    since FileUtils.changeFileUrlIfImportDirectoryConstrained now has a method getLoadFileUrl(...),
    which makes the procedure fail if we have a file name like name with spaces instead of file:///name%20with%20spaces,
    and on which we cannot change the code, as it's in Core

  • Changed SystemDbTest due to new System Label "Auth" and Rel-type "HAS_AUTH", see here

@vga91 vga91 added to-cherry-pick issues related to commits to cherry-pick extended-functionality 5.21 labels Jul 2, 2024
* Added CypherScope.CYPHER_5

* Fix compile 5.21 errors after restore submodule

* solve error: cannot find symbol, due to org.neo4j.kernel.api.procedure.ProcedureView 5.21 changes

* fix ParquetTest.testStreamRoundtripParquetAllWithImportExportConfsDisabled

* fix LoadCsvTest.testWithSpacesInFileName
@vga91 vga91 force-pushed the solve-5.21-compile-errors branch from 03c0b73 to 1cbda79 Compare July 2, 2024 09:51
@RobertoSannino RobertoSannino merged commit d0f424c into 5.21 Jul 2, 2024
5 checks passed
@RobertoSannino RobertoSannino deleted the solve-5.21-compile-errors branch July 2, 2024 12:38
vga91 added a commit that referenced this pull request Jul 10, 2024
* Solve 5.21 compile errors

* Added CypherScope.CYPHER_5

* Fix compile 5.21 errors after restore submodule

* solve error: cannot find symbol, due to org.neo4j.kernel.api.procedure.ProcedureView 5.21 changes

* fix ParquetTest.testStreamRoundtripParquetAllWithImportExportConfsDisabled

* fix LoadCsvTest.testWithSpacesInFileName

* fix SystemDbTest.testGetGraph
vga91 added a commit that referenced this pull request Jul 11, 2024
* Try to solve 5.21 TC errors (#4137)

* Try to solve 5.21 TC errors

* de-ignored gradle.properties to be consistent with Core one

* Solve 5.21 compile errors (#4126)

* Solve 5.21 compile errors

* Added CypherScope.CYPHER_5

* Fix compile 5.21 errors after restore submodule

* solve error: cannot find symbol, due to org.neo4j.kernel.api.procedure.ProcedureView 5.21 changes

* fix ParquetTest.testStreamRoundtripParquetAllWithImportExportConfsDisabled

* fix LoadCsvTest.testWithSpacesInFileName

* fix SystemDbTest.testGetGraph

* Update .gitmodules to 5.21
gmarcostam pushed a commit to gmarcostam/neo4j-apoc-procedures that referenced this pull request Jul 11, 2024
* Solve 5.21 compile errors

* Added CypherScope.CYPHER_5

* Fix compile 5.21 errors after restore submodule

* solve error: cannot find symbol, due to org.neo4j.kernel.api.procedure.ProcedureView 5.21 changes

* fix ParquetTest.testStreamRoundtripParquetAllWithImportExportConfsDisabled

* fix LoadCsvTest.testWithSpacesInFileName

* fix SystemDbTest.testGetGraph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.21 extended-functionality to-cherry-pick issues related to commits to cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants