|
|
@ -213,6 +213,7 @@ export class ColumnsService { |
|
|
|
colBody.parsed_tree = await validateFormulaAndExtractTreeWithType({ |
|
|
|
colBody.parsed_tree = await validateFormulaAndExtractTreeWithType({ |
|
|
|
formula: colBody.formula_raw || colBody.formula, |
|
|
|
formula: colBody.formula_raw || colBody.formula, |
|
|
|
columns: table.columns, |
|
|
|
columns: table.columns, |
|
|
|
|
|
|
|
column, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
getMeta: async (modelId) => { |
|
|
|
getMeta: async (modelId) => { |
|
|
|
const model = await Model.get(modelId); |
|
|
|
const model = await Model.get(modelId); |
|
|
@ -947,6 +948,7 @@ export class ColumnsService { |
|
|
|
parsed_tree: await validateFormulaAndExtractTreeWithType({ |
|
|
|
parsed_tree: await validateFormulaAndExtractTreeWithType({ |
|
|
|
formula: new_formula_raw, |
|
|
|
formula: new_formula_raw, |
|
|
|
columns: table.columns, |
|
|
|
columns: table.columns, |
|
|
|
|
|
|
|
column, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
getMeta: async (modelId) => { |
|
|
|
getMeta: async (modelId) => { |
|
|
|
const model = await Model.get(modelId); |
|
|
|
const model = await Model.get(modelId); |
|
|
@ -1018,6 +1020,7 @@ export class ColumnsService { |
|
|
|
parsed_tree: await validateFormulaAndExtractTreeWithType({ |
|
|
|
parsed_tree: await validateFormulaAndExtractTreeWithType({ |
|
|
|
formula: new_formula_raw, |
|
|
|
formula: new_formula_raw, |
|
|
|
columns: table.columns, |
|
|
|
columns: table.columns, |
|
|
|
|
|
|
|
column, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
getMeta: async (modelId) => { |
|
|
|
getMeta: async (modelId) => { |
|
|
|
const model = await Model.get(modelId); |
|
|
|
const model = await Model.get(modelId); |
|
|
@ -1236,6 +1239,10 @@ export class ColumnsService { |
|
|
|
formula: |
|
|
|
formula: |
|
|
|
colBody.formula_raw || |
|
|
|
colBody.formula_raw || |
|
|
|
colBody.formula?.replaceAll('{{', '{').replaceAll('}}', '}'), |
|
|
|
colBody.formula?.replaceAll('{{', '{').replaceAll('}}', '}'), |
|
|
|
|
|
|
|
column:{ |
|
|
|
|
|
|
|
...colBody, |
|
|
|
|
|
|
|
colOptions: colBody, |
|
|
|
|
|
|
|
}, |
|
|
|
columns: table.columns, |
|
|
|
columns: table.columns, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
clientOrSqlUi: source.type, |
|
|
|
getMeta: async (modelId) => { |
|
|
|
getMeta: async (modelId) => { |
|
|
|