Skip to content

Commit f36676f

Browse files
GromNaNalcaeus
andauthored
PHPLIB-1798 Extract MQL definition into a submodule for builder generator (#1851)
* PHPLIB-1798 Extract MQL definition into a submodule for builder generator * Add $minVersion and fix bson_utcdatetime compatibility * Add minimum version in description * Add update operators * Apply submodule changes on minVersion * Add selection of operator type in the generate command (prompted by AI needs) * Add tests on update operators * It seems to work * Stage types * Fix phpcs errors * Check out submodules in generator workflow * Fix psalm errors and update baseline * Introduce new UpdatePipeline class * PHPLIB-1507: Support Update Operators in Builders * Add support for new expressionMap type * Fix wrong YAML tag for BSON long * Update to latest version of builder module * Apply code review feedback * Update to latest definitions * Fix combining multiple updates of the same type --------- Co-authored-by: Andreas Braun <andreas.braun@mongodb.com>
1 parent bce941a commit f36676f

502 files changed

Lines changed: 3326 additions & 15806 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/generator.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: "Checkout"
2525
uses: "actions/checkout@v6"
26+
with:
27+
submodules: true
2628

2729
- name: "Setup"
2830
uses: "./.github/actions/setup"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "specifications"]
55
path = tests/specifications
66
url = https://github.com/mongodb/specifications
7+
[submodule "generator/mql-specifications"]
8+
path = generator/mql-specifications
9+
url = https://github.com/mongodb/mql-specifications

generator/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
},
1515
"require": {
1616
"mongodb/mongodb": "@dev",
17-
"nette/php-generator": "^4.1.5",
17+
"nette/php-generator": "^4.2",
1818
"nikic/php-parser": "^5",
19-
"symfony/console": "^7",
20-
"symfony/finder": "^7",
21-
"symfony/yaml": "^7"
19+
"symfony/console": "^7.4",
20+
"symfony/finder": "^7.4",
21+
"symfony/yaml": "^7.4"
2222
},
2323
"license": "Apache-2.0",
2424
"autoload": {

generator/config/accumulator/accumulator.yaml

Lines changed: 0 additions & 132 deletions
This file was deleted.

generator/config/accumulator/addToSet.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

generator/config/accumulator/avg.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

generator/config/accumulator/bottom.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)