Skip to content

Commit

Permalink
create basic elements for Miroir Action Script (MAS), migrate Tools.s…
Browse files Browse the repository at this point in the history
…ubmit to MAS #28. Refactor handling of runtimeTransformers in sqlDbExtractorRunner: allow only QueryExtractorTransformers as runtimeTransformers (and not MiroirSelectQueriesRecord). Also, QueryExtractorTransformers are not part of MiroirSelectQueriesRecord anymore.
  • Loading branch information
miroir-framework committed Aug 27, 2024
1 parent acf96b8 commit 8678b9d
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 291 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1561,22 +1561,21 @@ export function getMiroirFundamentalJzodSchema(
},
},
runtimeTransformers: {
// type: "record",
// optional: true,
// definition: {
// type: "schemaReference",
// definition: {
// absolutePath: "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
// relativePath: "queryExtractorTransformer",
// },
// },
type: "schemaReference",
type: "record",
optional: true,
definition: {
absolutePath: "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
relativePath: "miroirSelectQueriesRecord",
// relativePath: "queryExtractorTransformer",
type: "schemaReference",
definition: {
absolutePath: "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
relativePath: "queryExtractorTransformer",
},
},
// type: "schemaReference",
// optional: true,
// definition: {
// absolutePath: "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
// relativePath: "miroirSelectQueriesRecord",
// },
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"definition": {
Expand Down Expand Up @@ -2679,7 +2679,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"selectData": {
Expand Down Expand Up @@ -2725,7 +2725,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"selectData": {
Expand Down Expand Up @@ -2836,7 +2836,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"section": {
Expand Down Expand Up @@ -3127,7 +3127,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"definition": {
Expand Down Expand Up @@ -3272,7 +3272,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"selectData": {
Expand Down Expand Up @@ -3318,7 +3318,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"selectData": {
Expand Down Expand Up @@ -3432,7 +3432,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
}
},
"section": {
Expand Down Expand Up @@ -4684,34 +4684,12 @@ export const miroirFundamentalJzodSchema = {
}
},
"queryExtractorTransformer": {
"type": "union",
"discriminator": "queryName",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "queryExtractorRuntimeTransformer",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "queryExtractorTransformerUnique",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "queryExtractorTransformerCount",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
}
]
"type": "schemaReference",
"definition": {
"relativePath": "queryExtractorRuntimeTransformer",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
"querySelect": {
"type": "union",
Expand Down Expand Up @@ -5452,11 +5430,14 @@ export const miroirFundamentalJzodSchema = {
}
},
"runtimeTransformers": {
"type": "schemaReference",
"type": "record",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"type": "schemaReference",
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "queryExtractorTransformer"
}
}
}
}
Expand Down Expand Up @@ -16076,8 +16057,7 @@ export const miroirFundamentalJzodSchema = {
"type": "schemaReference",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -16485,8 +16465,7 @@ export const miroirFundamentalJzodSchema = {
"type": "schemaReference",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -16624,8 +16603,7 @@ export const miroirFundamentalJzodSchema = {
"type": "schemaReference",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -16942,8 +16920,7 @@ export const miroirFundamentalJzodSchema = {
"type": "schemaReference",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -17330,8 +17307,7 @@ export const miroirFundamentalJzodSchema = {
"type": "schemaReference",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -17742,7 +17718,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -17882,7 +17858,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -18217,7 +18193,7 @@ export const miroirFundamentalJzodSchema = {
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
"relativePath": "queryExtractorTransformer"
},
"context": {}
},
Expand Down Expand Up @@ -25677,61 +25653,13 @@ export const miroirFundamentalJzodSchema = {
},
"carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer": {
"type": "union",
"discriminator": "queryName",
"definition": [
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorRuntimeTransformer"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformerUnique"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformerCount"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorRuntimeTransformer"
},
"context": {}
},
{
"type": "schemaReference",
Expand Down Expand Up @@ -26571,17 +26499,30 @@ export const miroirFundamentalJzodSchema = {
]
},
"runtimeTransformers": {
"optional": true,
"type": "union",
"optional": true,
"definition": [
{
"type": "schemaReference",
"type": "record",
"optional": true,
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "miroirSelectQueriesRecord"
},
"context": {}
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryExtractorTransformer"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
}
},
{
"type": "schemaReference",
Expand Down
Loading

0 comments on commit 8678b9d

Please sign in to comment.