2022-05-18 12:22:50 +05:30
/ *
2022-12-27 12:37:58 +05:30
* Copyright 2022 Collate .
2022-05-18 12:22:50 +05:30
* Licensed under the Apache License , Version 2.0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
* http : //www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an "AS IS" BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
2024-03-07 17:06:33 +05:30
import { EntityType } from './Entity.interface' ;
2024-01-24 20:47:05 +05:30
import { GlobalSettingOptions } from './settings.constant' ;
2024-01-24 14:27:52 +05:30
2022-10-08 00:07:24 +05:30
export const uuid = ( ) = > Cypress . _ . random ( 0 , 1 e6 ) ;
2022-09-19 18:43:39 +05:30
const id = uuid ( ) ;
2022-10-19 20:55:31 +05:30
export const BASE_URL = location . origin ;
2023-01-15 18:24:10 +05:30
export const LOGIN_ERROR_MESSAGE =
'You have entered an invalid username or password.' ;
2022-10-19 20:55:31 +05:30
2023-11-27 15:31:52 +05:30
export const DATA_ASSETS = {
2022-05-18 12:22:50 +05:30
tables : 'tables' ,
topics : 'topics' ,
dashboards : 'dashboards' ,
pipelines : 'pipelines' ,
2023-10-19 14:09:25 +05:30
mlmodels : 'mlmodels' ,
2023-03-24 09:23:34 +05:30
service : 'service' ,
user : 'user' ,
teams : 'teams' ,
2023-03-21 19:33:44 +05:30
testSuite : 'test-suite' ,
containers : 'containers' ,
glossaryTerms : 'glossary-terms' ,
2023-07-23 11:28:02 +05:30
tags : 'tags' ,
2023-09-25 21:53:03 +05:30
storedProcedures : 'storedProcedures' ,
dataModel : 'dashboardDataModel' ,
2023-10-19 14:09:25 +05:30
searchIndexes : 'searchIndexes' ,
} ;
export const EXPLORE_PAGE_TABS = {
mlmodels : 'ml models' ,
storedProcedures : 'stored procedures' ,
dataProducts : 'data products' ,
2024-01-08 15:23:39 +05:30
dataModel : 'dashboard data models' ,
2023-10-19 14:09:25 +05:30
searchIndexes : 'search indexes' ,
2022-10-08 00:07:24 +05:30
} ;
export const SEARCH_INDEX = {
tables : 'table_search_index' ,
topics : 'topic_search_index' ,
dashboards : 'dashboard_search_index' ,
pipelines : 'pipeline_search_index' ,
mlmodels : 'mlmodel_search_index' ,
2023-10-02 16:26:01 +05:30
containers : 'container_search_index' ,
2024-01-08 15:23:39 +05:30
searchIndexes : 'search_entity_search_index' ,
2022-05-18 12:22:50 +05:30
} ;
2022-10-13 15:27:06 +05:30
export const DATA_QUALITY_SAMPLE_DATA_TABLE = {
term : 'dim_address' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2022-10-13 15:27:06 +05:30
serviceName : 'sample_data' ,
testCaseName : 'column_value_max_to_be_between' ,
2023-07-17 16:57:40 +05:30
sqlTestCaseName : 'my_sql_test_case_cypress' ,
2023-04-24 18:42:40 +02:00
sqlTestCase : 'Custom SQL Query' ,
2023-01-15 18:24:10 +05:30
sqlQuery : 'Select * from dim_address' ,
2022-10-13 15:27:06 +05:30
} ;
2023-12-20 10:57:59 +05:30
export const COLUMN_NAME_FOR_APPLY_GLOSSARY_TERM = 'customer' ;
2022-05-22 10:36:43 +05:30
export const SEARCH_ENTITY_TABLE = {
2022-09-29 02:49:03 +05:30
table_1 : {
term : 'raw_customer' ,
2022-12-02 20:54:25 +05:30
displayName : 'raw_customer' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_data' ,
2023-07-31 11:23:31 +05:30
entityType : 'Table' ,
2022-09-29 02:49:03 +05:30
} ,
table_2 : {
term : 'fact_session' ,
2023-03-14 10:33:51 +05:30
displayName : 'fact_session' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_data' ,
2023-03-13 22:24:35 +05:30
schemaName : 'shopify' ,
2023-07-31 11:23:31 +05:30
entityType : 'Table' ,
2022-09-29 02:49:03 +05:30
} ,
2022-05-22 10:36:43 +05:30
table_3 : {
term : 'raw_product_catalog' ,
2023-03-14 10:33:51 +05:30
displayName : 'raw_product_catalog' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2023-03-14 10:33:51 +05:30
serviceName : 'sample_data' ,
2023-03-22 16:16:08 +05:30
schemaName : 'shopify' ,
2023-07-31 11:23:31 +05:30
entityType : 'Table' ,
2023-03-14 10:33:51 +05:30
} ,
table_4 : {
term : 'dim_address' ,
displayName : 'dim_address' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_data' ,
2023-07-31 11:23:31 +05:30
entityType : 'Table' ,
2022-05-22 10:36:43 +05:30
} ,
2023-08-10 11:33:08 +05:30
table_5 : {
term : 'dim.api/client' ,
displayName : 'dim.api/client' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2023-08-10 11:33:08 +05:30
serviceName : 'sample_data' ,
entityType : 'Table' ,
} ,
2022-05-22 10:36:43 +05:30
} ;
export const SEARCH_ENTITY_TOPIC = {
topic_1 : {
term : 'shop_products' ,
2022-12-02 20:54:25 +05:30
displayName : 'shop_products' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Topic ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_kafka' ,
2023-07-31 11:23:31 +05:30
entityType : 'Topic' ,
2022-09-29 02:49:03 +05:30
} ,
topic_2 : {
term : 'orders' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Topic ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_kafka' ,
2023-07-31 11:23:31 +05:30
entityType : 'Topic' ,
2022-05-18 23:20:41 +05:30
} ,
2022-05-22 10:36:43 +05:30
} ;
export const SEARCH_ENTITY_DASHBOARD = {
dashboard_1 : {
2022-06-13 22:43:22 +05:30
term : 'Slack Dashboard' ,
2022-12-02 20:54:25 +05:30
displayName : 'Slack Dashboard' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Dashboard ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_superset' ,
2023-07-31 11:23:31 +05:30
entityType : 'Dashboard' ,
2022-05-18 23:20:41 +05:30
} ,
2022-05-22 10:36:43 +05:30
dashboard_2 : {
2022-05-18 23:20:41 +05:30
term : 'Unicode Test' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Dashboard ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_superset' ,
2023-07-31 11:23:31 +05:30
entityType : 'Dashboard' ,
2022-05-18 23:20:41 +05:30
} ,
2022-05-22 10:36:43 +05:30
} ;
2022-11-16 22:15:30 +05:30
2022-05-22 10:36:43 +05:30
export const SEARCH_ENTITY_PIPELINE = {
2022-07-05 18:03:08 +05:30
pipeline_1 : {
2022-09-29 15:21:33 +05:30
term : 'dim_product_etl' ,
2022-11-17 19:25:31 +05:30
displayName : 'dim_product etl' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Pipeline ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_airflow' ,
2023-07-31 11:23:31 +05:30
entityType : 'Pipeline' ,
2022-07-05 18:03:08 +05:30
} ,
2022-05-22 10:36:43 +05:30
pipeline_2 : {
2023-07-31 11:23:31 +05:30
term : 'dim_user_etl' ,
displayName : 'dim_user etl' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Pipeline ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_airflow' ,
2023-07-31 11:23:31 +05:30
entityType : 'Pipeline' ,
2022-05-21 03:03:55 +05:30
} ,
2022-05-18 23:20:41 +05:30
} ;
2022-10-06 18:43:04 +05:30
export const SEARCH_ENTITY_MLMODEL = {
mlmodel_1 : {
term : 'forecast_sales' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.MlModel ,
2022-10-06 18:43:04 +05:30
serviceName : 'mlflow_svc' ,
2023-07-31 11:23:31 +05:30
entityType : 'ML Model' ,
2022-10-06 18:43:04 +05:30
} ,
mlmodel_2 : {
term : 'eta_predictions' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.MlModel ,
2022-10-06 18:43:04 +05:30
serviceName : 'mlflow_svc' ,
2023-07-19 21:24:02 +05:30
displayName : 'ETA Predictions' ,
2023-07-31 11:23:31 +05:30
entityType : 'ML Model' ,
2022-10-06 18:43:04 +05:30
} ,
} ;
2022-05-18 23:20:41 +05:30
2023-09-25 21:53:03 +05:30
export const SEARCH_ENTITY_STORED_PROCEDURE = {
stored_procedure_1 : {
term : 'update_dim_address_table' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.StoreProcedure ,
2023-09-25 21:53:03 +05:30
serviceName : 'sample_data' ,
entityType : 'Stored Procedure' ,
} ,
stored_procedure_2 : {
term : 'update_dim_address_table' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.StoreProcedure ,
2023-09-25 21:53:03 +05:30
serviceName : 'sample_data' ,
displayName : 'update_dim_address_table' ,
entityType : 'Stored Procedure' ,
} ,
} ;
export const SEARCH_ENTITY_DATA_MODEL = {
data_model_1 : {
term : 'operations_view' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.DataModel ,
2023-09-25 21:53:03 +05:30
serviceName : 'sample_looker' ,
entityType : 'Data Model' ,
} ,
data_model_2 : {
term : 'orders_view' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.DataModel ,
2023-09-25 21:53:03 +05:30
serviceName : 'sample_looker' ,
displayName : 'Orders View' ,
entityType : 'Data Model' ,
} ,
} ;
2022-05-19 17:34:32 +05:30
export const DELETE_ENTITY = {
table : {
2023-05-04 17:36:24 +05:30
term : 'dim.shop' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Table ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_data' ,
2023-07-31 11:23:31 +05:30
entityType : 'Table' ,
2022-05-19 17:34:32 +05:30
} ,
topic : {
term : 'shop_updates' ,
2024-03-07 17:06:33 +05:30
entity : EntityType.Topic ,
2022-09-29 02:49:03 +05:30
serviceName : 'sample_kafka' ,
2024-03-07 17:06:33 +05:30
entityType : 'Topic' ,
2022-09-06 06:42:42 +05:30
} ,
2022-05-19 17:34:32 +05:30
} ;
2022-05-18 12:22:50 +05:30
export const RECENT_SEARCH_TITLE = 'Recent Search Terms' ;
export const RECENT_VIEW_TITLE = 'Recent Views' ;
export const MY_DATA_TITLE = 'My Data' ;
export const FOLLOWING_TITLE = 'Following' ;
2022-05-18 23:20:41 +05:30
export const NO_SEARCHED_TERMS = 'No searched terms' ;
2022-05-19 17:34:32 +05:30
export const DELETE_TERM = 'DELETE' ;
2022-05-24 18:55:17 +05:30
export const TOTAL_SAMPLE_DATA_TEAMS_COUNT = 7 ;
export const TEAMS = {
Cloud_Infra : { name : 'Cloud_Infra' , users : 15 } ,
Customer_Support : { name : 'Customer_Support' , users : 20 } ,
Data_Platform : { name : 'Data_Platform' , users : 16 } ,
} ;
2022-09-19 18:43:39 +05:30
export const NEW_TEST_SUITE = {
name : ` mysql_matrix ` ,
description : 'mysql critical matrix' ,
} ;
export const NEW_TABLE_TEST_CASE = {
2024-01-09 23:00:40 +05:30
name : ` table_column_name_to_exist_in_id_ ${ uuid ( ) } ` ,
2023-04-24 18:42:40 +02:00
label : 'Table Column Name To Exist' ,
2022-09-20 02:59:15 +05:30
type : 'tableColumnNameToExist' ,
2024-01-09 23:00:40 +05:30
field : 'testCase' ,
2022-09-19 18:43:39 +05:30
description : 'New table test case for TableColumnNameToExist' ,
} ;
export const NEW_COLUMN_TEST_CASE = {
2023-07-17 16:57:40 +05:30
name : 'id_column_value_lengths_to_be_between' ,
2024-05-10 08:16:30 +05:30
column : 'user_id' ,
2022-09-19 18:43:39 +05:30
type : 'columnValueLengthsToBeBetween' ,
2023-04-24 18:42:40 +02:00
label : 'Column Value Lengths To Be Between' ,
2024-03-07 17:06:33 +05:30
min : '3' ,
max : '6' ,
2022-09-19 18:43:39 +05:30
description : 'New table test case for columnValueLengthsToBeBetween' ,
} ;
2023-02-03 16:30:50 +05:30
export const NEW_COLUMN_TEST_CASE_WITH_NULL_TYPE = {
2023-07-17 16:57:40 +05:30
name : 'id_column_values_to_be_not_null' ,
2024-05-10 08:16:30 +05:30
column : 'user_id' ,
2023-02-03 16:30:50 +05:30
type : 'columnValuesToBeNotNull' ,
2023-04-24 18:42:40 +02:00
label : 'Column Values To Be Not Null' ,
2023-02-03 16:30:50 +05:30
description : 'New table test case for columnValuesToBeNotNull' ,
} ;
2022-05-24 18:55:17 +05:30
export const NEW_TEAM = {
team_1 : {
name : 'account' ,
display_name : 'Account' ,
description : 'Account department' ,
} ,
team_2 : {
name : 'service' ,
display_name : 'Service' ,
description : 'Service department' ,
} ,
} ;
2022-09-19 18:43:39 +05:30
2022-05-24 18:55:17 +05:30
export const NEW_USER = {
email : ` test_ ${ id } @gmail.com ` ,
display_name : ` Test user ${ id } ` ,
description : 'Hello, I am test user' ,
} ;
export const NEW_ADMIN = {
email : ` test_ ${ id } @gmail.com ` ,
display_name : ` Test admin ${ id } ` ,
description : 'Hello, I am test admin' ,
} ;
2022-05-27 23:52:33 +05:30
2023-05-24 13:55:58 +05:30
export const NEW_CLASSIFICATION = {
2023-04-06 17:52:11 +05:30
name : 'CypressClassification' ,
2023-04-06 21:15:37 +05:30
displayName : 'CypressClassification' ,
2023-04-06 17:52:11 +05:30
description : 'This is the CypressClassification' ,
2022-05-27 23:52:33 +05:30
} ;
export const NEW_TAG = {
2023-04-06 17:52:11 +05:30
name : 'CypressTag' ,
2023-04-06 21:15:37 +05:30
displayName : 'CypressTag' ,
renamedName : 'CypressTag-1' ,
2023-06-27 17:40:25 +05:30
fqn : ` ${ NEW_CLASSIFICATION . name } .CypressTag ` ,
2023-04-06 17:52:11 +05:30
description : 'This is the CypressTag' ,
2023-10-04 21:50:39 +05:30
color : '#FF5733' ,
icon : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAACFCAMAAAAKN9SOAAAAA1BMVEXmGSCqexgYAAAAI0lEQVRoge3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAHgaMeAAAUWJHZ4AAAAASUVORK5CYII=' ,
2022-05-27 23:52:33 +05:30
} ;
2023-01-19 16:47:44 +05:30
2022-07-05 18:03:08 +05:30
export const service = {
name : 'Glue' ,
description : 'This is a Glue service' ,
newDescription : 'This is updated Glue service description' ,
2023-03-28 14:39:41 +05:30
Owner : 'Aaron Johnson' ,
2024-03-20 13:14:23 +05:30
serviceType : 'databaseService' ,
2022-07-05 18:03:08 +05:30
} ;
2022-08-11 10:57:39 +05:30
export const SERVICE_TYPE = {
2024-01-24 14:27:52 +05:30
Database : GlobalSettingOptions.DATABASES ,
Messaging : GlobalSettingOptions.MESSAGING ,
Dashboard : GlobalSettingOptions.DASHBOARDS ,
Pipeline : GlobalSettingOptions.PIPELINES ,
MLModels : GlobalSettingOptions.MLMODELS ,
Storage : GlobalSettingOptions.STORAGES ,
Search : GlobalSettingOptions.SEARCH ,
2024-04-02 14:07:02 +05:30
Metadata : GlobalSettingOptions.METADATA ,
2024-01-24 14:27:52 +05:30
StoredProcedure : GlobalSettingOptions.STORED_PROCEDURES ,
} ;
export const ENTITY_SERVICE_TYPE = {
2022-08-11 10:57:39 +05:30
Database : 'Database' ,
Messaging : 'Messaging' ,
Dashboard : 'Dashboard' ,
2023-05-22 16:25:03 +05:30
Pipeline : 'Pipeline' ,
2022-08-11 10:57:39 +05:30
MLModels : 'ML Models' ,
2023-05-22 16:25:03 +05:30
Storage : 'Storage' ,
2023-09-25 21:53:03 +05:30
StoredProcedure : 'StoredProcedure' ,
2023-10-19 14:09:25 +05:30
Search : 'Search' ,
2022-08-11 10:57:39 +05:30
} ;
2022-08-23 19:21:06 +05:30
export const ENTITIES = {
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
entity_container : {
name : 'container' ,
description : 'This is Container custom property' ,
integerValue : '14' ,
2022-08-23 19:21:06 +05:30
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
2024-02-29 01:06:24 -08:00
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'containers' ,
2022-08-23 19:21:06 +05:30
} ,
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
entity_dashboard : {
name : 'dashboard' ,
description : 'This is Dashboard custom property' ,
integerValue : '14' ,
2022-08-23 19:21:06 +05:30
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
2024-02-29 01:06:24 -08:00
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : SEARCH_ENTITY_DASHBOARD.dashboard_1 ,
entityApiType : 'dashboards' ,
} ,
entity_database : {
name : 'database' ,
description : 'This is Database custom property' ,
integerValue : '14' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'databases' ,
} ,
entity_databaseSchema : {
name : 'databaseSchema' ,
description : 'This is Database Schema custom property' ,
integerValue : '14' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'databaseSchemas' ,
} ,
entity_glossaryTerm : {
name : 'glossaryTerm' ,
description : 'This is Glossary Term custom property' ,
integerValue : '14' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'glossaryTerm' ,
} ,
entity_mlmodel : {
name : 'mlmodel' ,
description : 'This is ML Model custom property' ,
integerValue : '14' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'mlmodels' ,
2022-08-23 19:21:06 +05:30
} ,
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
2022-08-23 19:21:06 +05:30
entity_pipeline : {
name : 'pipeline' ,
description : 'This is Pipeline custom property' ,
integerValue : '78' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
2024-02-29 01:06:24 -08:00
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : true ,
} ,
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
2022-09-29 15:21:33 +05:30
entityObj : SEARCH_ENTITY_PIPELINE.pipeline_1 ,
2023-11-02 10:39:10 +05:30
entityApiType : 'pipelines' ,
2022-08-23 19:21:06 +05:30
} ,
Add entityReferences and entityReferenceList as custom properties (#15448)
* Add entityReferences and entityReferenceList as custom properties
* ui: allow to add custom properties for all available property types.
* make entity type as an array
* Fix label typo and import order in AddCustomProperty component
* Remove unnecessary property types with format
* Refactor CustomPropertyTable.tsx to handle array config and enum config
* Add entity reference options and update custom property form
* Add EntityReference and EntityReferenceList as a custom property
* add validation for date format
* Add date and dateTime input support to PropertyValue component
* Fix import order and add search functionality to type dropdown
* Fix custom property cypress tests
* add input for number, email, timestamp, timeInterval, duration, time, sqlQuery,
* add input support for entityReference and entityReferenceList
* Add placeholders for email, timestamp, start time, end time, and duration inputs
* Refactor PropertyValue component to use destructuring for timeInterval object
* Add minWidth style to PropertyValue component and include SQL query editor
* Add entityReference and entityReferenceList as a generic types and not reference to the existing types
* Remove services from entity reference types list
* handle property values for different property type
* Update ExtensionTable to handle object values in CustomPropertyTable
* Add entity reference list rendering and styling
* Fix file paths in complexTypes.json
* Add regex constant for UNIX timestamp in milliseconds and update language files
* Refactor custom property configuration and add new options
* Fix import order and update property value handling
* add unit tests for different input types for different property type
* add unit test for different property type values
* fix cypress tests
* add cypress test for CRUD for different types
* add cypress test for entity ref and entity ref list property type
* add cypress tests for all the 11 entities which support custom properties
* fix cypress test for createCustomPropertyForEntity
* Add new interfaces and types for CustomPropertyTable
* add cypress test for custom property to create via APIs for entities
* add cypress tests for string,integer, markdown, number, duration, email
* add cypress test for enum property for all entities
* add cypress test for sqlQuery, timestamp and timeInterval property
* fix cypress test for sqlQuery input
* fix flaky cypress test for sqlQuery input
* address comments
* Refactor import statements and update ENTITY_PATH enum
* Update import statement in CustomProperty.ts
* change TimeInterval to Time Interval
---------
Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
2024-03-25 22:32:44 -07:00
entity_searchIndex : {
name : 'searchIndex' ,
description : 'This is Search Index custom property' ,
integerValue : '14' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'searchIndexes' ,
} ,
entity_storedProcedure : {
name : 'storedProcedure' ,
description : 'This is Stored Procedure custom property' ,
integerValue : '14' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : { } ,
entityApiType : 'storedProcedures' ,
} ,
entity_table : {
name : 'table' ,
description : 'This is Table custom property' ,
integerValue : '45' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : SEARCH_ENTITY_TABLE.table_1 ,
entityApiType : 'tables' ,
} ,
entity_topic : {
name : 'topic' ,
description : 'This is Topic custom property' ,
integerValue : '23' ,
stringValue : 'This is string propery' ,
markdownValue : 'This is markdown value' ,
enumConfig : {
values : [ 'enum1' , 'enum2' , 'enum3' ] ,
multiSelect : false ,
} ,
dateFormatConfig : 'yyyy-mm-dd' ,
dateTimeFormatConfig : 'yyyy-mm-dd hh:mm:ss' ,
entityReferenceConfig : [ 'User' , 'Team' ] ,
entityObj : SEARCH_ENTITY_TOPIC.topic_1 ,
entityApiType : 'topics' ,
} ,
2022-09-06 06:42:42 +05:30
} ;
2022-09-23 16:05:54 +05:30
export const LOGIN = {
2024-06-24 18:21:32 +05:30
username : 'admin@openmetadata.org' ,
2022-09-23 16:05:54 +05:30
password : 'admin' ,
} ;
2022-10-17 17:37:34 +05:30
2022-11-01 17:58:24 +05:30
// For now skipping the dashboard entity "SEARCH_ENTITY_DASHBOARD.dashboard_1"
2023-01-15 18:24:10 +05:30
export const ANNOUNCEMENT_ENTITIES = [
SEARCH_ENTITY_TABLE . table_1 ,
SEARCH_ENTITY_TOPIC . topic_1 ,
SEARCH_ENTITY_PIPELINE . pipeline_1 ,
] ;
2022-10-17 18:47:17 +05:30
2022-10-17 17:37:34 +05:30
export const HTTP_CONFIG_SOURCE = {
DBT_CATALOG_HTTP_PATH :
'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/master/catalog.json' ,
DBT_MANIFEST_HTTP_PATH :
'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/master/manifest.json' ,
2023-08-20 12:01:06 +05:30
DBT_RUN_RESULTS_FILE_PATH :
2022-10-17 17:37:34 +05:30
'https://raw.githubusercontent.com/OnkarVO7/dbt_git_test/master/run_results.json' ,
} ;
export const DBT = {
2023-01-06 11:08:21 +05:30
classification : 'dbtTags' ,
2023-11-04 12:37:54 +05:30
tagName : 'model_tag_two' ,
2022-10-17 17:37:34 +05:30
dbtQuery : 'select * from "dev"."dbt_jaffle"."stg_orders"' ,
2023-08-20 12:01:06 +05:30
dbtLineageNodeLabel : 'customers' ,
2023-04-20 12:35:38 +05:30
dbtLineageNode : 'dev.dbt_jaffle.stg_customers' ,
2022-10-17 17:37:34 +05:30
dataQualityTest1 : 'dbt_utils_equal_rowcount_customers_ref_orders_' ,
dataQualityTest2 : 'not_null_customers_customer_id' ,
} ;
2022-11-14 18:09:38 +05:30
export const API_SERVICE = {
databaseServices : 'databaseServices' ,
messagingServices : 'messagingServices' ,
pipelineServices : 'pipelineServices' ,
dashboardServices : 'dashboardServices' ,
2023-05-22 16:25:03 +05:30
mlmodelServices : 'mlmodelServices' ,
storageServices : 'storageServices' ,
2023-01-15 18:24:10 +05:30
} ;
2022-12-30 15:40:52 +05:30
export const TEST_CASE = {
testCaseAlert : ` TestCaseAlert-ct-test- ${ uuid ( ) } ` ,
testCaseDescription : 'This is test case alert description' ,
dataAsset : 'Test Case' ,
filters : 'Test Results === Failed' ,
} ;
export const DESTINATION = {
webhook : {
name : ` webhookAlert-ct-test- ${ uuid ( ) } ` ,
locator : 'Webhook' ,
description : 'This is webhook description' ,
url : 'http://localhost:8585' ,
} ,
slack : {
name : ` slackAlert-ct-test- ${ uuid ( ) } ` ,
locator : 'Slack' ,
description : 'This is slack description' ,
url : 'http://localhost:8585' ,
} ,
msteams : {
name : ` msteamsAlert-ct-test- ${ uuid ( ) } ` ,
locator : 'MS Teams' ,
description : 'This is ms teams description' ,
url : 'http://localhost:8585' ,
} ,
} ;
2023-05-22 14:22:57 +05:30
export const CUSTOM_PROPERTY_INVALID_NAMES = {
CAPITAL_CASE : 'CapitalCase' ,
WITH_UNDERSCORE : 'with_underscore' ,
WITH_DOTS : 'with.' ,
WITH_SPACE : 'with ' ,
} ;
export const CUSTOM_PROPERTY_NAME_VALIDATION_ERROR =
'Name must start with lower case with no space, underscore, or dots.' ;
2023-05-24 13:55:58 +05:30
export const TAG_INVALID_NAMES = {
MIN_LENGTH : 'c' ,
MAX_LENGTH : 'a87439625b1c2d3e4f5061728394a5b6c7d8e90a1b2c3d4e5f67890ab' ,
WITH_SPECIAL_CHARS : '!@#$%^&*()' ,
} ;
2023-09-07 12:26:25 +05:30
export const INVALID_NAMES = {
2023-05-29 21:45:52 +05:30
MAX_LENGTH :
'a87439625b1c2d3e4f5061728394a5b6c7d8e90a1b2c3d4e5f67890aba87439625b1c2d3e4f5061728394a5b6c7d8e90a1b2c3d4e5f67890abName can be a maximum of 128 characters' ,
2024-01-11 14:23:33 +05:30
WITH_SPECIAL_CHARS : '::normalName::' ,
2023-05-29 21:45:52 +05:30
} ;
2023-05-24 13:55:58 +05:30
export const NAME_VALIDATION_ERROR =
'Name must contain only letters, numbers, underscores, hyphens, periods, parenthesis, and ampersands.' ;
export const NAME_MIN_MAX_LENGTH_VALIDATION_ERROR =
'Name size must be between 2 and 64' ;
2024-06-27 15:47:51 +05:30
export const NAME_MIN_MAX_LENGTH_VALIDATION_ERROR_1_128 =
'Name size must be between 1 and 128' ;
2023-09-07 12:26:25 +05:30
export const DOMAIN_1 = {
name : 'Cypress%Domain' ,
updatedName : 'Cypress_Domain_Name' ,
2023-12-03 00:57:03 +05:30
fullyQualifiedName : 'Cypress%Domain' ,
2023-09-07 12:26:25 +05:30
updatedDisplayName : 'Cypress_Domain_Display_Name' ,
description :
'This is the Cypress for testing domain creation with percent and dot' ,
updatedDescription :
'This is the updated description for Cypress for testing domain creation' ,
experts : 'Aaron Johnson' ,
2023-10-20 10:07:51 +05:30
owner : 'Alex Pollard' ,
2023-09-12 14:17:36 +05:30
updatedOwner : 'Aaron Johnson' ,
2023-09-07 12:26:25 +05:30
domainType : 'Source-aligned' ,
dataProducts : [
{
name : 'Cypress.Data.Product1' ,
description :
'This is the data product description for Cypress.Data.Product1' ,
experts : 'Aaron Johnson' ,
owner : 'Aaron Johnson' ,
} ,
{
name : 'Cypress.Data.Product2With%' ,
description :
'This is the data product description for Cypress.Data.Product2With%' ,
experts : 'Aaron Johnson' ,
owner : 'Aaron Johnson' ,
} ,
] ,
} ;
export const DOMAIN_2 = {
name : 'Cypress.Domain.New' ,
updatedName : 'Cypress.Domain.New' ,
updatedDisplayName : 'Cypress.Domain.New' ,
2023-12-03 00:57:03 +05:30
fullyQualifiedName : '"Cypress.Domain.New"' ,
2023-09-07 12:26:25 +05:30
description : 'This is the Cypress for testing domain creation' ,
2023-10-20 10:07:51 +05:30
experts : 'Alex Pollard' ,
owner : 'Alex Pollard' ,
2023-09-07 12:26:25 +05:30
domainType : 'Source-aligned' ,
2023-12-03 00:57:03 +05:30
dataProducts : [
{
name : 'Cypress DataProduct Assets' ,
description :
'This is the data product description for Cypress DataProduct Assets' ,
experts : 'Aaron Johnson' ,
owner : 'Aaron Johnson' ,
assets : [
{
name : 'dim_customer' ,
fullyQualifiedName : 'sample_data.ecommerce_db.shopify.dim_address' ,
} ,
{
name : 'raw_order' ,
fullyQualifiedName : 'sample_data.ecommerce_db.shopify.raw_order' ,
} ,
{
name : 'presto_etl' ,
fullyQualifiedName : 'sample_airflow.presto_etl' ,
} ,
] ,
} ,
] ,
assets : [
{
name : 'dim_customer' ,
fullyQualifiedName : 'sample_data.ecommerce_db.shopify.dim_address' ,
} ,
{
name : 'raw_order' ,
fullyQualifiedName : 'sample_data.ecommerce_db.shopify.raw_order' ,
} ,
{
name : 'presto_etl' ,
fullyQualifiedName : 'sample_airflow.presto_etl' ,
} ,
] ,
2023-09-07 12:26:25 +05:30
} ;
2023-12-05 23:55:06 +05:30
export const DOMAIN_3 = {
name : 'Cypress Space' ,
updatedName : 'Cypress Space' ,
updatedDisplayName : 'Cypress Space' ,
fullyQualifiedName : 'Cypress Space' ,
description : 'This is the Cypress for testing domain with space creation' ,
experts : 'Alex Pollard' ,
owner : 'Alex Pollard' ,
domainType : 'Source-aligned' ,
dataProducts : [
{
name : 'Cypress%PercentDP' ,
description :
'This is the data product description for Cypress DataProduct Assets' ,
experts : 'Aaron Johnson' ,
owner : 'Aaron Johnson' ,
assets : [
{
name : 'forecast_sales_performance' ,
fullyQualifiedName : 'sample_superset.forecast_sales_performance' ,
} ,
{
2024-05-16 10:17:37 +05:30
name : 'fact_sale' ,
fullyQualifiedName : 'sample_data.ecommerce_db.shopify.fact_sale' ,
2023-12-05 23:55:06 +05:30
} ,
{
name : 'operations_view' ,
fullyQualifiedName : 'sample_looker.model.operations_view' ,
} ,
] ,
} ,
] ,
assets : [
{
name : 'forecast_sales_performance' ,
fullyQualifiedName : 'sample_superset.forecast_sales_performance' ,
} ,
{
2024-05-16 10:17:37 +05:30
name : 'fact_sale' ,
fullyQualifiedName : 'sample_data.ecommerce_db.shopify.fact_sale' ,
2023-12-05 23:55:06 +05:30
} ,
{
name : 'operations_view' ,
fullyQualifiedName : 'sample_looker.model.operations_view' ,
} ,
] ,
} ;
2024-05-03 12:07:26 +05:30
export const GLOBAL_SETTING_PERMISSIONS : Record <
string ,
{ testid : GlobalSettingOptions ; isCustomProperty? : boolean }
> = {
2024-01-15 17:23:10 +05:30
metadata : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.METADATA ,
2024-01-15 17:23:10 +05:30
} ,
customAttributesTable : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.TABLES ,
isCustomProperty : true ,
2024-01-15 17:23:10 +05:30
} ,
customAttributesTopics : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.TOPICS ,
isCustomProperty : true ,
2024-01-15 17:23:10 +05:30
} ,
customAttributesDashboards : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.DASHBOARDS ,
isCustomProperty : true ,
2024-01-15 17:23:10 +05:30
} ,
customAttributesPipelines : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.PIPELINES ,
isCustomProperty : true ,
2024-01-15 17:23:10 +05:30
} ,
customAttributesMlModels : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.MLMODELS ,
isCustomProperty : true ,
2024-01-15 17:23:10 +05:30
} ,
bots : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.BOTS ,
2024-01-15 17:23:10 +05:30
} ,
} ;
2024-05-03 12:07:26 +05:30
export const ID : Record <
string ,
{ testid : GlobalSettingOptions ; button : string ; api? : string }
> = {
2024-01-15 17:23:10 +05:30
teams : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.TEAMS ,
2024-01-15 17:23:10 +05:30
button : 'add-team' ,
} ,
users : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.USERS ,
2024-01-15 17:23:10 +05:30
button : 'add-user' ,
api : '/api/v1/users?*' ,
} ,
admins : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.ADMINS ,
2024-01-15 17:23:10 +05:30
button : 'add-user' ,
api : '/api/v1/users?*' ,
} ,
databases : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.DATABASES ,
2024-01-15 17:23:10 +05:30
button : 'add-service-button' ,
api : '/api/v1/services/databaseServices?*' ,
} ,
messaging : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.MESSAGING ,
2024-01-15 17:23:10 +05:30
button : 'add-service-button' ,
api : '/api/v1/services/messagingServices?*' ,
} ,
dashboard : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.DASHBOARDS ,
2024-01-15 17:23:10 +05:30
button : 'add-service-button' ,
api : '/api/v1/services/dashboardServices?*' ,
} ,
pipelines : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.PIPELINES ,
2024-01-15 17:23:10 +05:30
button : 'add-service-button' ,
api : '/api/v1/services/pipelineServices?*' ,
} ,
mlmodels : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.MLMODELS ,
2024-01-15 17:23:10 +05:30
button : 'add-service-button' ,
api : '/api/v1/services/mlmodelServices?*' ,
} ,
storage : {
2024-01-24 14:27:52 +05:30
testid : GlobalSettingOptions.STORAGES ,
2024-01-15 17:23:10 +05:30
button : 'add-service-button' ,
api : '/api/v1/services/storageServices?*' ,
} ,
} ;
2024-06-11 17:49:16 +05:30
export const JWT_EXPIRY_TIME_MAP = {
'1 hour' : 3600 ,
'2 hours' : 7200 ,
} ;
2024-06-27 15:47:51 +05:30
export const EXAMPLE_LONG_STRING = 'name' . repeat ( 33 ) ; // 132 characters