Repository navigation
Commit 26a841f
committed
feat: fail verify on hand edits and index foreign keys on request (1.3.0 PRs 6-7)
verify.handEdits in .metaobjects/config.json: "fail" makes `meta verify --codegen`
exit 1 on a hand-edited generated file, naming the file and both remedies;
--allow-hand-edits relaxes it for one run, --forbid-hand-edits still forces it.
A project without the key keeps the notice and exit 0; `meta init` writes
"fail". The C#, Java, Kotlin and Python gates already byte-compare and fail;
the docs now say so.
migrate.foreignKeyIndexes: every foreign key nothing already leads with gets a
plain <table>_<columns>_idx index, separate from the efcore preset (which
indexes them already and so adds nothing). Honoured by meta migrate / verify
--db, the Drizzle reference template, the C# DbContext generator and the Kotlin
Exposed table generator; Java OMDB and Python map no indexes. `meta init`
writes it on; projects without it are unchanged and keep the advisory, which
now names the option. Persistence corpus gains two migration scenarios.
C# gen and both verify --codegen paths pass foreignKeyIndexes and conventions.1 parent f8a1dc5 commit 26a841f
68 files changed
Lines changed: 1629 additions & 149 deletions
File tree
- agent-context/skills/metaobjects-verify
- docs
- features
- recipes
- examples
- advanced-modeling/codegen/templates
- showcase/codegen/templates
- fixtures
- agent-context-conformance
- csharp/expected/.claude/skills/metaobjects-verify
- java-kotlin-react-tanstack/expected/.claude/skills/metaobjects-verify
- java-react/expected/.claude/skills/metaobjects-verify
- python/expected/.claude/skills/metaobjects-verify
- ts-react-tanstack/expected/.claude/skills/metaobjects-verify
- generator-registry-conformance
- persistence-conformance
- migrations
- server
- csharp
- MetaObjects.Cli
- MetaObjects.Codegen.Tests
- MetaObjects.Codegen
- Generators
- MetaObjects.IntegrationTests
- MetaObjects/Config
- java
- codegen-kotlin/src
- main/kotlin/com/metaobjects/generator/kotlin
- test/kotlin/com/metaobjects/generator/kotlin
- maven-plugin/src/main/java/com/metaobjects/mojo
- metadata/src
- main/java/com/metaobjects
- config
- loader
- test/java/com/metaobjects/config
- typescript/packages
- cli
- src
- commands
- lib
- test
- integration
- unit
- codegen-ts
- src
- templates
- test
- prisma
- integration-tests/src
- migrate-ts
- src
- drift
- snapshot
- test/unit
- sdk/src
- test-generators/src/templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
38 | 59 | | |
39 | 60 | | |
40 | 61 | | |
| |||
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
59 | 84 | | |
60 | 85 | | |
61 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| |||
0 commit comments