Skip to content

Commit

Permalink
0.1.0 to go with v1.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesmarets committed Nov 22, 2017
1 parent 232c646 commit 03d2645
Show file tree
Hide file tree
Showing 35 changed files with 925 additions and 61 deletions.
2 changes: 1 addition & 1 deletion jsonSchemaProperties.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"unneededFieldProps": ["collectionName", "name", "users", "indexes", "collectionUsers", "additionalPropertieserties"],
"unneededFieldProps": ["collectionName", "name", "users", "indexes", "collectionUsers", "additionalPropertieserties", "subTypes"],
"removeIfPropsNegative": ["partitionKey", "sortKey"]
}
4 changes: 2 additions & 2 deletions localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"MAIN_MENU___ADD_ATTRIBUTE": "Add Attribute",
"MAIN_MENU___INSERT_FIELD": "Insert Field",
"MAIN_MENU___APPEND_FIELD": "Append Field",
"MAIN_MENU___REVERSE_MONGODB_COLLECTIONS": "Elasticsearch indices...",
"MAIN_MENU___REVERSE_DB_COLLECTIONS": "Elasticsearch indices...",
"TOOLBAR___ADD_BUCKET": "Add index",
"TOOLBAR___ADD_COLLECTION": "Add type",
"TOOLBAR___ADD_VIEW": "Add Filtered Alias",
Expand Down Expand Up @@ -83,7 +83,7 @@
"MODAL_WINDOW___CONTAIN_COLLECTIONS": "types",
"MODAL_WINDOW___CONTAIN_BUCKET": "indices",
"MODAL_WINDOW___CONTAIN_COLLECTION": "type",
"MODAL_WINDOW___MONGODB_CONNECTION_PROCESS": "Elasticsearch Reverse-Engineering Process",
"MODAL_WINDOW___DB_CONNECTION_PROCESS": "Elasticsearch Reverse-Engineering Process",
"PROGRESS_BAR___DATABASE": "Index",
"PROGRESS_BAR___COLLECTION": "Type",
"PROGRESS_BAR___PROCESS": "Process",
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Elasticsearch",
"version": "0.0.1",
"versionDate": "2017-09-13",
"version": "0.1.0",
"versionDate": "2017-11-20",
"author": "hackolade",
"engines": {
"hackolade": "1.9.x",
Expand All @@ -25,7 +25,8 @@
]
},
"features": {
"nestedCollections": true
"nestedCollections": true,
"disableMultipleTypes": true
}
},
"description": "Hackolade plugin for Elasticsearch"
Expand Down
43 changes: 37 additions & 6 deletions properties_pane/container_level/containerLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ making sure that you maintain a proper JSON format.
"propertyName": "Simple text",
"propertyKeyword": "simpletextProp",
"shouldValidate": false,
"propertyType": "text"
"propertyType": "text",
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Text area",
Expand Down Expand Up @@ -42,13 +43,39 @@ making sure that you maintain a proper JSON format.
"propertyKeyword": "numericProp",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number"
"valueType": "number",
"allowNegative": false,
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Checkbox",
"propertyKeyword": "checkboxProp",
"shouldValidate": false,
"propertyType": "checkbox"
},
{
"propertyName": "Group",
"propertyType": "group",
"propertyKeyword": "grpProp",
"shouldValidate": true,
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"shouldValidate": false,
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
}

*/
Expand All @@ -66,7 +93,8 @@ making sure that you maintain a proper JSON format.
"typeName": "Data type",
"typeOptions": ["string"],
"defaultType": "string",
"disabledFieldOption": true
"disabledFieldOption": true,
"sampleGen": "&containerName"
},{
"labelName": "Type",
"propertyName": "Document Type",
Expand All @@ -77,7 +105,8 @@ making sure that you maintain a proper JSON format.
"typeName": "Data type",
"typeOptions": ["string"],
"defaultType": "string",
"disabledFieldOption": true
"disabledFieldOption": true,
"sampleGen": "&entityName"
},{
"labelName": "ID",
"propertyName": "Document ID",
Expand All @@ -91,14 +120,16 @@ making sure that you maintain a proper JSON format.
"number"
],
"defaultType": "number",
"disabledFieldOption": true
"disabledFieldOption": true,
"sampleGen": "&random"
},{
"labelName": "Source",
"propertyName": "source",
"propertyKeyword": "source",
"defaultName": "_source",
"propertyPrimaryKey": false,
"propertyType": "object",
"propertyType": "text",
"valueType": "object",
"typeName": "Data type",
"typeOptions": [
"object"
Expand Down
3 changes: 2 additions & 1 deletion properties_pane/defaultData.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"model": {
"modelName": "New model",
"dbVersion": "",
"dbVendor": "Elasticsearch"
"dbVendor": "Elasticsearch",
"port": 9200
},
"container": {
"name": "New index",
Expand Down
73 changes: 73 additions & 0 deletions properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,79 @@
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.


In order to define custom properties for any object's properties pane, you may copy/paste from the following,
making sure that you maintain a proper JSON format.

{
"propertyName": "Simple text",
"propertyKeyword": "simpletextProp",
"shouldValidate": false,
"propertyType": "text",
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Text area",
"propertyKeyword": "textareaProp",
"propertyValidate": false,
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Dropdown selection",
"propertyKeyword": "dropdownProp",
"shouldValidate": false,
"propertyTooltip": "Select from list of options",
"propertyType": "select",
"options": [
"Option 1",
"Option 2",
"Option 3",
"Option 4"
]
},
{
"propertyName": "Numeric",
"propertyKeyword": "numericProp",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false,
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Checkbox",
"propertyKeyword": "checkboxProp",
"shouldValidate": false,
"propertyType": "checkbox"
},
{
"propertyName": "Group",
"propertyType": "group",
"propertyKeyword": "grpProp",
"shouldValidate": true,
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"shouldValidate": false,
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
}

*/

[
Expand Down
Loading

0 comments on commit 03d2645

Please sign in to comment.