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

260 lines
9.4 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.
*/
export enum GlobalSettingsMenuCategory {
ACCESS = 'access',
NOTIFICATIONS = 'notifications',
CUSTOM_PROPERTIES = 'customProperties',
PREFERENCES = 'preferences',
MEMBERS = 'members',
SERVICES = 'services',
BOTS = 'bots',
APPLICATIONS = 'apps',
}
export enum GlobalSettingOptions {
USERS = 'users',
ADMINS = 'admins',
TEAMS = 'teams',
PERSONA = 'persona',
ROLES = 'roles',
POLICIES = 'policies',
DATABASES = 'databases',
DATABASE = 'database',
DATABASE_SCHEMA = 'databaseSchemas',
MESSAGING = 'messaging',
METADATA = 'metadata',
DASHBOARDS = 'dashboards',
PIPELINES = 'pipelines',
MLMODELS = 'mlmodels',
STORED_PROCEDURES = 'storedProcedures',
WEBHOOK = 'webhook',
SLACK = 'slack',
BOTS = 'bots',
TABLES = 'tables',
MSTEAMS = 'msteams',
ACTIVITY_FEED = 'activityFeeds',
SEARCH = 'search',
SEARCH_INDEXES = 'searchIndexes',
DATA_INSIGHT = 'dataInsight',
EMAIL = 'email',
NOTIFICATIONS = 'notifications',
NOTIFICATION = 'notification',
OBSERVABILITY = 'observability',
GLOSSARY_TERM = 'glossaryTerm',
ADD_NOTIFICATION = 'add-notification',
EDIT_NOTIFICATION = 'edit-notification',
ADD_OBSERVABILITY = 'add-observability',
STORAGES = 'storages',
DATA_INSIGHT_REPORT_ALERT = 'dataInsightReport',
ADD_DATA_INSIGHT_REPORT_ALERT = 'add-data-insight-report',
EDIT_DATA_INSIGHT_REPORT_ALERT = 'edit-data-insight-report',
LOGIN_CONFIGURATION = 'loginConfiguration',
OPENMETADATA_STATUS = 'openmetadataStatus',
CUSTOMIZE_LANDING_PAGE = 'customizeLandingPage',
TOPICS = 'topics',
CONTAINERS = 'containers',
APPLICATIONS = 'apps',
OM_HEALTH = 'om-health',
APPEARANCE = 'appearance',
DATA_OBSERVABILITY = 'dataObservability',
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
APIS = 'apiServices',
API_COLLECTIONS = 'apiCollections',
API_ENDPOINTS = 'apiEndpoints',
DATA_PRODUCTS = 'dataProducts',
DASHBOARD_DATA_MODEL = 'dashboardDataModels',
Issue-15768: Support Metric Entity (#17680) * Issue-15768: Support Metric Entity * Issue-15768: Support Metric Entity * Issue-15768: Support Metric Entity * Fix tests * Fix tests * Fix tests * Minor: Fix tests * ui: add metricsAPI rest utils * ui: metric list page part 1 * feat: Add metric translations for multiple languages * chore: Add "metric" field to SearchIndexingApplication schema * ui: add create metric page * ui: metric details page patch 1 * ui: add custom property and lineage support for metric entity * ui: add expression component * ui: add metric summary component * chore: Update tab labels in MetricDetails and MetricVersion components * ui: show other info like metric type, granularity, etc * feat: Add support for metric entity in search dropdown * feat: Rename custom property to Metric in MetricEntity.md * feat: Add OwnerLabel component to MetricListPage * Fix expression field in Metric * chore: update expression to metricExpression * ui: add metric header component with edit option * Add metric to SearchIndexApp * chore: Update expression to metricExpression * ui: allow metric expression edit * ui: update metric icon * minor improvements * Fix lineage indexing for Metric * Update GlobalSettingsClassBase.ts to use MetricIcon for metrics in the global settings menu * Fix error handling in MetricListPage component * add related metrics * minor improvements * Fix relatedTerms patch * Fix relatedTerms validation * Add Boolean for deleted * filter active entity from related metric list * playwrite e2e part 1 * Refactor MetricSummary component to include RelatedMetrics in the summary panel * test: add playwright test for metric special cases * Add 'Metrics' to Explore Tree * test: add e2e for add metric page * test: add test for metric listing page content * Add Boolean for deleted, remove deleted from suggests * Refactor LineageProvider to handle deleted flag properly * add playwright for metric listing * fix test * Add colored metric icon and update its usage in GlobalSettingsClassBase * Fixed py_test test_ometa_endpoint for metric --------- Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com> Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com> Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Co-authored-by: SumanMaharana <sumanmaharana786@gmail.com> Co-authored-by: Ashish Gupta <ashish@getcollate.io>
2024-09-15 23:06:31 -07:00
METRICS = 'metrics',
}
export const SETTINGS_OPTIONS_PATH = {
// Services
[GlobalSettingOptions.DATABASES]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.DATABASES}`,
],
[GlobalSettingOptions.MESSAGING]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.MESSAGING}`,
],
[GlobalSettingOptions.DASHBOARDS]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.DASHBOARDS}`,
],
[GlobalSettingOptions.PIPELINES]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.PIPELINES}`,
],
[GlobalSettingOptions.MLMODELS]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.MLMODELS}`,
],
[GlobalSettingOptions.STORAGES]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.STORAGES}`,
],
[GlobalSettingOptions.SEARCH]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.SEARCH}`,
],
[GlobalSettingOptions.METADATA]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.METADATA}`,
],
[GlobalSettingOptions.DATA_OBSERVABILITY]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.DATA_OBSERVABILITY}`,
],
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
[GlobalSettingOptions.APIS]: [
GlobalSettingsMenuCategory.SERVICES,
`${GlobalSettingsMenuCategory.SERVICES}.${GlobalSettingOptions.APIS}`,
],
// Applications
[GlobalSettingOptions.APPLICATIONS]: [GlobalSettingOptions.APPLICATIONS],
// Bots
[GlobalSettingOptions.BOTS]: [GlobalSettingOptions.BOTS],
// Notification
[GlobalSettingsMenuCategory.NOTIFICATIONS]: [
GlobalSettingsMenuCategory.NOTIFICATIONS,
],
// Teams User Management
[GlobalSettingOptions.USERS]: [
GlobalSettingsMenuCategory.MEMBERS,
`${GlobalSettingsMenuCategory.MEMBERS}.${GlobalSettingOptions.USERS}`,
],
[GlobalSettingOptions.TEAMS]: [
GlobalSettingsMenuCategory.MEMBERS,
`${GlobalSettingsMenuCategory.MEMBERS}.${GlobalSettingOptions.TEAMS}`,
],
[GlobalSettingOptions.ADMINS]: [
GlobalSettingsMenuCategory.MEMBERS,
`${GlobalSettingsMenuCategory.MEMBERS}.${GlobalSettingOptions.ADMINS}`,
],
[GlobalSettingOptions.PERSONA]: [
GlobalSettingsMenuCategory.MEMBERS,
`${GlobalSettingsMenuCategory.MEMBERS}.${GlobalSettingOptions.PERSONA}`,
],
// Access Control
[GlobalSettingOptions.ROLES]: [
GlobalSettingsMenuCategory.ACCESS,
`${GlobalSettingsMenuCategory.ACCESS}.${GlobalSettingOptions.ROLES}`,
],
[GlobalSettingOptions.POLICIES]: [
GlobalSettingsMenuCategory.ACCESS,
`${GlobalSettingsMenuCategory.ACCESS}.${GlobalSettingOptions.POLICIES}`,
],
// Open-metadata
[GlobalSettingOptions.CUSTOMIZE_LANDING_PAGE]: [
GlobalSettingsMenuCategory.PREFERENCES,
`${GlobalSettingsMenuCategory.PREFERENCES}.${GlobalSettingOptions.CUSTOMIZE_LANDING_PAGE}`,
],
[GlobalSettingOptions.EMAIL]: [
GlobalSettingsMenuCategory.PREFERENCES,
`${GlobalSettingsMenuCategory.PREFERENCES}.${GlobalSettingOptions.EMAIL}`,
],
[GlobalSettingOptions.APPEARANCE]: [
GlobalSettingsMenuCategory.PREFERENCES,
`${GlobalSettingsMenuCategory.PREFERENCES}.${GlobalSettingOptions.APPEARANCE}`,
],
[GlobalSettingOptions.LOGIN_CONFIGURATION]: [
GlobalSettingsMenuCategory.PREFERENCES,
`${GlobalSettingsMenuCategory.PREFERENCES}.${GlobalSettingOptions.LOGIN_CONFIGURATION}`,
],
[GlobalSettingOptions.OM_HEALTH]: [
GlobalSettingsMenuCategory.PREFERENCES,
`${GlobalSettingsMenuCategory.PREFERENCES}.${GlobalSettingOptions.OM_HEALTH}`,
],
[GlobalSettingOptions.GLOSSARY_TERM]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.GLOSSARY_TERM}`,
],
};
export const SETTING_CUSTOM_PROPERTIES_PATH = {
[GlobalSettingOptions.DATABASES]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.DATABASES}`,
],
[GlobalSettingOptions.DATABASE_SCHEMA]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.DATABASE_SCHEMA}`,
],
[GlobalSettingOptions.TABLES]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.TABLES}`,
],
[GlobalSettingOptions.STORED_PROCEDURES]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.STORED_PROCEDURES}`,
],
[GlobalSettingOptions.TOPICS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.TOPICS}`,
],
[GlobalSettingOptions.DASHBOARDS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.DASHBOARDS}`,
],
[GlobalSettingOptions.PIPELINES]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.PIPELINES}`,
],
[GlobalSettingOptions.MLMODELS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.MLMODELS}`,
],
[GlobalSettingOptions.CONTAINERS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.CONTAINERS}`,
],
[GlobalSettingOptions.SEARCH_INDEXES]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.SEARCH_INDEXES}`,
],
[GlobalSettingOptions.GLOSSARY_TERM]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.GLOSSARY_TERM}`,
],
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
[GlobalSettingOptions.API_COLLECTIONS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.API_COLLECTIONS}`,
],
[GlobalSettingOptions.API_ENDPOINTS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.API_ENDPOINTS}`,
],
[GlobalSettingOptions.DATA_PRODUCTS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.DATA_PRODUCTS}`,
],
[GlobalSettingOptions.DASHBOARD_DATA_MODEL]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.DASHBOARD_DATA_MODEL}`,
],
Issue-15768: Support Metric Entity (#17680) * Issue-15768: Support Metric Entity * Issue-15768: Support Metric Entity * Issue-15768: Support Metric Entity * Fix tests * Fix tests * Fix tests * Minor: Fix tests * ui: add metricsAPI rest utils * ui: metric list page part 1 * feat: Add metric translations for multiple languages * chore: Add "metric" field to SearchIndexingApplication schema * ui: add create metric page * ui: metric details page patch 1 * ui: add custom property and lineage support for metric entity * ui: add expression component * ui: add metric summary component * chore: Update tab labels in MetricDetails and MetricVersion components * ui: show other info like metric type, granularity, etc * feat: Add support for metric entity in search dropdown * feat: Rename custom property to Metric in MetricEntity.md * feat: Add OwnerLabel component to MetricListPage * Fix expression field in Metric * chore: update expression to metricExpression * ui: add metric header component with edit option * Add metric to SearchIndexApp * chore: Update expression to metricExpression * ui: allow metric expression edit * ui: update metric icon * minor improvements * Fix lineage indexing for Metric * Update GlobalSettingsClassBase.ts to use MetricIcon for metrics in the global settings menu * Fix error handling in MetricListPage component * add related metrics * minor improvements * Fix relatedTerms patch * Fix relatedTerms validation * Add Boolean for deleted * filter active entity from related metric list * playwrite e2e part 1 * Refactor MetricSummary component to include RelatedMetrics in the summary panel * test: add playwright test for metric special cases * Add 'Metrics' to Explore Tree * test: add e2e for add metric page * test: add test for metric listing page content * Add Boolean for deleted, remove deleted from suggests * Refactor LineageProvider to handle deleted flag properly * add playwright for metric listing * fix test * Add colored metric icon and update its usage in GlobalSettingsClassBase * Fixed py_test test_ometa_endpoint for metric --------- Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com> Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com> Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Co-authored-by: SumanMaharana <sumanmaharana786@gmail.com> Co-authored-by: Ashish Gupta <ashish@getcollate.io>
2024-09-15 23:06:31 -07:00
[GlobalSettingOptions.METRICS]: [
GlobalSettingsMenuCategory.CUSTOM_PROPERTIES,
`${GlobalSettingsMenuCategory.CUSTOM_PROPERTIES}.${GlobalSettingOptions.METRICS}`,
],
};