Commit aab9d53
authored
fix(neo4j): hold the graph contract at the shared 2.0.0 baseline (#221)
SCHEMA_VERSION on the graph is a shared cross-analyzer number, not this
analyzer's own. codeanalyzer-typescript states the rule on its own catalog --
"SCHEMA_VERSION moves only when every analyzer re-baselines together" -- and
codeanalyzer-python has stayed at 2.0.0 throughout.
This analyzer had drifted off it: 2.1.0 for the L4 SDG overlay, 2.2.0 for the
repository-artifact layer, then 3.0.0 when `_module` was removed. The first two
were additive over labels that 2.0.0 had already reserved, and the third claimed
a MAJOR re-baseline no sibling had agreed to. None was anyone else's to undo, so
the number goes back to 2.0.0 and the javadoc now says the rule out loud, so the
next change here is recognizable as a cross-repo decision rather than a local
one.
The uncomfortable half is recorded in the code rather than papered over:
removing `_module` IS breaking, and while this number stays put a consumer
cannot detect that removal from the version alone. The answer is a coordinated
re-baseline across all three analyzers, which is what the epic exists for -- not
a unilateral bump here, which is exactly how the drift started.
This also stops the graph reporting 3.0.0 while analysis.json reports 2.0.0 for
the same analysis, from two fields that share the name `schema_version` and
version different things. All three now read 2.0.0.
No behaviour change: `_module` is still absent, :JCanNode still present, the
prefix-scoped purge untouched.1 parent 07b4a3b commit aab9d53
3 files changed
Lines changed: 21 additions & 12 deletions
File tree
- src
- main/java/com/ibm/cldk/neo4j
- test/java/com/ibm/cldk
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments