diff --git a/forward_engineering/helpers/getIndexPolicyScript.js b/forward_engineering/helpers/getIndexPolicyScript.js index 0680eeb..80c7a03 100644 --- a/forward_engineering/helpers/getIndexPolicyScript.js +++ b/forward_engineering/helpers/getIndexPolicyScript.js @@ -66,7 +66,6 @@ const getIncludedPath = (_) => (includedPaths = []) => { return includedPaths.map(item => { return _.flow( add('path', getPath(item.indexIncludedPath)), - add('indexes', (item.inclIndexes || []).map(getIndex(_))), )({}); }).filter(item => !_.isEmpty(item)); }; @@ -75,7 +74,6 @@ const getExcludedPath = (_) => (excludedPaths = []) => { return excludedPaths.map(item => { return _.flow( add('path', getPath(item.indexExcludedPath)), - add('indexes', (item.exclIndexes || []).map(getIndex(_))), )({}); }).filter(item => !_.isEmpty(item)); }; diff --git a/properties_pane/container_level/containerLevelConfig.json b/properties_pane/container_level/containerLevelConfig.json index a6be8df..4bf877c 100644 --- a/properties_pane/container_level/containerLevelConfig.json +++ b/properties_pane/container_level/containerLevelConfig.json @@ -312,48 +312,6 @@ making sure that you maintain a proper JSON format. } } }, - { - "propertyName": "Indexes", - "propertyType": "group", - "propertyKeyword": "inclIndexes", - "shouldValidate": false, - "propertyTooltip": "", - "structure": [ - { - "propertyName": "Kind", - "propertyKeyword": "kind", - "shouldValidate": false, - "propertyTooltip": "Index kind: Hash (equality queries), Range (equality, range or Order By queries), or Spatial (spatial queries)", - "propertyType": "select", - "options": [ - "Hash", - "Range" - ] - }, - { - "propertyName": "Data type", - "propertyKeyword": "dataType", - "shouldValidate": false, - "propertyTooltip": "Data type: String, Number, Point, Polygon, or LineString (can contain only one entry per data type per path)", - "propertyType": "select", - "options": [ - "String", - "Number" - ] - }, - { - "propertyName": "Precision", - "propertyKeyword": "indexPrecision", - "shouldValidate": false, - "propertyTooltip": "1-8 or -1 (Maximum precision) for numbers, 1-100 (Maximum precision) for string", - "propertyType": "numeric", - "valueType": "number", - "allowNegative": true, - "minValue": -1, - "maxValue": 100 - } - ] - }, { "propertyName": "Description", "propertyKeyword": "indexDescription", @@ -407,48 +365,6 @@ making sure that you maintain a proper JSON format. } } }, - { - "propertyName": "Indexes", - "propertyType": "group", - "propertyKeyword": "exclIndexes", - "shouldValidate": false, - "propertyTooltip": "", - "structure": [ - { - "propertyName": "Kind", - "propertyKeyword": "kind", - "shouldValidate": false, - "propertyTooltip": "Index kind: Hash (equality queries), Range (equality, range or Order By queries), or Spatial (spatial queries)", - "propertyType": "select", - "options": [ - "Hash", - "Range" - ] - }, - { - "propertyName": "Data type", - "propertyKeyword": "dataType", - "shouldValidate": false, - "propertyTooltip": "Data type: String, Number, Point, Polygon, or LineString (can contain only one entry per data type per path)", - "propertyType": "select", - "options": [ - "String", - "Number" - ] - }, - { - "propertyName": "Precision", - "propertyKeyword": "indexPrecision", - "shouldValidate": false, - "propertyTooltip": "1-8 or -1 (Maximum precision) for numbers, 1-100 (Maximum precision) for string", - "propertyType": "text", - "valueType": "number", - "allowNegative": true, - "minValue": -1, - "maxValue": 100 - } - ] - }, { "propertyName": "Description", "propertyKeyword": "indexDescription", diff --git a/reverse_engineering/api.js b/reverse_engineering/api.js index 7af78d3..d0bee1b 100644 --- a/reverse_engineering/api.js +++ b/reverse_engineering/api.js @@ -438,14 +438,6 @@ function capitalizeFirstLetter(str) { return str.charAt(0).toUpperCase() + str.slice(1); } -function getRangeIndex(item) { - return { - kind: item.kind.toLowerCase() === 'hash' ? 'Hash' : 'Range', - dataType: capitalizeFirstLetter(item.dataType), - indexPrecision: !isNaN(Number(item.precision)) ? Number(item.precision) : -1, - }; -} - function getIndexes(indexingPolicy){ return { indexingMode: capitalizeFirstLetter(indexingPolicy.indexingMode || ''), @@ -454,14 +446,12 @@ function getIndexes(indexingPolicy){ return { name: `Included (${i + 1})`, indexIncludedPath: [getIndexPath(index.path)], - inclIndexes: (index.indexes || []).map(getRangeIndex), }; }), excludedPaths: indexingPolicy.excludedPaths.map((index, i) => { return { name: `Excluded (${i + 1})`, indexExcludedPath: [getIndexPath(index.path)], - exclIndexes: (index.indexes || []).map(getRangeIndex), }; }), spatialIndexes: (indexingPolicy.spatialIndexes || []).map((index, i) => {