General codebase fixes#293
General codebase fixes#293hrstoyanov wants to merge 37 commits intoArcadeData:mainfrom hrstoyanov:fixes
Conversation
This reverts commit e7ebd57.
|
Hi @hrstoyanov, thanks for your PR! I quickly looked at some of the commits contained in the PR and they are legit. I can't merge the entire PR because it contains some commits I prefer not to include, like the first commit that undoes some changes you did in your branch but are not relevant in the Also, I see you fixed some issues in the SQL and GraphQL classes, but that code is automatically generated by JavaCC parser every time we modify the SQL/GraphQL grammars, so they would be lost at the very next change to the grammar. I'm going to check one by one commit and cherry-pick the relevant ones. |
|
Thanks Luka. Please cherry pick the commits - this is the best approach. I did try to avoid fixing auto-genetated classes, but I missed - please ignore them. I did not realize how big of PR it is, so it's best to cherry pick and do this in stages. |
|
A few things I can try once you are done with absorbing this batch:
|
lvca
left a comment
There was a problem hiding this comment.
Thanks @hrstoyanov, your contribution is much appreciated! I've finished my one by one commi review and I've already merged most of them. Thanks! I see you reverted the last commit but there were nice changes. WDYT about getting a rebase from main and see if you can send more commits by the topic of change?
|
|
||
| @Override | ||
| protected void handleCorruption(final Exception e, final RID edge, final RID vertex) { | ||
| if ((e instanceof RecordNotFoundException || e instanceof SchemaException) &&// |
There was a problem hiding this comment.
Why did you remove this exception catching?
There was a problem hiding this comment.
@lvca I always start from the latest code in your repo. I will wait for you to finish picking changes for the last 2 PRs, and continue from the latest code base.
engine/src/main/java/com/arcadedb/query/sql/executor/MultiValue.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/com/arcadedb/query/sql/parser/ContainsTextCondition.java
Show resolved
Hide resolved
engine/src/main/java/com/arcadedb/database/async/DatabaseAsyncExecutorImpl.java
Show resolved
Hide resolved
engine/src/main/java/com/arcadedb/query/sql/executor/CartesianProductStep.java
Show resolved
Hide resolved
|
Merged single commits. |
* First working implementation and test cases. Only for the engine. Still missing docs, integration with studio, storing on file and HTTP support. Issue #288 * User function: managed timeout on script execution This prevent infinite loops by mistake and on purpose intended as an attack * js engine: Added another test for the sandbox * Supported Java query engine. This invokes a Java method. Nice to write custom function easy to debug when runs embedded * Custom function: added security registration of allowed classes This avoid to use the java query engine to execute any Java method, but only from the classes registrated beforehand * Hava query engine: improved using of underlying exception * Refactoring to let the user to register the functions with a specific API * Complete refactoring of the function API To have libraries with functions written in different languages. With fluent API it's easier to declare the functions. Also, now functions are registered on a central place, so we could call them from SQL too. * SQL: merged SQLEngine class into SQLQueryEngine. Now SQL can see functions defined in libraries * Added javadoc on Database interface + minor changes to API * Implemented suggestions by @hrstoyanov #293 * Fixed Java engine supported languages * Fixed typo with Javadoc * Fixed compilation problems after rebase * Fixed compilation errors after rebase * fix: resolved merge issues * Fix issue with caching functions * feat: functions can be managed from SQL Issue #288 task 5
Bumps the github-actions group with 2 updates: [anthropics/claude-code-action](https://github.com/anthropics/claude-code-action) and [zgosalvez/github-actions-ensure-sha-pinned-actions](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions). Updates `anthropics/claude-code-action` from 1.0.71 to 1.0.72 Release notes *Sourced from [anthropics/claude-code-action's releases](https://github.com/anthropics/claude-code-action/releases).* > v1.0.72 > ------- > > What's Changed > -------------- > > * Harden tag mode tool permissions against prompt injection by [`@km-anthropic`](https://github.com/km-anthropic) in [anthropics/claude-code-action#1002](https://redirect.github.com/anthropics/claude-code-action/pull/1002) > > **Full Changelog**: <anthropics/claude-code-action@v1...v1.0.72> Commits * [`cd77b50`](anthropics/claude-code-action@cd77b50) chore: bump Claude Code to 2.1.76 and Agent SDK to 0.2.76 * [`0e80d3c`](anthropics/claude-code-action@0e80d3c) chore: bump Claude Code to 2.1.75 and Agent SDK to 0.2.75 * [`f956510`](anthropics/claude-code-action@f956510) Harden tag mode tool permissions against prompt injection ([#1002](https://redirect.github.com/anthropics/claude-code-action/issues/1002)) * See full diff in [compare view](anthropics/claude-code-action@5d0cc74...cd77b50) Updates `zgosalvez/github-actions-ensure-sha-pinned-actions` from 5.0.1 to 5.0.2 Release notes *Sourced from [zgosalvez/github-actions-ensure-sha-pinned-actions's releases](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/releases).* > v5.0.2 > ------ > > What's Changed > -------------- > > * Bump jest from 30.2.0 to 30.3.0 by [`@dependabot`](https://github.com/dependabot)[bot] in [zgosalvez/github-actions-ensure-sha-pinned-actions#298](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/298) > * Bump eslint from 10.0.1 to 10.0.3 by [`@dependabot`](https://github.com/dependabot)[bot] in [zgosalvez/github-actions-ensure-sha-pinned-actions#295](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/295) > * Bump actions/cache from 5.0.1 to 5.0.3 by [`@dependabot`](https://github.com/dependabot)[bot] in [zgosalvez/github-actions-ensure-sha-pinned-actions#294](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/294) > * Bump undici from 6.23.0 to 6.24.1 by [`@dependabot`](https://github.com/dependabot)[bot] in [zgosalvez/github-actions-ensure-sha-pinned-actions#297](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/297) > * Bump actions/checkout from 6.0.1 to 6.0.2 by [`@dependabot`](https://github.com/dependabot)[bot] in [zgosalvez/github-actions-ensure-sha-pinned-actions#293](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/293) > * Bump actions/setup-node from 6.1.0 to 6.2.0 by [`@dependabot`](https://github.com/dependabot)[bot] in [zgosalvez/github-actions-ensure-sha-pinned-actions#292](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/pull/292) > > **Full Changelog**: <zgosalvez/github-actions-ensure-sha-pinned-actions@v5...v5.0.2> Commits * [`cc9ffdc`](zgosalvez/github-actions-ensure-sha-pinned-actions@cc9ffdc) Bump actions/setup-node from 6.1.0 to 6.2.0 ([#292](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/issues/292)) * [`b74bd12`](zgosalvez/github-actions-ensure-sha-pinned-actions@b74bd12) Bump actions/checkout from 6.0.1 to 6.0.2 ([#293](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/issues/293)) * [`8921d5c`](zgosalvez/github-actions-ensure-sha-pinned-actions@8921d5c) Bump undici from 6.23.0 to 6.24.1 ([#297](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/issues/297)) * [`a88dd70`](zgosalvez/github-actions-ensure-sha-pinned-actions@a88dd70) Bump actions/cache from 5.0.1 to 5.0.3 ([#294](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/issues/294)) * [`743dbe8`](zgosalvez/github-actions-ensure-sha-pinned-actions@743dbe8) Bump eslint from 10.0.1 to 10.0.3 ([#295](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/issues/295)) * [`fb78cc3`](zgosalvez/github-actions-ensure-sha-pinned-actions@fb78cc3) Bump jest from 30.2.0 to 30.3.0 ([#298](https://redirect.github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/issues/298)) * See full diff in [compare view](zgosalvez/github-actions-ensure-sha-pinned-actions@70c4af2...cc9ffdc) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
What does this PR do?
I ran ArcadeDB through Intellij code inspection and got back a lot of issues.
Motivation
Wanted to improve/modernize the code base.
I did not accept all fixes IntelliJ offered. For example, some of them are related to generics and require more investigation.
Checklist
[X] I have run the build using
mvn clean packagecommand[X] My unit tests cover both failure and success scenarios