Skip to content

Commit

Permalink
v0.1.0 first release
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesmarets committed Dec 19, 2017
1 parent de363a7 commit eec2be7
Show file tree
Hide file tree
Showing 27 changed files with 1,391 additions and 70 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Cassandra
Hackolade plugin for Cassandra Datastax
Hackolade plugin for Cassandra DataStax

Not ready for production!!

Expand Down
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", "compositeClusteringKey", "compositePartitionKey", "SecIDxs", "compositeKey"],
"removeIfPropsNegative": ["partitionKey", "sortKey"]
}
8 changes: 6 additions & 2 deletions localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"OBJECT___BROWSER_NOT_IN_BUCKET": "Undefined Keyspace",
"OBJECT___BROWSER_COLLECTION": "Tables",
"OBJECT___BROWSER_VIEWS": "Views",
"OBJECT___BROWSER_DEFINITIONS": "Definitions",
"OBJECT___BROWSER_DEFINITIONS": "User-Defined Types",
"OBJECT___BROWSER_FIELDS": "Columns",
"PROPERTIES_PANE___BUCKET_NAME": "Keyspace name",
"PROPERTIES_PANE___VIEW_NAME": "View name",
Expand Down Expand Up @@ -131,5 +131,9 @@
"COLLECTION_SCHEMA_DEFINITION_NAME": "Table definitions",
"COLLECTION_SCHEMA_DEFINITION_TYPE": "document",
"MONGODB_SCRIPT_WARNING_MESSAGE": "This view is not associated to a type (viewOn property).",
"TYPE": {}
"TYPE": {},
"CENTRAL_PANE___TAB_MODEL_DEFINITIONS": "User-Defined Types",
"CONTEXT_MENU___ADD_MODEL_REFERENCE": "User-Defined Type",
"CONTEXT_MENU___GO_TO_DEFINITION": "Go to User-Defined Type",
"DOCUMENTATION___DB_DEFINITIONS": "User-Defined Types"
}
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{
"name": "Cassandra",
"version": "0.0.1",
"versionDate": "2017-09-13",
"version": "0.1.0",
"versionDate": "2017-12-19",
"author": "hackolade",
"engines": {
"hackolade": "1.9.x",
"hackolade": "1.10.x",
"hackoladePlugin": "1.0.0"
},
"contributes": {
"target": {
"applicationTarget": "CASSANDRA",
"title": "Cassandra Datastax",
"versions": [
"4.8.x",
"5.0.x",
"5.1.x"
"2.0.x",
"2.1.x",
"3.0.x",
"3.1.x",
"DSE 4.8.x",
"DSE 5.0.x",
"DSE 5.1.x"
]
},
"features": {
"nestedCollections": false
"nestedCollections": false,
"disablePatternField": true
}
},
"description": "Hackolade plugin for Cassandra Datastax"
Expand Down
34 changes: 33 additions & 1 deletion properties_pane/container_level/containerLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,39 @@ making sure that you maintain a proper JSON format.
"shouldValidate": true,
"propertyTooltip": "description",
"propertyType": "numeric",
"valueType": "number"
"valueType": "number",
"dependency": {
"key": "replStrategy",
"value": "SimpleStrategy"
}
},
{
"propertyName": "Data Centers",
"propertyType": "group",
"propertyKeyword": "dataCenters",
"shouldValidate": true,
"propertyTooltip": "",
"structure": [
{
"propertyName": "Data center name",
"propertyKeyword": "dataCenterName",
"shouldValidate": false,
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Replication Factor",
"propertyKeyword": "replFactorValue",
"shouldValidate": true,
"propertyTooltip": "",
"propertyType": "numeric",
"valueType": "number"
}
],
"dependency": {
"key": "replStrategy",
"value": "NetworkTopologyStrategy"
}
},
{
"propertyName": "Durable Writes",
Expand Down
9 changes: 5 additions & 4 deletions properties_pane/defaultData.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"model": {
"modelName": "New model",
"dbVersion": "5.1.x",
"dbVendor": "CASSANDRA"
"dbVersion": "3.1.x",
"dbVendor": "Cassandra"
},
"container": {
"name": "New keyspace",
"indexes": []
"indexes": [],
"replStrategy": "SimpleStrategy"
},
"collection": {
"collectionName": "New table",
Expand All @@ -20,7 +21,7 @@
"name": "^New Pattern Column$"
},
"multipleField": {
"primaryKey": true
"primaryKey": false
},
"subschema": {},
"arrayItem": {},
Expand Down
219 changes: 216 additions & 3 deletions properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,120 @@
* 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": "Properties 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
}
]
},
{
"propertyName": "Field List",
"propertyKeyword": "keyList",
"shouldValidate": false,
"propertyType": "fieldList",
"template": "orderedList"
},
{
"propertyName": "List with attribute",
"propertyKeyword": "keyListOrder",
"shouldValidate": false,
"propertyType": "fieldList",
"template": "orderedList",
"attributeList": [
"ascending",
"descending"
]
}

*/

[
{
"lowerTab": "Details",
"structure": [
{
"propertyName": "Partition key",
"propertyKeyword": "compositePartitionKey",
"shouldValidate": false,
"propertyType": "primaryKeySetter",
"abbr": "PK"
},
{
"propertyName": "Clustering key",
"propertyKeyword": "compositeClusteringKey",
"shouldValidate": false,
"propertyType": "primaryKeySetter",
"abbr": "CK",
"attributeList": [
{ "name": "ascending", "abbr": "\u2191" },
{ "name": "descending", "abbr": "\u2193" }
]
},
{
"propertyName": "Comments",
"propertyKeyword": "comments",
Expand All @@ -19,9 +127,103 @@
"propertyType": "details",
"template": "textarea",
"valueType": "string"
},
{
"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": "Properties Group",
"propertyType": "group",
"propertyKeyword": "grpProp",
"shouldValidate": true,
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"shouldValidate": false,
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Description",
"propertyKeyword": "indexDescription",
"shouldValidate": false,
"propertyTooltip": "description",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "text",
"valueType": "number",
"allowNegative": false,
"sampleGen": "&containerName|&entityName|&random|<value>"
}
]
},
{
"propertyName": "Field List",
"propertyKeyword": "keyList",
"shouldValidate": false,
"propertyType": "tagInput",
"template": "collectiontree"
},
{
"propertyName": "Field List w/ dropdown",
"propertyKeyword": "keyListOrder",
"shouldValidate": false,
"propertyType": "tagInput",
"template": "collectiontree",
"attributeList": [
"ascending",
"descending"
]
}
]
},
],
"columnsRatio": [3.7, 5]
},
{
"lowerTab": "Secondary Indexes",
"structure": [{
Expand All @@ -38,6 +240,17 @@
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Key",
"propertyKeyword": "key",
"shouldValidate": false,
"propertyType": "fieldList",
"template": "orderedList",
"attributeList": [
"ascending",
"descending"
]
},
{
"propertyName": "Id",
"propertyKeyword": "SecIdxID",
Expand Down Expand Up @@ -72,4 +285,4 @@
]
}]
}
]
]
Loading

0 comments on commit eec2be7

Please sign in to comment.