From b07ef2212aa7e83303b727a572815dc6f12878d6 Mon Sep 17 00:00:00 2001 From: Vivek Ratnavel Subramanian Date: Tue, 15 Mar 2022 10:41:31 -0700 Subject: [PATCH] Fix #3417 UI: Add a mock API Server (#3418) --- .../src/main/resources/ui/mock-api/app.js | 24 + .../ui/mock-api/generate-response.js | 37 + .../operations/v1/airflowPipeline/GET.json | 1 + .../ui/mock-api/v1/config/auth/GET.json | 7 + .../ui/mock-api/v1/config/authorizer/GET.json | 11 + .../resources/ui/mock-api/v1/feed/GET.json | 704 ++++++++++++++++++ .../resources/ui/mock-api/v1/roles/GET.json | 31 + .../ui/mock-api/v1/search/query/GET.js | 39 + .../mock-api/v1/search/query/GET_owner.json | 306 ++++++++ .../ui/mock-api/v1/services/GET.json | 39 + .../v1/services/dashboardServices/GET.json | 20 + .../v1/services/databaseServices/GET.json | 51 ++ .../v1/services/messagingServices/GET.json | 33 + .../v1/services/pipelineServices/GET.json | 19 + .../resources/ui/mock-api/v1/teams/GET.json | 91 +++ .../resources/ui/mock-api/v1/users/GET.json | 656 ++++++++++++++++ .../resources/ui/mock-api/v1/version/GET.json | 1 + .../src/main/resources/ui/package.json | 3 + .../src/main/resources/ui/yarn.lock | 178 ++++- 19 files changed, 2248 insertions(+), 3 deletions(-) create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/app.js create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/generate-response.js create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/operations/v1/airflowPipeline/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/config/auth/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/config/authorizer/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/feed/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/roles/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET.js create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET_owner.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/services/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/services/dashboardServices/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/services/databaseServices/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/services/messagingServices/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/services/pipelineServices/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/teams/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/users/GET.json create mode 100644 openmetadata-ui/src/main/resources/ui/mock-api/v1/version/GET.json diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/app.js b/openmetadata-ui/src/main/resources/ui/mock-api/app.js new file mode 100644 index 00000000000..e18d247dbbd --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/app.js @@ -0,0 +1,24 @@ +/* + * Copyright 2021 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. + */ + +/* eslint-disable */ +const express = require('express'); +const apiMocker = require('connect-api-mocker'); + +const port = 8585; +const app = express(); + +app.use('/api', apiMocker('mock-api')); + +console.log(`Mock API Server is up and running at: http://localhost:${port}`); +app.listen(port); diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/generate-response.js b/openmetadata-ui/src/main/resources/ui/mock-api/generate-response.js new file mode 100644 index 00000000000..238844a729a --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/generate-response.js @@ -0,0 +1,37 @@ +/* + * Copyright 2021 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. + */ + +/* eslint-disable */ + +const {resolve, extend} = require('json-schema-faker'); +const fs = require('fs'); +extend('faker', () => require('@faker-js/faker')); + +// Make sure we got a filename on the command line. +if (process.argv.length < 3) { + console.log('Usage: node ' + process.argv[1] + ' '); + process.exit(1); +} + +const filename = process.argv[2]; +fs.readFile(filename, 'utf8', (err, schema) => { + if (err) { + console.error(err); + + return; + } + const schemaAsObject = JSON.parse(schema); + resolve(schemaAsObject).then(sample => { + console.log(sample); + }) +}); diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/operations/v1/airflowPipeline/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/operations/v1/airflowPipeline/GET.json new file mode 100644 index 00000000000..8bd63a2c629 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/operations/v1/airflowPipeline/GET.json @@ -0,0 +1 @@ +{"data":[],"paging":{"total":0}} \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/config/auth/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/config/auth/GET.json new file mode 100644 index 00000000000..70a7ab903b4 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/config/auth/GET.json @@ -0,0 +1,7 @@ +{ + "provider": "no-auth", + "publicKey":"", + "authority":"", + "clientId":"", + "callbackUrl":"" +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/config/authorizer/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/config/authorizer/GET.json new file mode 100644 index 00000000000..8749369b391 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/config/authorizer/GET.json @@ -0,0 +1,11 @@ +{ + "className": "org.openmetadata.catalog.security.NoopAuthorizer", + "containerRequestFilter": "org.openmetadata.catalog.security.NoopFilter", + "adminPrincipals": [ + "admin" + ], + "botPrincipals": [ + "ingestion-bot" + ], + "principalDomain": "" +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/feed/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/feed/GET.json new file mode 100644 index 00000000000..3d067bf86da --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/feed/GET.json @@ -0,0 +1,704 @@ +{ + "data": [ + { + "id": "408b7ea6-7eea-4ed6-bc3c-491971bafab5", + "href": "http://localhost:3000/api/v1/feed/408b7ea6-7eea-4ed6-bc3c-491971bafab5", + "threadTs": 1647046363996, + "about": "<#E/table/bigquery_gcp.shopify.raw_order/tags>", + "entityId": "692c4f1b-dc59-479b-a492-aedbeb16c809", + "createdBy": "anonymous", + "updatedAt": 1647046363996, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **tags**: `Tier.Tier2`", + "postsCount": 0, + "posts": [] + }, + { + "id": "a99d10de-1c18-4b7b-92f7-3b46833f5b13", + "href": "http://localhost:3000/api/v1/feed/a99d10de-1c18-4b7b-92f7-3b46833f5b13", + "threadTs": 1646899056436, + "about": "<#E/pipeline/sample_airflow.snowflake_etl/tags>", + "entityId": "30b40885-6480-44ba-876f-373a3e6a9552", + "createdBy": "anonymous", + "updatedAt": 1646954230647, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **tags**: `PII.NonSensitive`", + "postsCount": 1, + "posts": [ + { + "id": "9033d747-3fa1-4a73-b121-ad34b01171e1", + "message": "Hello <#E/user/barbara_gonzalez2|[@barbara\\_gonzalez2](http://localhost:3000/users/barbara_gonzalez2)>", + "postTs": 1646954230633, + "from": "aaron_johnson0" + } + ] + }, + { + "id": "0e13f593-f92e-4680-9434-c18ce3af2a45", + "href": "http://localhost:3000/api/v1/feed/0e13f593-f92e-4680-9434-c18ce3af2a45", + "threadTs": 1646949257417, + "about": "<#E/table/bigquery_gcp.shopify.raw_order/columns/orders/tags>", + "entityId": "692c4f1b-dc59-479b-a492-aedbeb16c809", + "createdBy": "anonymous", + "updatedAt": 1646949257417, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **orders.tags**: `Health care.term1.COBRA`", + "postsCount": 0, + "posts": [] + }, + { + "id": "70cdea49-c477-45ac-828d-6ba3c7188c12", + "href": "http://localhost:3000/api/v1/feed/70cdea49-c477-45ac-828d-6ba3c7188c12", + "threadTs": 1646949246198, + "about": "<#E/table/bigquery_gcp.shopify.raw_order/columns/membership/tags>", + "entityId": "692c4f1b-dc59-479b-a492-aedbeb16c809", + "createdBy": "anonymous", + "updatedAt": 1646949246198, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **membership.tags**: `Health care.term 3.Term 4`", + "postsCount": 0, + "posts": [] + }, + { + "id": "6d479a6a-6053-4721-9558-a4ae6c5ba14f", + "href": "http://localhost:3000/api/v1/feed/6d479a6a-6053-4721-9558-a4ae6c5ba14f", + "threadTs": 1646948570355, + "about": "<#E/table/bigquery_gcp.shopify.dim_shop/columns/name/tags>", + "entityId": "6cf29b74-776d-488a-be4d-688fdcfdd849", + "createdBy": "anonymous", + "updatedAt": 1646949065264, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **name.tags**: `Health care.term1.COBRA`", + "postsCount": 1, + "posts": [ + { + "id": "775446d1-e7e5-44b7-b2da-0a5567a50ec7", + "message": "reply <#E/user/aaron_warren5|[@aaron\\_warren5](http://localhost:3000/users/aaron_warren5)> <#E/table/bigquery_gcp.shopify.dim_api_client|[#table/dim\\_api\\_client](http://localhost:3000/table/bigquery_gcp.shopify.dim_api_client)>", + "postTs": 1646949065250, + "from": "aaron_johnson0" + } + ] + }, + { + "id": "72b56fa4-5be0-47dc-a5f3-465a018300c3", + "href": "http://localhost:3000/api/v1/feed/72b56fa4-5be0-47dc-a5f3-465a018300c3", + "threadTs": 1646948504998, + "about": "<#E/table/bigquery_gcp.shopify.raw_product_catalog/columns/comments/tags>", + "entityId": "07244140-402d-48e0-9b68-3a0f078d334b", + "createdBy": "anonymous", + "updatedAt": 1646948504998, + "updatedBy": "anonymous", + "resolved": false, + "message": "Deleted **comments.tags**", + "postsCount": 0, + "posts": [] + }, + { + "id": "105bfa7e-f675-4882-9c7b-d90dd15141f5", + "href": "http://localhost:3000/api/v1/feed/105bfa7e-f675-4882-9c7b-d90dd15141f5", + "threadTs": 1646948483744, + "about": "<#E/table/bigquery_gcp.shopify.raw_product_catalog/owner>", + "entityId": "07244140-402d-48e0-9b68-3a0f078d334b", + "createdBy": "anonymous", + "updatedAt": 1646948483744, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **owner**: `Aaron Johnson`", + "postsCount": 0, + "posts": [] + }, + { + "id": "d47f600e-87dc-40e1-ae96-85c8a02d82e1", + "href": "http://localhost:3000/api/v1/feed/d47f600e-87dc-40e1-ae96-85c8a02d82e1", + "threadTs": 1646899062708, + "about": "<#E/pipeline/sample_airflow.snowflake_etl/tags>", + "entityId": "30b40885-6480-44ba-876f-373a3e6a9552", + "createdBy": "anonymous", + "updatedAt": 1646899062708, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **tags**: `Health care.Term 2`", + "postsCount": 0, + "posts": [] + }, + { + "id": "c89fdd95-7a46-4e72-acb2-7b30d26e41d6", + "href": "http://localhost:3000/api/v1/feed/c89fdd95-7a46-4e72-acb2-7b30d26e41d6", + "threadTs": 1646899003444, + "about": "<#E/dashboard/sample_superset.eta_predictions_performance/tags>", + "entityId": "7468a313-6905-4d50-a0d2-e6175bf8e58d", + "createdBy": "anonymous", + "updatedAt": 1646899003444, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **tags**: `Health care.term 3.Term 4, PII.None, PersonalData.SpecialCategory, User.Biometric`", + "postsCount": 0, + "posts": [] + }, + { + "id": "a7f09460-710d-4d32-9efc-2440b126b56e", + "href": "http://localhost:3000/api/v1/feed/a7f09460-710d-4d32-9efc-2440b126b56e", + "threadTs": 1646898854505, + "about": "<#E/chart/sample_superset.210/tags>", + "entityId": "3d36ce00-0252-4196-9478-fef3887272d6", + "createdBy": "anonymous", + "updatedAt": 1646898854505, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **tags**: `Health care.term1.COBRA, PII.Sensitive, PersonalData.Personal, User.CreditCardNumber`", + "postsCount": 0, + "posts": [] + }, + { + "id": "88a5a3d7-92e7-4348-aaae-f70b8d44ee9c", + "href": "http://localhost:3000/api/v1/feed/88a5a3d7-92e7-4348-aaae-f70b8d44ee9c", + "threadTs": 1646898531148, + "about": "<#E/table/bigquery_gcp.shopify.raw_product_catalog/columns/comments/tags>", + "entityId": "07244140-402d-48e0-9b68-3a0f078d334b", + "createdBy": "anonymous", + "updatedAt": 1646898531148, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **comments.tags**: `Health care.term1.COBRA`", + "postsCount": 0, + "posts": [] + }, + { + "id": "656c871a-1304-46eb-b087-f8f52c938dba", + "href": "http://localhost:3000/api/v1/feed/656c871a-1304-46eb-b087-f8f52c938dba", + "threadTs": 1646897121403, + "about": "<#E/table/bigquery_gcp.shopify.raw_product_catalog/columns/store_address/tags>", + "entityId": "07244140-402d-48e0-9b68-3a0f078d334b", + "createdBy": "anonymous", + "updatedAt": 1646897121403, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **store_address.tags**: `PII.Sensitive, PersonalData.Personal, User.Address`", + "postsCount": 0, + "posts": [] + }, + { + "id": "c8197298-9dac-47ae-986e-a3acd301ec25", + "href": "http://localhost:3000/api/v1/feed/c8197298-9dac-47ae-986e-a3acd301ec25", + "threadTs": 1646897102116, + "about": "<#E/table/bigquery_gcp.shopify.raw_product_catalog/columns/platform/tags>", + "entityId": "07244140-402d-48e0-9b68-3a0f078d334b", + "createdBy": "anonymous", + "updatedAt": 1646897102116, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **platform.tags**: `Health care.Term 2`", + "postsCount": 0, + "posts": [] + }, + { + "id": "8f7c0054-6ed0-4d95-84fd-3da13f960a64", + "href": "http://localhost:3000/api/v1/feed/8f7c0054-6ed0-4d95-84fd-3da13f960a64", + "threadTs": 1646864051400, + "about": "<#E/table/bigquery_gcp.shopify.dim_shop/columns/shop_id/tags>", + "entityId": "6cf29b74-776d-488a-be4d-688fdcfdd849", + "createdBy": "anonymous", + "updatedAt": 1646864051400, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **shop_id.tags**: `PII.Sensitive, PersonalData.Personal, User.Address`", + "postsCount": 0, + "posts": [] + }, + { + "id": "ce6924a5-0f53-4077-ab7d-b7fc7116420c", + "href": "http://localhost:3000/api/v1/feed/ce6924a5-0f53-4077-ab7d-b7fc7116420c", + "threadTs": 1646850510350, + "about": "<#E/table/bigquery_gcp.shopify.dim_shop/description>", + "entityId": "6cf29b74-776d-488a-be4d-688fdcfdd849", + "createdBy": "anonymous", + "updatedAt": 1646850510350, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **description** : desc1", + "postsCount": 0, + "posts": [] + }, + { + "id": "ed2b1845-672e-4708-8990-d795ead5af37", + "href": "http://localhost:3000/api/v1/feed/ed2b1845-672e-4708-8990-d795ead5af37", + "threadTs": 1646850497309, + "about": "<#E/table/bigquery_gcp.shopify.dim_shop/description>", + "entityId": "6cf29b74-776d-488a-be4d-688fdcfdd849", + "createdBy": "anonymous", + "updatedAt": 1646850497309, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **description** to desc1", + "postsCount": 0, + "posts": [] + }, + { + "id": "205fdb57-7e4a-4398-b1b7-56598af3dc26", + "href": "http://localhost:3000/api/v1/feed/205fdb57-7e4a-4398-b1b7-56598af3dc26", + "threadTs": 1646850045221, + "about": "<#E/table/bigquery_gcp.shopify.dim_shop/description>", + "entityId": "6cf29b74-776d-488a-be4d-688fdcfdd849", + "createdBy": "anonymous", + "updatedAt": 1646850045221, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **description** to desc", + "postsCount": 0, + "posts": [] + }, + { + "id": "521249a8-c95a-4624-9376-07f109b66641", + "href": "http://localhost:3000/api/v1/feed/521249a8-c95a-4624-9376-07f109b66641", + "threadTs": 1646812604025, + "about": "<#E/webhook/test webhook/eventFilters>", + "entityId": "03462d3e-1972-49b0-8278-3f1a18e32a20", + "createdBy": "anonymous", + "updatedAt": 1646812604025, + "updatedBy": "anonymous", + "resolved": false, + "message": "Deleted **eventFilters**", + "postsCount": 0, + "posts": [] + }, + { + "id": "21ba4967-6035-44cf-9895-47f0a924bde2", + "href": "http://localhost:3000/api/v1/feed/21ba4967-6035-44cf-9895-47f0a924bde2", + "threadTs": 1646812108507, + "about": "<#E/webhook/test webhook/eventFilters>", + "entityId": "03462d3e-1972-49b0-8278-3f1a18e32a20", + "createdBy": "anonymous", + "updatedAt": 1646812108507, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **eventFilters** :
entities: [\"topic\",\"table\"]", + "postsCount": 0, + "posts": [] + }, + { + "id": "94aac636-6d0b-44cb-a8a2-f425cc00598e", + "href": "http://localhost:3000/api/v1/feed/94aac636-6d0b-44cb-a8a2-f425cc00598e", + "threadTs": 1646811489393, + "about": "<#E/webhook/test webhook/failureDetails>", + "entityId": "03462d3e-1972-49b0-8278-3f1a18e32a20", + "createdBy": "anonymous", + "updatedAt": 1646811489393, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **failureDetails**: `{}`", + "postsCount": 0, + "posts": [] + }, + { + "id": "625a1545-9351-4202-86b0-98b6ad711b21", + "href": "http://localhost:3000/api/v1/feed/625a1545-9351-4202-86b0-98b6ad711b21", + "threadTs": 1646811231753, + "about": "<#E/messagingService/sample_kafka/schemaRegistry>", + "entityId": "76d35f32-c44d-4db7-86b6-1dbdc54221ad", + "createdBy": "anonymous", + "updatedAt": 1646811231753, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **schemaRegistry** : http://localhost:8081localhost:8084", + "postsCount": 0, + "posts": [] + }, + { + "id": "ae2490c2-bc7c-47aa-bf99-9b7249e503ad", + "href": "http://localhost:3000/api/v1/feed/ae2490c2-bc7c-47aa-bf99-9b7249e503ad", + "threadTs": 1646810254487, + "about": "<#E/databaseService/bigquery_gcp/databaseConnection>", + "entityId": "683d96e5-a8d3-4bbd-815c-08d3b15e542e", + "createdBy": "anonymous", + "updatedAt": 1646810254487, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **databaseConnection** :
password: \"password\"\"meta\"", + "postsCount": 0, + "posts": [] + }, + { + "id": "9bbe5565-3dcc-448a-a4f0-c4332b8237b5", + "href": "http://localhost:3000/api/v1/feed/9bbe5565-3dcc-448a-a4f0-c4332b8237b5", + "threadTs": 1646796687918, + "about": "<#E/dashboard/sample_superset.51/owner>", + "entityId": "83b55271-3cf1-476b-a393-094c7a42e07f", + "createdBy": "anonymous", + "updatedAt": 1646796687918, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **owner**: `Cloud_Infra`", + "postsCount": 0, + "posts": [] + }, + { + "id": "8f9d0bea-e7de-485d-a217-9ad1430d8ae3", + "href": "http://localhost:3000/api/v1/feed/8f9d0bea-e7de-485d-a217-9ad1430d8ae3", + "threadTs": 1646796667748, + "about": "<#E/dashboard/sample_superset.eta_predictions_performance/owner>", + "entityId": "7468a313-6905-4d50-a0d2-e6175bf8e58d", + "createdBy": "anonymous", + "updatedAt": 1646796667748, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **owner**: `Aaron Johnson`", + "postsCount": 0, + "posts": [] + }, + { + "id": "e64afa98-efde-4668-91e3-d4cc9d6d1bdd", + "href": "http://localhost:3000/api/v1/feed/e64afa98-efde-4668-91e3-d4cc9d6d1bdd", + "threadTs": 1646796656817, + "about": "<#E/pipeline/sample_airflow.hive_etl/owner>", + "entityId": "c02d1b74-d19a-40f1-94bc-04dc255d37cc", + "createdBy": "anonymous", + "updatedAt": 1646796656817, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **owner**: `Customer_Support`", + "postsCount": 0, + "posts": [] + }, + { + "id": "3138fdcd-d95e-4516-a272-c44a648ae78f", + "href": "http://localhost:3000/api/v1/feed/3138fdcd-d95e-4516-a272-c44a648ae78f", + "threadTs": 1646796635492, + "about": "<#E/dashboard/sample_superset.forecast_sales_performance/owner>", + "entityId": "11d0a516-7cba-423b-bab6-e42dd69bfeae", + "createdBy": "anonymous", + "updatedAt": 1646796635492, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **owner** : Aaron JohnsonCustomer_Support", + "postsCount": 0, + "posts": [] + }, + { + "id": "8cedd49a-6a2e-4757-af09-9a2a1d376406", + "href": "http://localhost:3000/api/v1/feed/8cedd49a-6a2e-4757-af09-9a2a1d376406", + "threadTs": 1646796207696, + "about": "<#E/dashboard/sample_superset.forecast_sales_performance/owner>", + "entityId": "11d0a516-7cba-423b-bab6-e42dd69bfeae", + "createdBy": "anonymous", + "updatedAt": 1646796207696, + "updatedBy": "anonymous", + "resolved": false, + "message": "Updated **owner** : Data_Platform{\"id\":\"ea4851dc-76d5-4d00-bd87-39bee118f297\",\"type\":\"user\",\"name\":\"aaron_johnson0\"}", + "postsCount": 0, + "posts": [] + }, + { + "id": "a06c7ad6-0d65-4cf2-8f71-81ea8aa40e97", + "href": "http://localhost:3000/api/v1/feed/a06c7ad6-0d65-4cf2-8f71-81ea8aa40e97", + "threadTs": 1646793249895, + "about": "<#E/dashboard/sample_superset.forecast_sales_performance/owner>", + "entityId": "11d0a516-7cba-423b-bab6-e42dd69bfeae", + "createdBy": "anonymous", + "updatedAt": 1646793249895, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **owner**: `{\"id\":\"accbd2d8-94d1-445d-a0c4-fb38de16901f\",\"type\":\"team\",\"name\":\"Data_Platform\",\"description\":\"This is Data_Platform description.\"}`", + "postsCount": 0, + "posts": [] + }, + { + "id": "dde6b06a-c6c4-4eee-9f93-4924621dcec8", + "href": "http://localhost:3000/api/v1/feed/dde6b06a-c6c4-4eee-9f93-4924621dcec8", + "threadTs": 1646787577136, + "about": "<#E/glossaryTerm/Health care.term1/synonyms>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646787577136, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: `synonym5`", + "postsCount": 0, + "posts": [] + }, + { + "id": "9eda209c-a6e4-41e4-9f9c-99de3f2e6b3c", + "href": "http://localhost:3000/api/v1/feed/9eda209c-a6e4-41e4-9f9c-99de3f2e6b3c", + "threadTs": 1646787557944, + "about": "<#E/glossaryTerm/Health care.term 3/synonyms>", + "entityId": "b49f56ba-66d3-491a-992e-295d83403d41", + "createdBy": "anonymous", + "updatedAt": 1646787557944, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: `syn1`", + "postsCount": 0, + "posts": [] + }, + { + "id": "b6f7b2df-0449-4b59-83b8-fd1f429aac8d", + "href": "http://localhost:3000/api/v1/feed/b6f7b2df-0449-4b59-83b8-fd1f429aac8d", + "threadTs": 1646780435486, + "about": "<#E/glossaryTerm/Health care.term 3/references>", + "entityId": "b49f56ba-66d3-491a-992e-295d83403d41", + "createdBy": "anonymous", + "updatedAt": 1646780435486, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **references**: `ref1`", + "postsCount": 0, + "posts": [] + }, + { + "id": "128276ce-8982-4b62-b936-57d400c5241b", + "href": "http://localhost:3000/api/v1/feed/128276ce-8982-4b62-b936-57d400c5241b", + "threadTs": 1646780306424, + "about": "<#E/glossaryTerm/Health care.Term 2/synonyms>", + "entityId": "1ee1645e-e74e-41fd-9802-20a436ca5a67", + "createdBy": "anonymous", + "updatedAt": 1646780306424, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: `term`", + "postsCount": 0, + "posts": [] + }, + { + "id": "7d50444d-b5f7-4fa8-a33c-e9b04ec343d4", + "href": "http://localhost:3000/api/v1/feed/7d50444d-b5f7-4fa8-a33c-e9b04ec343d4", + "threadTs": 1646780185429, + "about": "<#E/glossaryTerm/Health care.term1/reviewers>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646780185429, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `Alexander Jackson`", + "postsCount": 0, + "posts": [] + }, + { + "id": "c1664d31-89e5-4766-b312-9a591aa02666", + "href": "http://localhost:3000/api/v1/feed/c1664d31-89e5-4766-b312-9a591aa02666", + "threadTs": 1646780099506, + "about": "<#E/glossaryTerm/Health care.term1/reviewers>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646780099506, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `alex_pollard9`", + "postsCount": 0, + "posts": [] + }, + { + "id": "0cf9e768-ab71-43de-bd4a-4275ce524c5f", + "href": "http://localhost:3000/api/v1/feed/0cf9e768-ab71-43de-bd4a-4275ce524c5f", + "threadTs": 1646779787347, + "about": "<#E/glossaryTerm/Health care.term1/reviewers>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646779787347, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `benjamin_martinez5`", + "postsCount": 0, + "posts": [] + }, + { + "id": "442241c7-edb9-496e-ba15-83e1317667f9", + "href": "http://localhost:3000/api/v1/feed/442241c7-edb9-496e-ba15-83e1317667f9", + "threadTs": 1646779361730, + "about": "<#E/glossaryTerm/Health care.term1/reviewers>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646779361730, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `calvin_williams5`", + "postsCount": 0, + "posts": [] + }, + { + "id": "7af0f21f-792b-4fbb-8958-26e74a43c2ac", + "href": "http://localhost:3000/api/v1/feed/7af0f21f-792b-4fbb-8958-26e74a43c2ac", + "threadTs": 1646779138494, + "about": "<#E/glossaryTerm/Health care.term1/reviewers>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646779138494, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `aaron_singh2`", + "postsCount": 0, + "posts": [] + }, + { + "id": "8afd1fd6-dd7e-4dd4-aa0f-7f52ea663e2e", + "href": "http://localhost:3000/api/v1/feed/8afd1fd6-dd7e-4dd4-aa0f-7f52ea663e2e", + "threadTs": 1646778792176, + "about": "<#E/glossary/Health care/reviewers>", + "entityId": "f47b2a89-de2f-4ce1-bc59-9f7b57d55bb3", + "createdBy": "anonymous", + "updatedAt": 1646778792176, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `Alexander Russell`", + "postsCount": 0, + "posts": [] + }, + { + "id": "38c2bf1d-68cc-44a3-88ea-9386452147b5", + "href": "http://localhost:3000/api/v1/feed/38c2bf1d-68cc-44a3-88ea-9386452147b5", + "threadTs": 1646778734338, + "about": "<#E/glossaryTerm/Health care.Term 2/reviewers>", + "entityId": "1ee1645e-e74e-41fd-9802-20a436ca5a67", + "createdBy": "anonymous", + "updatedAt": 1646778734338, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `alexander_jackson5`", + "postsCount": 0, + "posts": [] + }, + { + "id": "79afd0cd-7235-4d73-bd37-4588f0b20dbf", + "href": "http://localhost:3000/api/v1/feed/79afd0cd-7235-4d73-bd37-4588f0b20dbf", + "threadTs": 1646778634265, + "about": "<#E/glossaryTerm/Health care.Term 2/reviewers>", + "entityId": "1ee1645e-e74e-41fd-9802-20a436ca5a67", + "createdBy": "anonymous", + "updatedAt": 1646778634265, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: ``", + "postsCount": 0, + "posts": [] + }, + { + "id": "0e2e8d2c-3db4-4782-8f58-37aae8052b71", + "href": "http://localhost:3000/api/v1/feed/0e2e8d2c-3db4-4782-8f58-37aae8052b71", + "threadTs": 1646778414267, + "about": "<#E/glossaryTerm/Health care.Term 2/references>", + "entityId": "1ee1645e-e74e-41fd-9802-20a436ca5a67", + "createdBy": "anonymous", + "updatedAt": 1646778414267, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **references**: ``", + "postsCount": 0, + "posts": [] + }, + { + "id": "488c5f6a-e2f7-4e86-b6cb-021c816717cf", + "href": "http://localhost:3000/api/v1/feed/488c5f6a-e2f7-4e86-b6cb-021c816717cf", + "threadTs": 1646777986970, + "about": "<#E/glossaryTerm/Health care.term1/tags>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646777986970, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **tags**: `PersonalData.Personal`", + "postsCount": 0, + "posts": [] + }, + { + "id": "255bcbd8-5b6b-4334-8dd0-b4b5d4c834a8", + "href": "http://localhost:3000/api/v1/feed/255bcbd8-5b6b-4334-8dd0-b4b5d4c834a8", + "threadTs": 1646777716906, + "about": "<#E/glossaryTerm/Health care.term1/synonyms>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646777716906, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: `term6`", + "postsCount": 0, + "posts": [] + }, + { + "id": "79efa1c3-e0a3-49ac-9ef0-adf2e0db9c78", + "href": "http://localhost:3000/api/v1/feed/79efa1c3-e0a3-49ac-9ef0-adf2e0db9c78", + "threadTs": 1646776878140, + "about": "<#E/glossaryTerm/Health care.term1/references>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646776878140, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **references**: ``", + "postsCount": 0, + "posts": [] + }, + { + "id": "f53a5ed5-40c0-4bbc-810d-e2aa6c4bd5ce", + "href": "http://localhost:3000/api/v1/feed/f53a5ed5-40c0-4bbc-810d-e2aa6c4bd5ce", + "threadTs": 1646773199888, + "about": "<#E/glossaryTerm/Health care.term1/synonyms>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646773199888, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: `\" term4\"`", + "postsCount": 0, + "posts": [] + }, + { + "id": "c91b8c8b-a02a-4d8d-a6cc-58b6b35e1ba3", + "href": "http://localhost:3000/api/v1/feed/c91b8c8b-a02a-4d8d-a6cc-58b6b35e1ba3", + "threadTs": 1646773168509, + "about": "<#E/glossaryTerm/Health care.term1/synonyms>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646773168509, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: ``", + "postsCount": 0, + "posts": [] + }, + { + "id": "ab722efe-b771-4139-bf10-9d6dc56704dd", + "href": "http://localhost:3000/api/v1/feed/ab722efe-b771-4139-bf10-9d6dc56704dd", + "threadTs": 1646772980448, + "about": "<#E/glossaryTerm/Health care.term1/synonyms>", + "entityId": "f1ef79fa-6114-4b4d-aedd-1a77edece206", + "createdBy": "anonymous", + "updatedAt": 1646772980448, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **synonyms**: ``", + "postsCount": 0, + "posts": [] + }, + { + "id": "502cccaa-0909-40d2-b663-d7c45fe5be53", + "href": "http://localhost:3000/api/v1/feed/502cccaa-0909-40d2-b663-d7c45fe5be53", + "threadTs": 1646772811331, + "about": "<#E/glossary/Health care/reviewers>", + "entityId": "f47b2a89-de2f-4ce1-bc59-9f7b57d55bb3", + "createdBy": "anonymous", + "updatedAt": 1646772811331, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `Alec Kane`", + "postsCount": 0, + "posts": [] + }, + { + "id": "528ccc9b-35f7-49d9-8b48-f79580f35e61", + "href": "http://localhost:3000/api/v1/feed/528ccc9b-35f7-49d9-8b48-f79580f35e61", + "threadTs": 1646772618112, + "about": "<#E/glossary/Health care/reviewers>", + "entityId": "f47b2a89-de2f-4ce1-bc59-9f7b57d55bb3", + "createdBy": "anonymous", + "updatedAt": 1646772618112, + "updatedBy": "anonymous", + "resolved": false, + "message": "Added **reviewers**: `Adam Matthews`", + "postsCount": 0, + "posts": [] + } + ] +} \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/roles/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/roles/GET.json new file mode 100644 index 00000000000..14056c3585c --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/roles/GET.json @@ -0,0 +1,31 @@ +{ + "data": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "name": "DataConsumer", + "displayName": "Data Consumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "version": 0.1, + "updatedAt": 1646772043913, + "updatedBy": "admin", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378", + "deleted": false, + "defaultRole": true + }, + { + "id": "6d61de33-2943-452d-ace0-5fd3a8a188fe", + "name": "DataSteward", + "displayName": "Data Steward", + "description": "Users with Data Steward role are responsible for ensuring correctness of metadata for data assets, thereby facilitating data governance principles within the organization.
Data Stewards can update metadata for any entity.", + "version": 0.1, + "updatedAt": 1646772043940, + "updatedBy": "admin", + "href": "http://localhost:3000/api/v1/roles/6d61de33-2943-452d-ace0-5fd3a8a188fe", + "deleted": false, + "defaultRole": false + } + ], + "paging": { + "total": 2 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET.js b/openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET.js new file mode 100644 index 00000000000..1d1b2f71a89 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET.js @@ -0,0 +1,39 @@ +/* + * Copyright 2021 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. + */ + +/* eslint-disable */ +const fs = require('fs'); +const path = require('path'); + +module.exports = function (request, response) { + let targetFileName = 'GET.json'; + + // Check is a type parameter exist + if (request.query.q) { + // Generate a new targetfilename with that q parameter + const q = request.query.q; + if (q.toString().includes('owner')) { + targetFileName = 'GET_owner.json'; + } + } + const filePath = path.join(__dirname, targetFileName); + // If file does not exist then respond with 404 header + try { + fs.accessSync(filePath); + } + catch (err) { + return response.status(404).end(); + } + // Respond with filePath + response.sendFile(filePath); +} \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET_owner.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET_owner.json new file mode 100644 index 00000000000..9db5562528b --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/search/query/GET_owner.json @@ -0,0 +1,306 @@ +{ + "took": 8, + "timed_out": false, + "_shards": { + "total": 4, + "successful": 4, + "skipped": 0, + "failed": 0 + }, + "hits": { + "total": { + "value": 2, + "relation": "eq" + }, + "max_score": 2.4637282, + "hits": [ + { + "_index": "table_search_index", + "_type": "_doc", + "_id": "07244140-402d-48e0-9b68-3a0f078d334b", + "_score": 2.4637282, + "_source": { + "name": "raw_product_catalog", + "fqdn": "bigquery_gcp.shopify.raw_product_catalog", + "service": "bigquery_gcp", + "deleted": false, + "suggest": [ + { + "input": "bigquery_gcp.shopify.raw_product_catalog", + "weight": 5 + }, + { + "input": "raw_product_catalog", + "weight": 10 + } + ], + "description": "This is a raw product catalog table contains the product listing, price, seller etc.. represented in our online DB.", + "tags": [ + "Health care.Term 2", + "PII.Sensitive", + "PersonalData.Personal", + "User.Address" + ], + "followers": [], + "database": "shopify", + "display_name": "raw_product_catalog", + "service_type": "BigQuery", + "service_category": "databaseService", + "entity_type": "table", + "last_updated_timestamp": 1646948504918, + "change_descriptions": [ + { + "updatedBy": "anonymous", + "updatedAt": 1646772061575, + "fieldsAdded": [], + "fieldsUpdated": [], + "fieldsDeleted": [] + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [ + { + "newValue": "[{\"tagFQN\":\"Health care.Term 2\",\"source\":\"Glossary\",\"labelType\":\"Manual\",\"state\":\"Confirmed\"}]", + "name": "columns.platform.tags" + } + ], + "fieldsUpdated": [], + "fieldsDeleted": [], + "updatedAt": 1646897095509 + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [ + { + "newValue": "[{\"tagFQN\":\"PII.Sensitive\",\"description\":\"PII which if lost, compromised, or disclosed without authorization, could result in substantial harm, embarrassment, inconvenience, or unfairness to an individual.\",\"source\":\"Tag\",\"labelType\":\"Derived\",\"state\":\"Confirmed\"},{\"tagFQN\":\"PersonalData.Personal\",\"description\":\"Data that can be used to directly or indirectly identify a person.\",\"source\":\"Tag\",\"labelType\":\"Derived\",\"state\":\"Confirmed\"},{\"tagFQN\":\"User.Address\",\"source\":\"Tag\",\"labelType\":\"Manual\",\"state\":\"Confirmed\"}]", + "name": "columns.store_address.tags" + } + ], + "fieldsUpdated": [], + "fieldsDeleted": [], + "updatedAt": 1646897119471 + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [ + { + "newValue": "[{\"tagFQN\":\"Health care.term1.COBRA\",\"source\":\"Glossary\",\"labelType\":\"Manual\",\"state\":\"Confirmed\"}]", + "name": "columns.comments.tags" + } + ], + "fieldsUpdated": [], + "fieldsDeleted": [], + "updatedAt": 1646898527281 + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [ + { + "newValue": "{\"id\":\"ea4851dc-76d5-4d00-bd87-39bee118f297\",\"type\":\"user\",\"name\":\"aaron_johnson0\",\"displayName\":\"Aaron Johnson\"}", + "name": "owner" + } + ], + "fieldsUpdated": [], + "fieldsDeleted": [], + "updatedAt": 1646948483587 + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [], + "fieldsUpdated": [], + "fieldsDeleted": [ + { + "name": "columns.comments.tags", + "oldValue": "[{\"tagFQN\":\"Health care.term1.COBRA\",\"source\":\"Glossary\",\"labelType\":\"Manual\",\"state\":\"Confirmed\"}]" + } + ], + "updatedAt": 1646948504918 + } + ], + "table_id": "07244140-402d-48e0-9b68-3a0f078d334b", + "table_type": "Regular", + "column_names": [ + "comments", + "products", + "platform", + "store_address", + "first_order_date", + "last_order_date" + ], + "column_descriptions": [ + null, + null, + null, + null, + "The date (ISO 8601) and time (UTC) when the customer placed their first order. The format is YYYY-MM-DD HH:mm:ss (for example, 2016-02-05 17:04:01).", + "The date (ISO 8601) and time (UTC) when the customer placed their most recent order. The format is YYYY-MM-DD HH:mm:ss (for example, 2016-02-05 17:04:01)." + ], + "owner": "ea4851dc-76d5-4d00-bd87-39bee118f297" + } + }, + { + "_index": "dashboard_search_index", + "_type": "_doc", + "_id": "7468a313-6905-4d50-a0d2-e6175bf8e58d", + "_score": 2.0125778, + "_source": { + "name": "ETA Predictions Performance", + "fqdn": "sample_superset.eta_predictions_performance", + "service": "sample_superset", + "deleted": false, + "suggest": [ + { + "input": "sample_superset.eta_predictions_performance", + "weight": 5 + }, + { + "input": "ETA Predictions Performance", + "weight": 10 + } + ], + "description": "", + "tags": [ + "Health care.term 3.Term 4", + "PII.None", + "PersonalData.SpecialCategory", + "User.Biometric" + ], + "followers": [], + "display_name": "ETA Predictions Performance", + "service_type": "Superset", + "service_category": "dashboardService", + "entity_type": "dashboard", + "last_updated_timestamp": 1646899003376, + "change_descriptions": [ + { + "updatedBy": "anonymous", + "updatedAt": 1646772063477, + "fieldsAdded": null, + "fieldsUpdated": null, + "fieldsDeleted": null + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [ + { + "newValue": "{\"id\":\"ea4851dc-76d5-4d00-bd87-39bee118f297\",\"type\":\"user\",\"name\":\"aaron_johnson0\",\"displayName\":\"Aaron Johnson\"}", + "name": "owner" + } + ], + "fieldsUpdated": [], + "fieldsDeleted": [], + "updatedAt": 1646796667666 + }, + { + "updatedBy": "anonymous", + "fieldsAdded": [ + { + "newValue": "[{\"tagFQN\":\"Health care.term 3.Term 4\",\"source\":\"Glossary\",\"labelType\":\"Manual\",\"state\":\"Confirmed\"},{\"tagFQN\":\"PII.None\",\"description\":\"Non PII\",\"source\":\"Tag\",\"labelType\":\"Derived\",\"state\":\"Confirmed\"},{\"tagFQN\":\"PersonalData.SpecialCategory\",\"description\":\"GDPR special category data is personal information of data subjects that is especially sensitive, the exposure of which could significantly impact the rights and freedoms of data subjects and potentially be used against them for unlawful discrimination.\",\"source\":\"Tag\",\"labelType\":\"Derived\",\"state\":\"Confirmed\"},{\"tagFQN\":\"User.Biometric\",\"source\":\"Tag\",\"labelType\":\"Manual\",\"state\":\"Confirmed\"}]", + "name": "tags" + } + ], + "fieldsUpdated": [], + "fieldsDeleted": [], + "updatedAt": 1646899003376 + } + ], + "dashboard_id": "7468a313-6905-4d50-a0d2-e6175bf8e58d", + "chart_names": [ + "ETA Predictions Accuracy" + ], + "chart_descriptions": [ + "" + ], + "owner": "ea4851dc-76d5-4d00-bd87-39bee118f297" + } + } + ] + }, + "aggregations": { + "sterms#EntityType": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "dashboard", + "doc_count": 1 + }, + { + "key": "table", + "doc_count": 1 + } + ] + }, + "sterms#ServiceCategory": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "dashboardService", + "doc_count": 1 + }, + { + "key": "databaseService", + "doc_count": 1 + } + ] + }, + "sterms#Tier": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [] + }, + "sterms#Service": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "BigQuery", + "doc_count": 1 + }, + { + "key": "Superset", + "doc_count": 1 + } + ] + }, + "sterms#Tags": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "Health care.Term 2", + "doc_count": 1 + }, + { + "key": "Health care.term 3.Term 4", + "doc_count": 1 + }, + { + "key": "PII.None", + "doc_count": 1 + }, + { + "key": "PII.Sensitive", + "doc_count": 1 + }, + { + "key": "PersonalData.Personal", + "doc_count": 1 + }, + { + "key": "PersonalData.SpecialCategory", + "doc_count": 1 + }, + { + "key": "User.Address", + "doc_count": 1 + }, + { + "key": "User.Biometric", + "doc_count": 1 + } + ] + } + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/GET.json new file mode 100644 index 00000000000..881b0a68df5 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/GET.json @@ -0,0 +1,39 @@ +{ + "data": [ + { + "collection": { + "name": "databaseServices", + "documentation": "Database service collection", + "href": "http://localhost:3000/api/v1/services/databaseServices" + } + }, + { + "collection": { + "name": "dashboardServices", + "documentation": "Dashboard service collection", + "href": "http://localhost:3000/api/v1/services/dashboardServices" + } + }, + { + "collection": { + "name": "messagingServices", + "documentation": "Messaging service collection", + "href": "http://localhost:3000/api/v1/services/messagingServices" + } + }, + { + "collection": { + "name": "pipelineServices", + "documentation": "Pipeline service collection", + "href": "http://localhost:3000/api/v1/services/pipelineServices" + } + }, + { + "collection": { + "name": "storageServices", + "documentation": "Storage service collection", + "href": "http://localhost:3000/api/v1/services/storageServices" + } + } + ] +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/dashboardServices/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/dashboardServices/GET.json new file mode 100644 index 00000000000..2878a1fdfc0 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/dashboardServices/GET.json @@ -0,0 +1,20 @@ +{ + "data": [ + { + "id": "794583e6-5597-44a2-9155-f8b06351af3c", + "name": "sample_superset", + "serviceType": "Superset", + "version": 0.1, + "updatedAt": 1646772050746, + "updatedBy": "anonymous", + "dashboardUrl": "http://localhost:8088", + "username": "admin", + "password": "admin", + "href": "http://localhost:3000/api/v1/services/dashboardServices/794583e6-5597-44a2-9155-f8b06351af3c", + "deleted": false + } + ], + "paging": { + "total": 1 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/databaseServices/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/databaseServices/GET.json new file mode 100644 index 00000000000..91f96280e25 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/databaseServices/GET.json @@ -0,0 +1,51 @@ +{ + "data": [ + { + "id": "683d96e5-a8d3-4bbd-815c-08d3b15e542e", + "name": "bigquery_gcp", + "serviceType": "BigQuery", + "databaseConnection": { + "username": "user", + "password": "meta", + "hostPort": "localhost:9999", + "database": "warehouse", + "connectionOptions": {}, + "connectionArguments": {} + }, + "version": 0.3, + "updatedAt": 1646810254417, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/services/databaseServices/683d96e5-a8d3-4bbd-815c-08d3b15e542e", + "changeDescription": { + "fieldsAdded": [], + "fieldsUpdated": [ + { + "name": "databaseConnection", + "oldValue": "{\"username\":\"user\",\"password\":\"password\",\"hostPort\":\"localhost:9999\",\"database\":\"warehouse\",\"connectionOptions\":{},\"connectionArguments\":{}}", + "newValue": "{\"username\":\"user\",\"password\":\"meta\",\"hostPort\":\"localhost:9999\",\"database\":\"warehouse\",\"connectionOptions\":{},\"connectionArguments\":{}}" + } + ], + "fieldsDeleted": [], + "previousVersion": 0.2 + }, + "deleted": false + }, + { + "id": "cedc92a4-8095-425f-818f-1893304db1bc", + "name": "glue", + "serviceType": "Glue", + "description": "Glue service used for table with location", + "databaseConnection": { + "hostPort": "localhost:8000" + }, + "version": 0.1, + "updatedAt": 1646772050639, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/services/databaseServices/cedc92a4-8095-425f-818f-1893304db1bc", + "deleted": false + } + ], + "paging": { + "total": 2 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/messagingServices/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/messagingServices/GET.json new file mode 100644 index 00000000000..0b8dddb4dae --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/messagingServices/GET.json @@ -0,0 +1,33 @@ +{ + "data": [ + { + "id": "76d35f32-c44d-4db7-86b6-1dbdc54221ad", + "name": "sample_kafka", + "serviceType": "Kafka", + "version": 0.2, + "updatedAt": 1646811226877, + "updatedBy": "anonymous", + "brokers": [ + "localhost:9092" + ], + "schemaRegistry": "http://localhost:8084", + "href": "http://localhost:3000/api/v1/services/messagingServices/76d35f32-c44d-4db7-86b6-1dbdc54221ad", + "changeDescription": { + "fieldsAdded": [], + "fieldsUpdated": [ + { + "name": "schemaRegistry", + "oldValue": "http://localhost:8081", + "newValue": "http://localhost:8084" + } + ], + "fieldsDeleted": [], + "previousVersion": 0.1 + }, + "deleted": false + } + ], + "paging": { + "total": 1 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/pipelineServices/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/pipelineServices/GET.json new file mode 100644 index 00000000000..8bcd1a8c062 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/services/pipelineServices/GET.json @@ -0,0 +1,19 @@ +{ + "data": [ + { + "id": "db99cef2-7618-4a36-a5cc-0c13b0c1adfc", + "name": "sample_airflow", + "serviceType": "Airflow", + "description": "Airflow service", + "version": 0.1, + "updatedAt": 1646772050776, + "updatedBy": "anonymous", + "pipelineUrl": "http://localhost:8080", + "href": "http://localhost:8585/api/v1/services/pipelineServices/db99cef2-7618-4a36-a5cc-0c13b0c1adfc", + "deleted": false + } + ], + "paging": { + "total": 1 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/teams/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/teams/GET.json new file mode 100644 index 00000000000..a90dde348f0 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/teams/GET.json @@ -0,0 +1,91 @@ +{ + "data": [ + { + "id": "3c1417e3-9e53-4824-91a1-1967fc4940ea", + "name": "Cloud_Infra", + "displayName": "Cloud_Infra", + "description": "This is Cloud_Infra description.", + "version": 0.1, + "updatedAt": 1646772050836, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/3c1417e3-9e53-4824-91a1-1967fc4940ea", + "deleted": false, + "defaultRoles": [] + }, + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "name": "Customer_Support", + "displayName": "Customer_Support", + "description": "This is Customer_Support description.", + "version": 0.1, + "updatedAt": 1646772050977, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "deleted": false, + "defaultRoles": [] + }, + { + "id": "accbd2d8-94d1-445d-a0c4-fb38de16901f", + "name": "Data_Platform", + "displayName": "Data_Platform", + "description": "This is Data_Platform description.", + "version": 0.1, + "updatedAt": 1646772051418, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/accbd2d8-94d1-445d-a0c4-fb38de16901f", + "deleted": false, + "defaultRoles": [] + }, + { + "id": "672f3cfd-7b5a-48af-911b-e221d6766b85", + "name": "Finance", + "displayName": "Finance", + "description": "This is Finance description.", + "version": 0.1, + "updatedAt": 1646772051471, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/672f3cfd-7b5a-48af-911b-e221d6766b85", + "deleted": false, + "defaultRoles": [] + }, + { + "id": "9ecbb695-a033-445f-8b8a-7b2e98374f56", + "name": "Legal", + "displayName": "Legal", + "description": "This is Legal description.", + "version": 0.1, + "updatedAt": 1646772051101, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/9ecbb695-a033-445f-8b8a-7b2e98374f56", + "deleted": false, + "defaultRoles": [] + }, + { + "id": "a1a9d760-e042-44b2-9989-1a3ef6a67026", + "name": "Marketplace", + "displayName": "Marketplace", + "description": "This is Marketplace description.", + "version": 0.1, + "updatedAt": 1646772051643, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/a1a9d760-e042-44b2-9989-1a3ef6a67026", + "deleted": false, + "defaultRoles": [] + }, + { + "id": "d8db7780-e64e-418c-9a37-fc087ece1a61", + "name": "Payments", + "displayName": "Payments", + "description": "This is Payments description.", + "version": 0.1, + "updatedAt": 1646772051179, + "updatedBy": "anonymous", + "href": "http://localhost:3000/api/v1/teams/d8db7780-e64e-418c-9a37-fc087ece1a61", + "deleted": false, + "defaultRoles": [] + } + ], + "paging": { + "total": 7 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/users/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/users/GET.json new file mode 100644 index 00000000000..8470c37af8e --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/users/GET.json @@ -0,0 +1,656 @@ +{ + "data": [ + { + "id": "ea4851dc-76d5-4d00-bd87-39bee118f297", + "name": "aaron_johnson0", + "displayName": "Aaron Johnson", + "version": 0.1, + "updatedAt": 1646772050864, + "updatedBy": "anonymous", + "email": "aaron_johnson0@gmail.com", + "href": "http://localhost:3000/api/v1/users/ea4851dc-76d5-4d00-bd87-39bee118f297", + "isAdmin": false, + "teams": [ + { + "id": "3c1417e3-9e53-4824-91a1-1967fc4940ea", + "type": "team", + "name": "Cloud_Infra", + "description": "This is Cloud_Infra description.", + "displayName": "Cloud_Infra", + "href": "http://localhost:3000/api/v1/teams/3c1417e3-9e53-4824-91a1-1967fc4940ea" + } + ], + "deleted": false, + "roles": [ + { + "id": "6d61de33-2943-452d-ace0-5fd3a8a188fe", + "type": "role", + "name": "DataSteward", + "description": "Users with Data Steward role are responsible for ensuring correctness of metadata for data assets, thereby facilitating data governance principles within the organization.
Data Stewards can update metadata for any entity.", + "displayName": "Data Steward", + "href": "http://localhost:3000/api/v1/roles/6d61de33-2943-452d-ace0-5fd3a8a188fe" + }, + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "42832c1f-c8f7-4f5e-adce-11b57c29960c", + "name": "aaron_singh2", + "displayName": "Aaron Singh", + "version": 0.1, + "updatedAt": 1646772050920, + "updatedBy": "anonymous", + "email": "aaron_singh2@gmail.com", + "href": "http://localhost:3000/api/v1/users/42832c1f-c8f7-4f5e-adce-11b57c29960c", + "isAdmin": false, + "teams": [ + { + "id": "3c1417e3-9e53-4824-91a1-1967fc4940ea", + "type": "team", + "name": "Cloud_Infra", + "description": "This is Cloud_Infra description.", + "displayName": "Cloud_Infra", + "href": "http://localhost:3000/api/v1/teams/3c1417e3-9e53-4824-91a1-1967fc4940ea" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "0540dbf2-5c63-4065-89b0-38e73b6ede7c", + "name": "aaron_warren5", + "displayName": "Aaron Warren", + "version": 0.1, + "updatedAt": 1646772051010, + "updatedBy": "anonymous", + "email": "aaron_warren5@gmail.com", + "href": "http://localhost:3000/api/v1/users/0540dbf2-5c63-4065-89b0-38e73b6ede7c", + "isAdmin": false, + "teams": [ + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "type": "team", + "name": "Customer_Support", + "description": "This is Customer_Support description.", + "displayName": "Customer_Support", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "cbd91d28-e063-4fc0-be4f-c6bd915be5d2", + "name": "adam_matthews2", + "displayName": "Adam Matthews", + "version": 0.1, + "updatedAt": 1646772051121, + "updatedBy": "anonymous", + "email": "adam_matthews2@gmail.com", + "href": "http://localhost:3000/api/v1/users/cbd91d28-e063-4fc0-be4f-c6bd915be5d2", + "isAdmin": false, + "teams": [ + { + "id": "9ecbb695-a033-445f-8b8a-7b2e98374f56", + "type": "team", + "name": "Legal", + "description": "This is Legal description.", + "displayName": "Legal", + "href": "http://localhost:3000/api/v1/teams/9ecbb695-a033-445f-8b8a-7b2e98374f56" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "8f1a9daf-0307-4bc9-8c87-94881e7bed29", + "name": "adam_rodriguez9", + "displayName": "Adam Rodriguez", + "version": 0.1, + "updatedAt": 1646772051193, + "updatedBy": "anonymous", + "email": "adam_rodriguez9@gmail.com", + "href": "http://localhost:3000/api/v1/users/8f1a9daf-0307-4bc9-8c87-94881e7bed29", + "isAdmin": false, + "teams": [ + { + "id": "d8db7780-e64e-418c-9a37-fc087ece1a61", + "type": "team", + "name": "Payments", + "description": "This is Payments description.", + "displayName": "Payments", + "href": "http://localhost:3000/api/v1/teams/d8db7780-e64e-418c-9a37-fc087ece1a61" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "47431cb0-bdb2-4c98-98ff-663e45a7e16f", + "name": "alec_kane4", + "displayName": "Alec Kane", + "version": 0.1, + "updatedAt": 1646772051248, + "updatedBy": "anonymous", + "email": "alec_kane4@gmail.com", + "href": "http://localhost:3000/api/v1/users/47431cb0-bdb2-4c98-98ff-663e45a7e16f", + "isAdmin": false, + "teams": [ + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "type": "team", + "name": "Customer_Support", + "description": "This is Customer_Support description.", + "displayName": "Customer_Support", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "edd58290-d220-41b1-a1e7-0162d15d1ba4", + "name": "alex_pollard9", + "displayName": "Alex Pollard", + "version": 0.1, + "updatedAt": 1646772051289, + "updatedBy": "anonymous", + "email": "alex_pollard9@gmail.com", + "href": "http://localhost:3000/api/v1/users/edd58290-d220-41b1-a1e7-0162d15d1ba4", + "isAdmin": false, + "teams": [ + { + "id": "9ecbb695-a033-445f-8b8a-7b2e98374f56", + "type": "team", + "name": "Legal", + "description": "This is Legal description.", + "displayName": "Legal", + "href": "http://localhost:3000/api/v1/teams/9ecbb695-a033-445f-8b8a-7b2e98374f56" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "3029cb6c-623e-4060-a167-dadc59edc71b", + "name": "alexa_jordan3", + "displayName": "Alexa Jordan", + "version": 0.1, + "updatedAt": 1646772051337, + "updatedBy": "anonymous", + "email": "alexa_jordan3@gmail.com", + "href": "http://localhost:3000/api/v1/users/3029cb6c-623e-4060-a167-dadc59edc71b", + "isAdmin": false, + "teams": [ + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "type": "team", + "name": "Customer_Support", + "description": "This is Customer_Support description.", + "displayName": "Customer_Support", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "7a8f77dc-48e3-48a7-8f47-92cd6a77c626", + "name": "alexander_jackson5", + "displayName": "Alexander Jackson", + "version": 0.1, + "updatedAt": 1646772051374, + "updatedBy": "anonymous", + "email": "alexander_jackson5@gmail.com", + "href": "http://localhost:3000/api/v1/users/7a8f77dc-48e3-48a7-8f47-92cd6a77c626", + "isAdmin": false, + "teams": [ + { + "id": "3c1417e3-9e53-4824-91a1-1967fc4940ea", + "type": "team", + "name": "Cloud_Infra", + "description": "This is Cloud_Infra description.", + "displayName": "Cloud_Infra", + "href": "http://localhost:3000/api/v1/teams/3c1417e3-9e53-4824-91a1-1967fc4940ea" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "f9c4578e-09fe-42fd-9eb8-243728969bd0", + "name": "alexander_russell2", + "displayName": "Alexander Russell", + "version": 0.1, + "updatedAt": 1646772051433, + "updatedBy": "anonymous", + "email": "alexander_russell2@gmail.com", + "href": "http://localhost:3000/api/v1/users/f9c4578e-09fe-42fd-9eb8-243728969bd0", + "isAdmin": false, + "teams": [ + { + "id": "accbd2d8-94d1-445d-a0c4-fb38de16901f", + "type": "team", + "name": "Data_Platform", + "description": "This is Data_Platform description.", + "displayName": "Data_Platform", + "href": "http://localhost:3000/api/v1/teams/accbd2d8-94d1-445d-a0c4-fb38de16901f" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "e96e7544-32b6-4bb0-8f49-2b582ec25870", + "name": "amanda_bullock6", + "displayName": "Amanda Bullock", + "version": 0.1, + "updatedAt": 1646772051486, + "updatedBy": "anonymous", + "email": "amanda_bullock6@gmail.com", + "href": "http://localhost:3000/api/v1/users/e96e7544-32b6-4bb0-8f49-2b582ec25870", + "isAdmin": false, + "teams": [ + { + "id": "672f3cfd-7b5a-48af-911b-e221d6766b85", + "type": "team", + "name": "Finance", + "description": "This is Finance description.", + "displayName": "Finance", + "href": "http://localhost:3000/api/v1/teams/672f3cfd-7b5a-48af-911b-e221d6766b85" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "e386617d-b428-4f46-8361-ecff9a3fd890", + "name": "amanda_york8", + "displayName": "Amanda York", + "version": 0.1, + "updatedAt": 1646772051532, + "updatedBy": "anonymous", + "email": "amanda_york8@gmail.com", + "href": "http://localhost:3000/api/v1/users/e386617d-b428-4f46-8361-ecff9a3fd890", + "isAdmin": false, + "teams": [ + { + "id": "3c1417e3-9e53-4824-91a1-1967fc4940ea", + "type": "team", + "name": "Cloud_Infra", + "description": "This is Cloud_Infra description.", + "displayName": "Cloud_Infra", + "href": "http://localhost:3000/api/v1/teams/3c1417e3-9e53-4824-91a1-1967fc4940ea" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "aa287c52-95f4-4f10-86ce-2fa56ca7c706", + "name": "amber_green0", + "displayName": "Amber Green", + "version": 0.1, + "updatedAt": 1646772051569, + "updatedBy": "anonymous", + "email": "amber_green0@gmail.com", + "href": "http://localhost:3000/api/v1/users/aa287c52-95f4-4f10-86ce-2fa56ca7c706", + "isAdmin": false, + "teams": [ + { + "id": "672f3cfd-7b5a-48af-911b-e221d6766b85", + "type": "team", + "name": "Finance", + "description": "This is Finance description.", + "displayName": "Finance", + "href": "http://localhost:3000/api/v1/teams/672f3cfd-7b5a-48af-911b-e221d6766b85" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "6fce83f0-7cf8-484c-aa30-65e7a59cb725", + "name": "amy_stephens4", + "displayName": "Amy Stephens", + "version": 0.1, + "updatedAt": 1646772051606, + "updatedBy": "anonymous", + "email": "amy_stephens4@gmail.com", + "href": "http://localhost:3000/api/v1/users/6fce83f0-7cf8-484c-aa30-65e7a59cb725", + "isAdmin": false, + "teams": [ + { + "id": "672f3cfd-7b5a-48af-911b-e221d6766b85", + "type": "team", + "name": "Finance", + "description": "This is Finance description.", + "displayName": "Finance", + "href": "http://localhost:3000/api/v1/teams/672f3cfd-7b5a-48af-911b-e221d6766b85" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "f3cef424-60fd-46e4-89aa-ebeaaa80dffa", + "name": "ana_mckay7", + "displayName": "Ana Mckay", + "version": 0.1, + "updatedAt": 1646772051656, + "updatedBy": "anonymous", + "email": "ana_mckay7@gmail.com", + "href": "http://localhost:3000/api/v1/users/f3cef424-60fd-46e4-89aa-ebeaaa80dffa", + "isAdmin": false, + "teams": [ + { + "id": "a1a9d760-e042-44b2-9989-1a3ef6a67026", + "type": "team", + "name": "Marketplace", + "description": "This is Marketplace description.", + "displayName": "Marketplace", + "href": "http://localhost:3000/api/v1/teams/a1a9d760-e042-44b2-9989-1a3ef6a67026" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "c2070eb7-5c1a-42a6-b23c-f95eed6a5019", + "name": "andrea_bartlett6", + "displayName": "Andrea Bartlett", + "version": 0.1, + "updatedAt": 1646772051703, + "updatedBy": "anonymous", + "email": "andrea_bartlett6@gmail.com", + "href": "http://localhost:3000/api/v1/users/c2070eb7-5c1a-42a6-b23c-f95eed6a5019", + "isAdmin": false, + "teams": [ + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "type": "team", + "name": "Customer_Support", + "description": "This is Customer_Support description.", + "displayName": "Customer_Support", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "8cdf4d3e-e40b-4334-bcec-19496a7a047a", + "name": "andrea_reed7", + "displayName": "Andrea Reed", + "version": 0.1, + "updatedAt": 1646772051740, + "updatedBy": "anonymous", + "email": "andrea_reed7@gmail.com", + "href": "http://localhost:3000/api/v1/users/8cdf4d3e-e40b-4334-bcec-19496a7a047a", + "isAdmin": false, + "teams": [ + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "type": "team", + "name": "Customer_Support", + "description": "This is Customer_Support description.", + "displayName": "Customer_Support", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "af6e491f-dccd-44e9-a24e-6b3158172fd4", + "name": "andrew_hernandez9", + "displayName": "Andrew Hernandez", + "version": 0.1, + "updatedAt": 1646772051784, + "updatedBy": "anonymous", + "email": "andrew_hernandez9@gmail.com", + "href": "http://localhost:3000/api/v1/users/af6e491f-dccd-44e9-a24e-6b3158172fd4", + "isAdmin": false, + "teams": [ + { + "id": "9ecbb695-a033-445f-8b8a-7b2e98374f56", + "type": "team", + "name": "Legal", + "description": "This is Legal description.", + "displayName": "Legal", + "href": "http://localhost:3000/api/v1/teams/9ecbb695-a033-445f-8b8a-7b2e98374f56" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "629d0e3c-6c4a-4d02-8384-3ea081f0f2d3", + "name": "andrew_jackson3", + "displayName": "Andrew Jackson", + "version": 0.1, + "updatedAt": 1646772051832, + "updatedBy": "anonymous", + "email": "andrew_jackson3@gmail.com", + "href": "http://localhost:3000/api/v1/users/629d0e3c-6c4a-4d02-8384-3ea081f0f2d3", + "isAdmin": false, + "teams": [ + { + "id": "c6880bc8-73c1-4e45-92db-c2d6e22c45a9", + "type": "team", + "name": "Customer_Support", + "description": "This is Customer_Support description.", + "displayName": "Customer_Support", + "href": "http://localhost:3000/api/v1/teams/c6880bc8-73c1-4e45-92db-c2d6e22c45a9" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + }, + { + "id": "da372488-813e-45b7-8060-d7360d697929", + "name": "andrew_jennings3", + "displayName": "Andrew Jennings", + "version": 0.1, + "updatedAt": 1646772051876, + "updatedBy": "anonymous", + "email": "andrew_jennings3@gmail.com", + "href": "http://localhost:3000/api/v1/users/da372488-813e-45b7-8060-d7360d697929", + "isAdmin": false, + "teams": [ + { + "id": "d8db7780-e64e-418c-9a37-fc087ece1a61", + "type": "team", + "name": "Payments", + "description": "This is Payments description.", + "displayName": "Payments", + "href": "http://localhost:3000/api/v1/teams/d8db7780-e64e-418c-9a37-fc087ece1a61" + } + ], + "deleted": false, + "roles": [ + { + "id": "74236fa6-a0c1-4b83-a400-fceecb82e378", + "type": "role", + "name": "DataConsumer", + "description": "Users with Data Consumer role use different data assets for their day to day work.", + "displayName": "Data Consumer", + "href": "http://localhost:3000/api/v1/roles/74236fa6-a0c1-4b83-a400-fceecb82e378" + } + ] + } + ], + "paging": { + "after": "6GMaYAOKVB6uK-u60zruvEaYZMnwZkhUNAM48hJiRj4=", + "total": 103 + } +} diff --git a/openmetadata-ui/src/main/resources/ui/mock-api/v1/version/GET.json b/openmetadata-ui/src/main/resources/ui/mock-api/v1/version/GET.json new file mode 100644 index 00000000000..1307bbfd6c8 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/mock-api/v1/version/GET.json @@ -0,0 +1 @@ +{"version":"0.9.1-SNAPSHOT","revision":"7a805581e4350beddd10f5744bd43e6f76b186e7","timestamp":1647053206948} \ No newline at end of file diff --git a/openmetadata-ui/src/main/resources/ui/package.json b/openmetadata-ui/src/main/resources/ui/package.json index a39822f33f1..89fea77516c 100644 --- a/openmetadata-ui/src/main/resources/ui/package.json +++ b/openmetadata-ui/src/main/resources/ui/package.json @@ -87,6 +87,7 @@ "start": "NODE_ENV=development BABEL_ENV=development webpack serve --config ./webpack.config.dev.js --env development", "build": "NODE_ENV=production BABEL_ENV=production webpack --config ./webpack.config.prod.js --env production", "preinstall": "cd ../../../../.. && yarn install --frozen-lockfile", + "mock-api": "node ./mock-api/app.js", "test": "jest --passWithNoTests", "test:watch": "jest --passWithNoTests --watch", "test:coverage": "jest --passWithNoTests --coverage", @@ -141,6 +142,7 @@ "babel-jest": "^24.9.0", "babel-loader": "8.1.0", "clean-webpack-plugin": "^3.0.0", + "connect-api-mocker": "^1.10.0", "copy-webpack-plugin": "^7.0.0", "css-loader": "3.4.2", "eslint": "^6.6.0", @@ -155,6 +157,7 @@ "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.19.0", "eslint-plugin-react-hooks": "^1.6.1", + "express": "^4.17.3", "file-loader": "4.3.0", "fork-ts-checker-webpack-plugin": "^6.0.8", "html-webpack-plugin": "^4.5.1", diff --git a/openmetadata-ui/src/main/resources/ui/yarn.lock b/openmetadata-ui/src/main/resources/ui/yarn.lock index 0dc4198a214..aa6579675f9 100644 --- a/openmetadata-ui/src/main/resources/ui/yarn.lock +++ b/openmetadata-ui/src/main/resources/ui/yarn.lock @@ -2665,6 +2665,14 @@ accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7: mime-types "~2.1.24" negotiator "0.6.2" +accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + acorn-globals@^4.3.0: version "4.3.4" resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz#9fa1926addc11c97308c4e66d7add0d40c3272e7" @@ -3410,6 +3418,22 @@ body-parser@1.19.0: raw-body "2.4.0" type-is "~1.6.17" +body-parser@1.19.2, body-parser@^1.18.3: + version "1.19.2" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.2.tgz#4714ccd9c157d44797b8b5607d72c0b89952f26e" + integrity sha512-SAAwOxgoCKMGs9uUAUFHygfLAyaniaoun6I8mFY9pRAJL9+Kec34aU+oIjDhTycub1jozEfEwx1W1IuOYxVSFw== + dependencies: + bytes "3.1.2" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.2" + http-errors "1.8.1" + iconv-lite "0.4.24" + on-finished "~2.3.0" + qs "6.9.7" + raw-body "2.4.3" + type-is "~1.6.18" + bonjour@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/bonjour/-/bonjour-3.5.0.tgz#8e890a183d8ee9a2393b3844c691a42bcf7bc9f5" @@ -3536,6 +3560,11 @@ bytes@3.1.0, bytes@^3.0.0: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + cache-base@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" @@ -4014,6 +4043,14 @@ confusing-browser-globals@^1.0.9: resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz#30d1e7f3d1b882b25ec4933d1d1adac353d20a59" integrity sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA== +connect-api-mocker@^1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/connect-api-mocker/-/connect-api-mocker-1.10.0.tgz#557b797976feb61765cf3e870cba46a837a6dd8b" + integrity sha512-8DQ3Na4jgkxDQ71THu2Wuv/fZBJwyzzZyADNB2zV/nlDPPmhcvWL6H5qZ/JR22Bcg4XD5GIcFpKOM4C4Gm37Fw== + dependencies: + body-parser "^1.18.3" + chalk "^2.4.1" + connect-history-api-fallback@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc" @@ -4031,6 +4068,13 @@ content-disposition@0.5.3: dependencies: safe-buffer "5.1.2" +content-disposition@0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + content-type@~1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" @@ -4070,6 +4114,11 @@ cookie@0.4.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== +cookie@0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432" + integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA== + copy-descriptor@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" @@ -5577,6 +5626,42 @@ express@^4.17.1: utils-merge "1.0.1" vary "~1.1.2" +express@^4.17.3: + version "4.17.3" + resolved "https://registry.yarnpkg.com/express/-/express-4.17.3.tgz#f6c7302194a4fb54271b73a1fe7a06478c8f85a1" + integrity sha512-yuSQpz5I+Ch7gFrPCk4/c+dIBKlQUxtgwqzph132bsT6qhuzss6I8cLJQz7B3rFblzd6wtcI0ZbGltH/C4LjUg== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.19.2" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.4.2" + cookie-signature "1.0.6" + debug "2.6.9" + depd "~1.1.2" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "~1.1.2" + fresh "0.5.2" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.7" + qs "6.9.7" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.17.2" + serve-static "1.14.2" + setprototypeof "1.2.0" + statuses "~1.5.0" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + ext@^1.1.2: version "1.4.0" resolved "https://registry.yarnpkg.com/ext/-/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" @@ -6442,6 +6527,17 @@ http-errors@1.7.2, http-errors@~1.7.2: statuses ">= 1.5.0 < 2" toidentifier "1.0.0" +http-errors@1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c" + integrity sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g== + dependencies: + depd "~1.1.2" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.1" + http-errors@~1.6.2: version "1.6.3" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" @@ -6617,7 +6713,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.0, inherits@~2.0.3: +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.0, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -8542,6 +8638,11 @@ mime-db@1.49.0, "mime-db@>= 1.43.0 < 2": resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed" integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24: version "2.1.32" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5" @@ -8549,6 +8650,13 @@ mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.17, mime-types@~2.1.19, dependencies: mime-db "1.49.0" +mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + mime@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" @@ -8688,6 +8796,11 @@ ms@2.1.2, ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + multicast-dns-service-types@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901" @@ -8754,6 +8867,11 @@ negotiator@0.6.2: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + neo-async@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" @@ -9816,7 +9934,7 @@ prop-types@^15.5.10, prop-types@^15.8.1: object-assign "^4.1.1" react-is "^16.13.1" -proxy-addr@~2.0.5: +proxy-addr@~2.0.5, proxy-addr@~2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== @@ -9889,6 +10007,11 @@ qs@6.7.0: resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== +qs@6.9.7: + version "6.9.7" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.7.tgz#4610846871485e1e048f44ae3b94033f0e675afe" + integrity sha512-IhMFgUmuNpyRfxA90umL7ByLlgRXu6tIfKPpF5TmcfRLlLCckfP/g3IQmju6jjpu+Hh8rA+2p6A27ZSPOOHdKw== + qs@^6.5.2: version "6.10.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.2.tgz#c1431bea37fc5b24c5bdbafa20f16bdf2a4b9ffe" @@ -9994,6 +10117,16 @@ raw-body@2.4.0: iconv-lite "0.4.24" unpipe "1.0.0" +raw-body@2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.3.tgz#8f80305d11c2a0a545c2d9d89d7a0286fcead43c" + integrity sha512-UlTNLIcu0uzb4D2f4WltY6cVjLi+/jEN4lgEUj3E04tpMDpUlkBo/eSn6zou9hum2VMNpCCUone0O0WeJim07g== + dependencies: + bytes "3.1.2" + http-errors "1.8.1" + iconv-lite "0.4.24" + unpipe "1.0.0" + rc-motion@^2.0.1: version "2.4.5" resolved "https://registry.yarnpkg.com/rc-motion/-/rc-motion-2.4.5.tgz#b061c50bb29ecd3d735d5f4c40924a3c78226cbd" @@ -10884,7 +11017,7 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -11062,6 +11195,25 @@ send@0.17.1: range-parser "~1.2.1" statuses "~1.5.0" +send@0.17.2: + version "0.17.2" + resolved "https://registry.yarnpkg.com/send/-/send-0.17.2.tgz#926622f76601c41808012c8bf1688fe3906f7820" + integrity sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww== + dependencies: + debug "2.6.9" + depd "~1.1.2" + destroy "~1.0.4" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "1.8.1" + mime "1.6.0" + ms "2.1.3" + on-finished "~2.3.0" + range-parser "~1.2.1" + statuses "~1.5.0" + serialize-javascript@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa" @@ -11106,6 +11258,16 @@ serve-static@1.14.1: parseurl "~1.3.3" send "0.17.1" +serve-static@1.14.2: + version "1.14.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.2.tgz#722d6294b1d62626d41b43a013ece4598d292bfa" + integrity sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.17.2" + set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -11136,6 +11298,11 @@ setprototypeof@1.1.1: resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + shallow-clone@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" @@ -12104,6 +12271,11 @@ toidentifier@1.0.0: resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + totalist@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/totalist/-/totalist-1.1.0.tgz#a4d65a3e546517701e3e5c37a47a70ac97fe56df"