Skip to content

Commit

Permalink
Feature/hck 3428 add configuration to match the new storage model (#3)
Browse files Browse the repository at this point in the history
* localization: fix naming for scopes and collections

* types: add number type

* configuration: add container/entity/field level config for scopes and collections

* bump copyright year

* entity-level-config: add more specific property tooltips

* field-level-config: fix key for number structure
  • Loading branch information
serhii-filonenko authored Jan 25, 2024
1 parent 27ecef3 commit 52220cc
Show file tree
Hide file tree
Showing 9 changed files with 508 additions and 156 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2016-2022 IntegrIT SA/NV dba Hackolade
Copyright 2016-2024 IntegrIT SA/NV dba Hackolade

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
9 changes: 2 additions & 7 deletions central_pane/dtdAbbreviation.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
*
*/
{
"map": "{...}",
"list": "[...]",
"string": "{ABC}",
"number": "{123}",
"bool": "{0/1}",
"bytes": "{BYTES}",
"null": "{null}"
"number": { "abbr": "<num>" },
"object": { "abbr": "<obj>" }
}
134 changes: 73 additions & 61 deletions localization/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"WELCOME_PAGE___REVERSE_ENGINEER_DESCRIPTION": "Create a Hackolade model from an existing DB instance",
"WELCOME_PAGE___REVERSE_ENGINEER_DESCRIPTION": "Create a Hackolade Studio model from an existing target instance",
"MAIN_MENU___ADD_BUCKET": "Add Scope",
"MAIN_MENU___ADD_COLLECTION": "Add Collection",
"MAIN_MENU___ADD_VIEW": "Add View",
Expand All @@ -19,15 +19,39 @@
"TOOLBAR___SHOW_FOREIGN_MASTER": "Toggle foreign master",
"TOOLBAR___SHOW_MODEL_VIEW": "Toggle model views",
"TOOLBAR___DISTRIBUTE_ORTHOGONALLY": "Distribute collections orthogonally",
"OBJECT___BROWSER_BUCKET": "Scope",
"OBJECT___BROWSER_NOT_IN_BUCKET": "Undefined scope",
"OBJECT___BROWSER_BUCKET": "Scopes",
"OBJECT___BROWSER_NOT_IN_BUCKET": "Undefined Scope",
"OBJECT___BROWSER_COLLECTION": "Collections",
"OBJECT___BROWSER_VIEWS": "Views",
"OBJECT___BROWSER_DEFINITIONS": "Definitions",
"OBJECT___BROWSER_FIELDS": "Fields",
"OBJECT___BROWSER_NESTED_COLLECTIONS": "Nested collections",
"OBJECT___BROWSER_EXTERNAL_DEFINITIONS": "External Definitions",
"PROPERTIES_PANE___BUCKET_NAME": "Scope name",
"PROPERTIES_PANE___BUCKET_KEY": "Key",
"PROPERTIES_PANE___BUCKET_KEY_NAME": "name",
"PROPERTIES_PANE___BUCKET_KEY_TYPE": "type",
"PROPERTIES_PANE___BUCKET_DOC_KIND": "Collection",
"PROPERTIES_PANE___BUCKET_TYPE": "Scope type",
"PROPERTIES_PANE___BUCKET_MEMORY_SIZE": "Memory size",
"PROPERTIES_PANE___BUCKET_RAM_QUOTA": "Per node RAM quota",
"PROPERTIES_PANE___BUCKET_ACCESS_CONTROL": "Access Control",
"PROPERTIES_PANE___BUCKET_PROTOCOL_PORT": "Protocol Port",
"PROPERTIES_PANE___BUCKET_FLUSH": "FLUSH",
"PROPERTIES_PANE___BUCKET_FLUSH_ENABLE": "Enable",
"PROPERTIES_PANE___VIEW_NAME": "View name",
"PROPERTIES_PANE___COLLECTION_NAME": "Collection",
"PROPERTIES_PANE___BUCKET_CASH_METADATA": "Cache Metadata",
"PROPERTIES_PANE___BUCKET_CONFLICT_RESOLUTION": "Conflict resolution",
"PROPERTIES_PANE___BUCKET_REPLICAS": "Replicas",
"PROPERTIES_PANE___BUCKET_REPLICAS_ENABLE": "Enable",
"PROPERTIES_PANE___BUCKET_REPLICAS_NUMBER": "Number",
"PROPERTIES_PANE___BUCKET_REPLICAS_VIEW_INDEX": "View index replicas",
"PROPERTIES_PANE___BUCKET_DISK_OPTIMISATION": "Disk I/O optimization",
"PROPERTIES_PANE___BUCKET_IO_PRIORITY": "Disk I/O priority",
"PROPERTIES_PANE___BUCKET_AUTO_COMPACTION": "Auto-Compaction",
"PROPERTIES_PANE___BUCKET_OVERRIDE_DEFAULT": "Override default",
"PROPERTIES_PANE___PRIMARY_KEY": "Primary key",
"PROPERTIES_PANE___COLLECTION_NAME": "Collection name",
"PROPERTIES_PANE___FOREIGN_COLLECTION": "Foreign collection",
"PROPERTIES_PANE___FOREIGN_FIELD": "Foreign field",
"PROPERTIES_PANE___PARENT_COLLECTION": "Parent collection",
Expand All @@ -36,55 +60,60 @@
"PROPERTIES_PANE___CHILD_COLLECTION": "Child collection",
"PROPERTIES_PANE___CHILD_FIELD": "Child field",
"PROPERTIES_PANE___CHILD_CARDINALITY": "Child cardinality",
"PROPERTIES_PANE___PRIMARY_KEY": "Primary key",
"PROPERTIES_PANE___COLLECTION_BUCKET": "Scope",
"PROPERTIES_PANE___VIEW_ON": "View on",
"PROPERTIES_PANE___PIPELINE": "Pipeline",
"PROPERTIES_PANE___COLLATION": "Collation",
"PROPERTIES_PANE___LOCALE": "Locale",
"PROPERTIES_PANE___VARIANT": "Variant",
"PROPERTIES_PANE___STRENGTH": "Strength",
"PROPERTIES_PANE___CASE_LEVEL": "Case level",
"PROPERTIES_PANE___CASE_FIRST": "Case first",
"PROPERTIES_PANE___NUMERIC_ORDERING": "Numeric ordering",
"PROPERTIES_PANE___ALTERNATE": "Alternate",
"PROPERTIES_PANE___MAX_VARIABLE": "Max variable",
"PROPERTIES_PANE___BACKWARDS": "Backwards",
"PROPERTIES_PANE___NORMALIZATION": "Normalization",
"CENTRAL_PANE___TAB_MONGODB_VIEW_SCRIPT": "Create View Script",
"CONTEXT_MENU___ADD_BUCKET": "Add Scope",
"CONTEXT_MENU___ADD_COLLECTION": "Add Collection",
"CONTEXT_MENU___ADD_VIEW": "Add View",
"CONTEXT_MENU___ALIGN_COLLECTIONS": "Align Collections",
"PROPERTIES_PANE___KEYS": "Keys",
"PROPERTIES_PANE___ARRAY_EXPRESSION": "Array expression",
"PROPERTIES_PANE___METADATA_EXPRESSION": "Metadata expression",
"PROPERTIES_PANE___PARTITION_BY_HASH": "Partition by hash",
"PROPERTIES_PANE___PARTITION_BY_HASH_KEYS": "Partition by hash keys",
"PROPERTIES_PANE___PARTITION_BY_HASH_CLAUSE": "Partition by hash clause",
"PROPERTIES_PANE___WHERE_CLAUSE": "WHERE clause",
"PROPERTIES_PANE___USING_GSI": "Using GSI",
"PROPERTIES_PANE___NODE_NAME": "Node name",
"PROPERTIES_PANE___NODES": "Nodes",
"PROPERTIES_PANE___DEFER_BUILD": "Defer build",
"PROPERTIES_PANE___NUMBER_OF_REPLICAS": "Nbr of replicas",
"PROPERTIES_PANE___WITH_OPTIONS": "WITH options",
"CONTEXT_MENU___ADD_BUCKET": "Add scope",
"CONTEXT_MENU___ADD_COLLECTION": "Add collection",
"CONTEXT_MENU___ALIGN_COLLECTIONS": "Align collections",
"CONTEXT_MENU___ADD_ATTRIBUTE": "Add Attribute",
"CONTEXT_MENU___INSERT_ATTRIBUTE": "Insert Attribute",
"CONTEXT_MENU___APPEND_ATTRIBUTE": "Append Attribute",
"CONTEXT_MENU___OPEN_COLLECTION_IN_NEW_TAB": "Open collection in new tab",
"CONTEXT_MENU___OPEN_COLLECTION_IN_NEW_TAB": "Open Collection In New Tab",
"CONTEXT_MENU___FIELD": "Field",
"CONTEXT_MENU___PATTERN_FIELD": "Pattern Field",
"CONTEXT_MENU___ARRAY_ITEM": "Array Item",
"MODAL_WINDOW___COLLECTION": "Collection:",
"CONTEXT_MENU___CONVERT_TO_PATTERN_FIELD": "Convert to Pattern Field",
"CONTEXT_MENU___CONVERT_PATTERN_TO_REGULAR_FIELD": "Convert to Regular Field",
"MODAL_WINDOW___PRINT_DIALOG_LABEL_COLLECTION": "Collection",
"MODAL_WINDOW___EMPTY_MODEL_MESSAGE": "The Model does not contain any collections.",
"MODAL_WINDOW___FIELD_INFERENCE": "Field Inference",
"MODAL_WINDOW___KEEP_FIELD_ORDER": "Keep field order",
"MODAL_WINDOW___CANNOT_CONNECT_TO_DB": "Cannot connect to Couchbase",
"MODAL_WINDOW___CANNOT_CONNECT_TO_DB": "Cannot connect to Couchbase (check your host, port, and if your IP is whitelisted)",
"MODAL_WINDOW___SUCCESSFULLY_CONNECT_TO_DB": "Successfully connected to Couchbase",
"MODAL_WINDOW___UNABLE_CONNECT_TO_DB": "Unable to connect to Couchbase",
"MODAL_WINDOW___DB_CONNECTION_PROCESS": "Couchbase Reverse-Engineering Process",
"MODAL_WINDOW___DB_CONNECTIONS_LIST_TITLE": "Couchbase Connections",
"MODAL_WINDOW___DB_ENTITIES_SELECTION_TITLE": "collection selection",
"MODAL_WINDOW___RECORDS_MAX": "documents max",
"MODAL_WINDOW___SUBDOCUMENT_IN_CHILD": "Sub-document in child",
"MODAL_WINDOW___ARRAY_IN_PARENT": "Array in parent",
"MODAL_WINDOW___INCLUDE_EMPTY_COLLECTION": "Include empty collections",
"MODAL_WINDOW___CREATE_COLLECTION": "Create collection",
"MODAL_WINDOW___CREATE_BUCKET": "Create scope",
"MODAL_WINDOW___CREATE_COLLECTION": "Create Couchbase Collection",
"MODAL_WINDOW___INCLUDE_EMPTY_COLLECTION": "Include empty documents",
"MODAL_WINDOW___CREATE_BUCKET": "Create Couchbase Scope",
"MODAL_WINDOW___ALL_COLLECTIONS": "and all nested collections",
"MODAL_WINDOW___CONNENTION_ERROR": "The Couchbase instance you are connected to does not contain any collections.",
"MODAL_WINDOW___CONTAIN_BUCKETS": "scopes",
"MODAL_WINDOW___COLLECTION_NAME_ERROR": "Collection name is empty or is a reserved word",
"MODAL_WINDOW___COLLECTION_MOVING_ERROR": "Error moving Collection",
"MODAL_WINDOW___COLLECTION_MOVING_ERROR_CONTENT": "The target scope has different Key or Collection field than current",
"MODAL_WINDOW___CONNENTION_ERROR": "The Couchbase instance you are connected to does not contain any Scopes.",
"MODAL_WINDOW___CONTAIN_COLLECTIONS": "collections",
"MODAL_WINDOW___CONTAIN_BUCKET": "scope",
"MODAL_WINDOW___CONTAIN_BUCKETS": "scopes",
"MODAL_WINDOW___CONTAIN_VIEWS": "views",
"MODAL_WINDOW___CONTAIN_COLLECTION": "collection",
"MODAL_WINDOW___DB_CONNECTION_PROCESS": "Couchbase Reverse-Engineering Process",
"MODAL_WINDOW___CONTAIN_BUCKET": "scope",
"MODAL_WINDOW___CONTAIN_VIEW": "view",
"MODAL_WINDOW___COLLECTION": "Collection",
"PROGRESS_BAR___DATABASE": "Scope",
"PROGRESS_BAR___COLLECTION": "Collection",
"PROGRESS_BAR___PROCESS": "Process",
Expand All @@ -102,41 +131,24 @@
"DOCUMENTATION___FIELDS": "Fields",
"DOCUMENTATION___CHILD_FIELDS": "Child field(s)",
"DOCUMENTATION___PHYSICAL_MODEL": "Couchbase Physical Model",
"DOCUMENTATION___VIEWS": "Views",
"DOCUMENTATION___VIEW": "View",
"TOOLTIPS___FOREIGN_COLLECTION": "foreign collection",
"TOOLTIPS___COLLECTION_BUCKET": "Scope",
"TOOLTIPS___COLLECTION_BUCKET": "scope",
"TOOLTIPS___FOREIGN_FIELD": "foreign field",
"TOOLTIPS___PARENT_COLLECTION": "parent collection",
"TOOLTIPS___PARENT_FIELD": "parent field",
"TOOLTIPS___CHILD_COLLECTION": "child collection",
"TOOLTIPS___CHILD_FIELD": "child field",
"TOOLTIPS___VIEW_ON": "view on",
"TOOLTIPS___PIPELINE": "pipeline",
"TOOLTIPS___COLLATION": "collation",
"TOOLTIPS___LOCALE": "locale",
"TOOLTIPS___VARIANT": "variant",
"TOOLTIPS___STRENGTH": "strength",
"TOOLTIPS___CASE_LEVEL": "case level",
"TOOLTIPS___CASE_FIRST": "case first",
"TOOLTIPS___NUMERIC_ORDERING": "numeric ordering",
"TOOLTIPS___ALTERNATE": "alternate",
"TOOLTIPS___MAX_VARIABLE": "max variable",
"TOOLTIPS___BACKWARDS": "Backwards",
"TOOLTIPS___NORMALIZATION": "Normalization",
"NEW___MODEL_NAME": "New model",
"NEW___BUCKET_NAME": "New scope",
"NEW___COLLECTION_NAME": "New collection",
"TOOLTIPS___CHILD_COLLECTION_MESSAGE": "No collections to add",
"NEW___MODEL_NAME": "New Model",
"NEW___COLLECTION_NAME": "New Collection",
"NEW___BUCKET_NAME": "New Scope",
"NEW___FIELD_NAME": "New Field",
"NEW___PATTERN_FIELD_NAME": "^New Pattern Field$",
"NEW___PATTERN_FIELD_NAME": "^[a-zA-Z0-9_.-]+$",
"COLLECTION_SCHEMA_DEFINITION_NAME": "Collection definitions",
"COLLECTION_SCHEMA_DEFINITION_TYPE": "document",
"MONGODB_SCRIPT_WARNING_MESSAGE": "This view is not associated to a collection (viewOn property).",
"TYPE": {},
"MODAL_WINDOW___SELECTION_DOCUMENT_KIND_REVERSE_ENGINEERING_TITLE": "Select collection field",
"MODAL_WINDOW___SELECTION_DOCUMENT_KIND_REVERSE_ENGINEERING": "No collection separation",
"CONTEXT_MENU___CONVERT_TO_PATTERN_FIELD": "Convert to Pattern Field",
"CONTEXT_MENU___CONVERT_PATTERN_TO_REGULAR_FIELD": "Convert to Regular Field",
"CENTRAL_PANE___FE_SCRIPT": "MongoDB script",
"MAIN_MENU___FORWARD_DB_BUCKETS": "MongoDB script"
"PLUGIN_MANAGER___CUSTOM_PROPERTIES_DESCRIPTION": "Custom properties for Couchbase",

"TYPE": {
"document": "object"
}
}
Loading

0 comments on commit 52220cc

Please sign in to comment.