GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bump metrics.version from 4.2.2 to 4.2.3 by dependabot[bot] · Pull Request #6 · ArcadeData/arcadedb

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 16, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Bumps metrics.version from 4.2.2 to 4.2.3.
Updates metrics-core from 4.2.2 to 4.2.3

Release notes

Sourced from metrics-core's releases.

v4.2.3

Dependency updates

  • Update jackson.version to v2.12.4 (release/4.2.x) (#2069)
  • Update jetty9.version to v9.4.43.v20210629 (release/4.2.x) (#2070)
  • Update dependency com.github.ben-manes.caffeine:caffeine to v2.9.2 (release/4.2.x) (#2058)
  • Update dependency com.github.ben-manes.caffeine:caffeine to v3.0.3 (release/4.2.x) (#2060)
  • Update dependency com.rabbitmq:amqp-client to v5.13.0 (release/4.2.x) (#2076)
  • Update dependency org.eclipse.jetty:jetty-bom to v10.0.6 (release/4.2.x) (#2067)
  • Update dependency org.eclipse.jetty:jetty-bom to v11.0.6 (release/4.2.x) (#2068)
  • Update dependency org.jdbi:jdbi3-core to v3.21.0 (release/4.2.x) (#2083)
  • Update dependency org.checkerframework:checker-qual to v3.16.0 (release/4.2.x) (#2078)
  • Update dependency org.openjdk.jcstress:jcstress-core to v0.14 (#2053)
  • Bump actions/stale from 3.0.19 to 4 (#2079)
Commits
  • f43f60e [maven-release-plugin] prepare release v4.2.3
  • 8b39de6 Update dependency org.jdbi:jdbi3-core to v3.21.0 (release/4.2.x) (#2083)
  • 311eb49 Bump actions/stale from 3.0.19 to 4 (#2079)
  • 132c279 Update dependency org.checkerframework:checker-qual to v3.16.0 (release/4.2.x...
  • 026bdb5 Update dependency com.rabbitmq:amqp-client to v5.13.0 (release/4.2.x) (#2076)
  • 12a0cef Add Dependabot config for GitHub Actions
  • aa146a8 Update jetty9.version to v9.4.43.v20210629 (release/4.2.x) (#2070)
  • 1006636 Update dependency org.eclipse.jetty:jetty-bom to v10.0.6 (release/4.2.x) (#2067)
  • 29f649f Update jackson.version to v2.12.4 (release/4.2.x) (#2069)
  • f984c9e Update dependency org.eclipse.jetty:jetty-bom to v11.0.6 (release/4.2.x) (#2068)
  • Additional commits viewable in compare view

Updates metrics-jmx from 4.2.2 to 4.2.3

Release notes

Sourced from metrics-jmx's releases.

v4.2.3

Dependency updates

  • Update jackson.version to v2.12.4 (release/4.2.x) (#2069)
  • Update jetty9.version to v9.4.43.v20210629 (release/4.2.x) (#2070)
  • Update dependency com.github.ben-manes.caffeine:caffeine to v2.9.2 (release/4.2.x) (#2058)
  • Update dependency com.github.ben-manes.caffeine:caffeine to v3.0.3 (release/4.2.x) (#2060)
  • Update dependency com.rabbitmq:amqp-client to v5.13.0 (release/4.2.x) (#2076)
  • Update dependency org.eclipse.jetty:jetty-bom to v10.0.6 (release/4.2.x) (#2067)
  • Update dependency org.eclipse.jetty:jetty-bom to v11.0.6 (release/4.2.x) (#2068)
  • Update dependency org.jdbi:jdbi3-core to v3.21.0 (release/4.2.x) (#2083)
  • Update dependency org.checkerframework:checker-qual to v3.16.0 (release/4.2.x) (#2078)
  • Update dependency org.openjdk.jcstress:jcstress-core to v0.14 (#2053)
  • Bump actions/stale from 3.0.19 to 4 (#2079)
Commits
  • f43f60e [maven-release-plugin] prepare release v4.2.3
  • 8b39de6 Update dependency org.jdbi:jdbi3-core to v3.21.0 (release/4.2.x) (#2083)
  • 311eb49 Bump actions/stale from 3.0.19 to 4 (#2079)
  • 132c279 Update dependency org.checkerframework:checker-qual to v3.16.0 (release/4.2.x...
  • 026bdb5 Update dependency com.rabbitmq:amqp-client to v5.13.0 (release/4.2.x) (#2076)
  • 12a0cef Add Dependabot config for GitHub Actions
  • aa146a8 Update jetty9.version to v9.4.43.v20210629 (release/4.2.x) (#2070)
  • 1006636 Update dependency org.eclipse.jetty:jetty-bom to v10.0.6 (release/4.2.x) (#2067)
  • 29f649f Update jackson.version to v2.12.4 (release/4.2.x) (#2069)
  • f984c9e Update dependency org.eclipse.jetty:jetty-bom to v11.0.6 (release/4.2.x) (#2068)
  • Additional commits viewable in compare view

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 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java labels Aug 16, 2021
@arcade-player

arcade-player commented Aug 31, 2021

Copy link
Copy Markdown
Contributor

@dependabot rebase

dependabot[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dependabot
Bump metrics.version from 4.2.2 to 4.2.3
1e1c6f0
Bumps `metrics.version` from 4.2.2 to 4.2.3.

Updates `metrics-core` from 4.2.2 to 4.2.3
- [Release notes](https://github.com/dropwizard/metrics/releases)
- [Commits](dropwizard/metrics@v4.2.2...v4.2.3)

Updates `metrics-jmx` from 4.2.2 to 4.2.3
- [Release notes](https://github.com/dropwizard/metrics/releases)
- [Commits](dropwizard/metrics@v4.2.2...v4.2.3)

---
updated-dependencies:
- dependency-name: io.dropwizard.metrics:metrics-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.dropwizard.metrics:metrics-jmx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/maven/metrics.version-4.2.3 branch from 68e0b2f to 1e1c6f0 Compare August 31, 2021 22:22
@lvca
lvca merged commit b6f0857 into main Sep 16, 2021
@dependabot
dependabot Bot deleted the dependabot/maven/metrics.version-4.2.3 branch September 16, 2021 15:50
This was referenced Jan 27, 2026
feat: BOLT protocol first version #3250
Merged
feat: implement plugin architecture with isolated class loaders #3260
Merged
GRPc: tests and refactor #3306
Merged
This was referenced Feb 18, 2026
Add materialized views #3464
Merged
MCP server + API Keys + User/Groups on Studio #3481
Merged
@claude claude Bot mentioned this pull request Mar 14, 2026
Graph Analytical View (GAV) — CSR-based OLAP acceleration #3618
Merged
@claude claude Bot mentioned this pull request Apr 5, 2026
Replace custom Raft protocol with Apache Ratis #3798
Closed
@claude claude Bot mentioned this pull request May 6, 2026
feat: supported partitioning in query #4088
Merged
@lvca lvca mentioned this pull request Jun 23, 2026
feat: [#4687] native BM25 full-text scoring (field boosts, caret, EXPLAIN/PROFILE) #4695
Merged
@claude claude Bot mentioned this pull request Jun 27, 2026
fix(#4754): implement LifeCycle transitions so StateMachineUpdater.reload() proceeds after snapshot install #4755
Merged
tae898 referenced this pull request in humemai/arcadedb-embedded-python Jun 28, 2026
@lvca
Merge pull request #6 from ArcadeData/dependabot/maven/metrics.versio…
d66bc2f
…n-4.2.3

Bump metrics.version from 4.2.2 to 4.2.3
@claude claude Bot mentioned this pull request Jul 7, 2026
fix(#5027): restore/import SSRF guard + crash-safe overwrite restore #5090
Merged
2 tasks done
@claude claude Bot mentioned this pull request Aug 11, 2026
feat(#6060): add apoc.do.when, apoc.refactor.mergeNodes, apoc.refactor.cloneNodesWithRelationships #6071
Merged
2 tasks done
@ruispereira ruispereira mentioned this pull request Aug 26, 2026
Robustness batch: plugin stop-on-failed-start, WebSocket duplicate/authz/backlog, vector nextId on parse failure, non-volatile gRPC channel, MCP input bounds #6762
Closed
@claude claude Bot mentioned this pull request Sep 18, 2026
fix(#7531): the leader seeds the cluster security documents on every peer admission #7839
Merged
4 tasks
@claude claude Bot mentioned this pull request Sep 26, 2026
fix(#8394,#8403,#7875,#8137): GAV relationship uniqueness, off-monitor rebuild, per-database useWhenStale, durable HA read floors #8425
Merged
@robfrank robfrank mentioned this pull request Sep 28, 2026
fix(#7780): let begin()/commit() hand a retryable NeedRetryException to transaction()'s retry loop #8619
Merged
3 tasks done
@lvca lvca mentioned this pull request Sep 29, 2026
fix(#8625): queries answer the incoming side of unidirectional edge types; GraphBatch follows the type's direction #8628
Merged
@robfrank robfrank mentioned this pull request Oct 2, 2026
feat(#7821): let a listed trusted proxy vouch for the gRPC CreateApiToken transport #8891
Merged
7 tasks done
@lvca lvca mentioned this pull request Oct 4, 2026
fix: #9146 #9125 #9124 #9123 BigInteger precision, index delete bounds, r:R subtypes, streaming allShortestPaths #9160
Merged
@robfrank robfrank mentioned this pull request Oct 7, 2026
feat(#8856): publish the remaining HA per-instance executors as PoolMetrics rows #9417
Merged
4 of 5 tasks
@claude claude Bot mentioned this pull request Oct 8, 2026
feat(#9518): query admission gate - FIFO queue with heap-aware admission for every remote protocol #9528
Merged
@robfrank robfrank mentioned this pull request Oct 14, 2026
fix(#9970): an interrupted nested begin() pops only the level it pushed #10032
Merged
5 tasks done
@robfrank robfrank mentioned this pull request Oct 17, 2026
fix(#10135): a joined transaction() block that throws leaves the caller's transaction alive #10241
Merged
5 tasks done
@lvca lvca mentioned this pull request Oct 18, 2026
fix(#10238,#10233,#10232): TIMESERIES column constraints enforced on every write path, temporal refusals name the column, INSERT FROM SELECT #10261
Merged
@robfrank robfrank mentioned this pull request Oct 23, 2026
fix(#10634): a late-sample record ships to the followers, an unset watermark beside backing rows resumes from them #10674
Merged
4 tasks done
@shaunpatterson shaunpatterson mentioned this pull request Nov 15, 2026
fix(#12028, #12029): refuse a super type link that closes a cycle or crosses record kinds #12063
Merged
@robfrank robfrank mentioned this pull request Nov 21, 2026
Performance tracking: dedicated runner provisioning and nightly/release workflows #12429
Closed
6 tasks
lvca added a commit that referenced this pull request Nov 23, 2026
@shaunpatterson @lvca
fix(#12028, #12029): refuse a super type link that closes a cycle or …
0ba7ba6
…crosses record kinds (#12063)

Fixes #12028
Fixes #12029

Both issues are missing refusals in the same place: the checks a super
type link is asked before anything changes
(`LocalDocumentType.checkCanAddSuperType`, which `ALTER TYPE ...
SUPERTYPE +`, `Schema` API `addSuperType` and `TypeBuilder` on an
existing type all go through). So they are fixed together, in one PR.

### What changes

- **Cycle (#12028)**: `checkCanAddSuperType` refuses, first and for
every linkage, a super type that is the type itself or already one of
its sub types (`DocumentType.isSubTypeOf`, which only walks up the super
type lists and so ends). The statement is refused with a
`SchemaException` (HTTP 400) before the link is made, so nothing is left
in memory. It used to link, overflow the stack in the post-link steps (a
`StackOverflowError` is not the `RuntimeException` the unlink guard
catches), and keep the cycle.
- **Load**: a `schema.json` that already holds a cycle (the next schema
save after the old 500 could write one) still opens. The inheritance
restore leaves out the link that would close the cycle and logs a
warning naming it. Before, every polymorphic walk over the loaded cycle
overflowed.
- **Record kind (#12029)**: a new linkage refuses a graph super type of
another kind (a document or edge type under a vertex type, a vertex or
document type under an edge type), in `checkCanAddSuperType` for ALTER
and in `TypeBuilder` for a new type (`CREATE ... TYPE ... EXTENDS` and
the Java builder). A DOCUMENT super type stays legal for a vertex or an
edge type: existing schemas use it to share properties
(`SchemaTest.dropNonExistentIndexThenCreateProperty` has `CREATE VERTEX
TYPE ... EXTENDS <document type>`), and a vertex or an edge is a
document, so a scan of the super type reads nothing it cannot hold.
Linkages that already hold (schema load, re-attachment after `DROP
TYPE`) are not asked, so a database written before the check still
opens.

### Tests

`SuperTypeAdmissionTest` (new, engine, one nested class per issue):

- cycle refused through SQL (direct and two levels down), the Java API
and the type builder; schema unchanged, `SELECT FROM A` and `CREATE
PROPERTY A.y` work after;
- a hand-edited `schema.json` holding a cycle opens, keeps two of the
three links, scans and saves;
- ALTER refuses document under vertex, vertex under edge, edge under
vertex; same kind, and vertex or edge under document, stay legal; Cypher
`MATCH (v:V)` answers;
- `CREATE DOCUMENT TYPE ... EXTENDS <vertex>`, `CREATE EDGE TYPE ...
EXTENDS <vertex>`, `CREATE VERTEX TYPE ... EXTENDS <edge>` and
`buildDocumentType().withSuperType(<vertex>)` refused, no type created;
`CREATE VERTEX TYPE ... EXTENDS <document>` and an edge type built over
a document type stay legal;
- a hand-edited `schema.json` with a cross-kind link still opens.

### Results

Engine tests (Docker, maven:3.9-eclipse-temurin-21):

- failing-first with `engine/src/main` from origin/main:
`SuperTypeAdmissionTest` 6 run, 5 fail (4 failures, 1 error:
`aSchemaFileWithACycleStillOpens` StackOverflowError).
- `-Dtest='com/arcadedb/schema/**/*Test,SuperTypeAdmissionTest'
-DexcludedGroups=slow`: 1812 tests, 0 failures, 0 errors, 0 skipped.
- whole engine module, `-pl engine test -DexcludedGroups=slow`: 27969
tests, 2 failures, 3 errors, 22 skipped. None is from this change:
`ParallelSafeExpressionsStateTest` (1 failure) and
`CypherCallInTransactionsOnErrorIssue11595Test` (3 errors) fail the same
way with `engine/src/main` from origin/main;
`ReplicatedApplyPublicationTest` (1 failure) passed on origin/main and
passed again alone on this branch (timing-dependent).
- server module, `-pl server -am test
-Dtest='com/arcadedb/server/**/*Http*Test,com/arcadedb/server/**/*Command*Test,com/arcadedb/server/**/*Schema*Test'`:
263 tests, 0 failures, 0 errors, 0 skipped.
- server ITs that send DDL and assert HTTP statuses (28 classes, among
them `HTTPDocumentIT`, `HTTPGraphIT`, `RemoteDatabaseIT`,
`SchemaMutationAuthorizationIT`, `FacetsSubtypeAclIT`,
`TestLinkedPropertiesSchemaReloadIT`): 187 tests, 0 failures, 0 errors,
0 skipped.

End to end, HTTP against a server built from main (`s12028` repro):

Server with the main jars (a7304ab):

version 200
== cycle: A <- B <- C, then ALTER TYPE A SUPERTYPE +C
200 CREATE VERTEX TYPE A -> [{"operation": "create vertex type",
"typeName": "A", "created": true}]
200 CREATE VERTEX TYPE B EXTENDS A -> [{"operation": "create vertex
type", "typeName": "B", "created": true}]
200 CREATE VERTEX TYPE C EXTENDS B -> [{"operation": "create vertex
type", "typeName": "C", "created": true}]
200 INSERT INTO C SET x = 1 -> [{"@Rid": "#7:0", "@type": "C", "@cat":
"v", "x": 1}]
500 ALTER TYPE A SUPERTYPE +C -> "DatabaseOperationException: Error
during write lock -> StackOverflowError"
200 SELECT name, parentTypes FROM schema:types ORDER BY name ->
[{"name": "A", "parentTypes": ["C"]}, {"name": "B", "parentTypes":
["A"]}, {"name": "C", "parentTypes": ["B"]}]
  200 SELECT count(*) FROM A -> [{"count(*)": 1}]
500 SELECT FROM A -> "StackOverflowError: java.lang.StackOverflowError"
500 CREATE PROPERTY A.y INTEGER -> "DatabaseOperationException: Error
during write lock -> StackOverflowError"
400 INSERT INTO A SET x = 2 -> "CommandSQLParsingException: The
statement is nested or chained too deeply to be executed (the thread
stack overflowed while building the plan) -> StackOverflowError"
== cross kind: document type D gets vertex super type V; vertex type W
gets edge super type E
200 CREATE VERTEX TYPE V -> [{"operation": "create vertex type",
"typeName": "V", "created": true}]
200 CREATE DOCUMENT TYPE D -> [{"operation": "create document type",
"typeName": "D", "created": true}]
200 CREATE EDGE TYPE E -> [{"operation": "create edge type", "typeName":
"E", "created": true}]
200 CREATE VERTEX TYPE W -> [{"operation": "create vertex type",
"typeName": "W", "created": true}]
200 INSERT INTO V SET n = 1 -> [{"@Rid": "#1:0", "@type": "V", "@cat":
"v", "n": 1}]
200 INSERT INTO D SET n = 2 -> [{"@Rid": "#4:0", "@type": "D", "@cat":
"d", "n": 2}]
200 INSERT INTO W SET n = 3 -> [{"@Rid": "#6:0", "@type": "W", "@cat":
"v", "n": 3}]
200 ALTER TYPE D SUPERTYPE +V -> [{"supertype": ["V"], "operation":
"ALTER TYPE", "typeName": "D", "result": "OK"}]
200 ALTER TYPE W SUPERTYPE +E -> [{"supertype": ["E"], "operation":
"ALTER TYPE", "typeName": "W", "result": "OK"}]
200 SELECT name, type, parentTypes FROM schema:types ORDER BY name ->
[{"name": "D", "type": "document", "parentTypes": ["V"]}, {"name": "E",
"type": "edge", "parentTypes": []}, {"name": "V", "type": "vertex",
"parentTypes": []}, {"name": "W", "type": "vertex", "parentTypes":
["E"]}]
200 SELECT @Rid, @type, @cat, n FROM V -> [{"@Rid": "#1:0", "@type":
"V", "@cat": "v", "n": 1}, {"@Rid": "#4:0", "@type": "D", "@cat": "d",
"n": 2}]
500 MATCH (v:V) RETURN v.n -> "ClassCastException: Cannot cast the
document #4:0 to a vertex"
200 SELECT @Rid, @type, @cat, n FROM E -> [{"@Rid": "#6:0", "@type":
"W", "@cat": "v", "n": 3}]
  200 MATCH ()-[e:E]->() RETURN count(e) -> [{"count(e)": 0}]

Same server, engine jar built from this branch:

version 200
== cycle: A <- B <- C, then ALTER TYPE A SUPERTYPE +C
200 CREATE VERTEX TYPE A -> [{"operation": "create vertex type",
"typeName": "A", "created": true}]
200 CREATE VERTEX TYPE B EXTENDS A -> [{"operation": "create vertex
type", "typeName": "B", "created": true}]
200 CREATE VERTEX TYPE C EXTENDS B -> [{"operation": "create vertex
type", "typeName": "C", "created": true}]
200 INSERT INTO C SET x = 1 -> [{"@Rid": "#7:0", "@type": "C", "@cat":
"v", "x": 1}]
400 ALTER TYPE A SUPERTYPE +C -> "SchemaException: Cannot make type 'A'
a sub type of 'C': 'C' is already a sub type of 'A', and a type
hierarchy cannot have a cycle"
200 SELECT name, parentTypes FROM schema:types ORDER BY name ->
[{"name": "A", "parentTypes": []}, {"name": "B", "parentTypes": ["A"]},
{"name": "C", "parentTypes": ["B"]}]
  200 SELECT count(*) FROM A -> [{"count(*)": 1}]
200 SELECT FROM A -> [{"@Rid": "#7:0", "@type": "C", "@cat": "v", "x":
1}]
200 CREATE PROPERTY A.y INTEGER -> [{"operation": "create property",
"typeName": "A", "propertyName": "y", "created": true}]
200 INSERT INTO A SET x = 2 -> [{"@Rid": "#1:0", "@type": "A", "@cat":
"v", "x": 2}]
== cross kind: document type D gets vertex super type V; vertex type W
gets edge super type E
200 CREATE VERTEX TYPE V -> [{"operation": "create vertex type",
"typeName": "V", "created": true}]
200 CREATE DOCUMENT TYPE D -> [{"operation": "create document type",
"typeName": "D", "created": true}]
200 CREATE EDGE TYPE E -> [{"operation": "create edge type", "typeName":
"E", "created": true}]
200 CREATE VERTEX TYPE W -> [{"operation": "create vertex type",
"typeName": "W", "created": true}]
200 INSERT INTO V SET n = 1 -> [{"@Rid": "#1:0", "@type": "V", "@cat":
"v", "n": 1}]
200 INSERT INTO D SET n = 2 -> [{"@Rid": "#4:0", "@type": "D", "@cat":
"d", "n": 2}]
200 INSERT INTO W SET n = 3 -> [{"@Rid": "#6:0", "@type": "W", "@cat":
"v", "n": 3}]
400 ALTER TYPE D SUPERTYPE +V -> "SchemaException: Cannot make the
document type 'D' a sub type of the vertex type 'V': a type can only
extend a document type or a type of its own kind"
400 ALTER TYPE W SUPERTYPE +E -> "SchemaException: Cannot make the
vertex type 'W' a sub type of the edge type 'E': a type can only extend
a document type or a type of its own kind"
200 SELECT name, type, parentTypes FROM schema:types ORDER BY name ->
[{"name": "D", "type": "document", "parentTypes": []}, {"name": "E",
"type": "edge", "parentTypes": []}, {"name": "V", "type": "vertex",
"parentTypes": []}, {"name": "W", "type": "vertex", "parentTypes": []}]
200 SELECT @Rid, @type, @cat, n FROM V -> [{"@Rid": "#1:0", "@type":
"V", "@cat": "v", "n": 1}]
  200 MATCH (v:V) RETURN v.n -> [{"v.n": 1}]
  200 SELECT @Rid, @type, @cat, n FROM E -> []
  200 MATCH ()-[e:E]->() RETURN count(e) -> [{"count(e)": 0}]

Overlap note: separate PRs for #12031, #12032, #12035, #12036, #12038
and #12039 are being prepared in the same area (`LocalDocumentType`,
`LocalSchema`, `ExistingRecordsCheck`, the ALTER/CREATE TYPE
statements). Textual merge conflicts with them are possible; the changes
are meant to be independent. This PR and the one for #12030 both add a
step at the end of `LocalDocumentType.checkCanAddSuperType`, so the
second to merge needs a small rebase.

### Merge note: #12067

This PR conflicts textually with #12067 in `LocalDocumentType.java`,
around line 3496. Both add private methods directly after
`checkCanAddSuperType`. This PR adds `checkNoCycle`,
`checkSameRecordKind` and `recordKindName`; #12067 adds
`checkStoredRecordsMeetInheritedProperties`. To resolve it, keep both
blocks.

One ordering rule applies after the merge. #12067's stored-record scan
(`checkStoredRecordsMeetInheritedProperties`, which walks
`superType.getPolymorphicProperties()`) has to stay after the
`checkNoCycle` call that this PR puts at the head of
`checkCanAddSuperType`. Run before it, that walk could follow a cycle
before the cycle check refuses it.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Schema inheritance now rejects cycles and incompatible record types,
preventing invalid parent-child relationships from being created through
SQL commands or builders.
* Existing schema files with cyclic or incompatible inheritance links
can still load; invalid links are skipped.
* Type removal now refuses to proceed when reattaching child types would
create an incompatible relationship. Same-kind inheritance and document
supertypes for graph types remain supported.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: lvca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@arcade-player @lvca
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.