Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
3.1 KiB
TypeScript
Raw Normal View History

/*
* Copyright 2024 Collate.
* 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.
*/
import { uuid } from '../utils/common';
import { GlobalSettingOptions, ServiceTypes } from './settings';
export const SERVICE_TYPE = {
Database: GlobalSettingOptions.DATABASES,
Messaging: GlobalSettingOptions.MESSAGING,
Dashboard: GlobalSettingOptions.DASHBOARDS,
Pipeline: GlobalSettingOptions.PIPELINES,
MLModels: GlobalSettingOptions.MLMODELS,
Storage: GlobalSettingOptions.STORAGES,
Search: GlobalSettingOptions.SEARCH,
Metadata: GlobalSettingOptions.METADATA,
StoredProcedure: GlobalSettingOptions.STORED_PROCEDURES,
feat(#10933): API service UI (#17003) * feat(#10933): API service UI * feat: Add support for API collections in multiple languages * feat: add collection page * feat: Add support for multiple languages in endpoint-plural translation * chore: Add 'Beta' tag to API Services card, mark 'REST' service as beta, hide Pipelines tab, and update API Schemas card in settings. * fix: api service version page to show list of collections * feat: add api collect version page * feat: add custom property support for api collections and endpoints * feat: Add API Collection and API Endpoint translations in multiple languages * Refactor proxy configuration to use '/api/' context instead of '/api/v1' * feat: add apiEndpoint page * feat: add APIEndpoint summary component * feat: add APIEndpoint schema component * chore: remove the schema type from APIEndpointSchema component * feat: add version page component for API endpoint * chore: add task support for api collection and api endpoint * chore: remove schema from request and response label * chore: don't show add ingestion button for api services * feat: add search support for api entity * feat: add request and response schema field translations for multiple languages * chore: update icons * refactor: Add null checks in EntityUtils.tsx * feat: show deleted child entities if service is deleted * chore: Update addApiEndpointFollower function in apiEndpointsAPI.ts * feat: Add API collection and endpoint retrieval in EntityPopOverCard.tsx * chore: add api endpoint in data assets widget * feat: Add extra info link in data assets header * chore: Add API endpoint index to DataAssetsWidget test * feat: add api endpoint to explore tree * test: add cypress for apiendpoint and apicollection custom property * test: add playwright test for api service entity * test: add playwright test for api collection entity * test: Add ApiEndpoint playwright test * test: fix api endpoint and api collection test * fix: minor issues * test: add playwright test for creating service from ui and explore page tree * test: add playwright test for api endpoint lineage * feat: Update API collection page to use specific fields for owner, tags, and votes * test: remove api endpoint class from linage spec
2024-07-26 14:31:17 +05:30
ApiService: GlobalSettingOptions.APIS,
};
export const VISIT_SERVICE_PAGE_DETAILS = {
[SERVICE_TYPE.Database]: {
settingsMenuId: GlobalSettingOptions.DATABASES,
serviceCategory: ServiceTypes.DATABASE_SERVICES,
},
[SERVICE_TYPE.Messaging]: {
settingsMenuId: GlobalSettingOptions.MESSAGING,
serviceCategory: ServiceTypes.MESSAGING_SERVICES,
},
[SERVICE_TYPE.Dashboard]: {
settingsMenuId: GlobalSettingOptions.DASHBOARDS,
serviceCategory: ServiceTypes.DASHBOARD_SERVICES,
},
[SERVICE_TYPE.Pipeline]: {
settingsMenuId: GlobalSettingOptions.PIPELINES,
serviceCategory: ServiceTypes.PIPELINE_SERVICES,
},
[SERVICE_TYPE.MLModels]: {
settingsMenuId: GlobalSettingOptions.MLMODELS,
serviceCategory: ServiceTypes.ML_MODEL_SERVICES,
},
[SERVICE_TYPE.Storage]: {
settingsMenuId: GlobalSettingOptions.STORAGES,
serviceCategory: ServiceTypes.STORAGE_SERVICES,
},
[SERVICE_TYPE.Search]: {
settingsMenuId: GlobalSettingOptions.SEARCH,
serviceCategory: ServiceTypes.SEARCH_SERVICES,
},
[SERVICE_TYPE.Metadata]: {
settingsMenuId: GlobalSettingOptions.METADATA,
serviceCategory: ServiceTypes.METADATA_SERVICES,
},
};
const uniqueID = uuid();
export const REDSHIFT = {
serviceType: 'Redshift',
serviceName: `redshift-ct-test-with-%-${uniqueID}`,
tableName: 'raw_payments',
DBTTable: 'customers',
description: `This is Redshift-ct-test-${uniqueID} description`,
};
export const POSTGRES = {
serviceType: 'Postgres',
serviceName: `pw-postgres-test-with-%-${uniqueID}`,
tableName: 'order_items',
};
export const MYSQL = 'Mysql';
export const DBT = {
classification: 'dbtTags',
awsRegion: 'us-east-2',
s3BucketName: 'awsdatalake-testing',
s3Prefix: 'dbt-testing/mayur/',
tagName: 'model_tag_two',
dbtQuery: 'select * from "dev"."dbt_automate_upgrade_tests"."stg_orders"',
dbtLineageNodeLabel: 'customers',
dbtLineageNode: 'dev.dbt_automate_upgrade_tests.stg_customers',
dataQualityTest1: 'unique_customers_customer_id',
dataQualityTest2: 'not_null_customers_customer_id',
};