diff --git a/openmetadata-ui/src/main/resources/ui/src/components/LineageProvider/LineageProvider.tsx b/openmetadata-ui/src/main/resources/ui/src/components/LineageProvider/LineageProvider.tsx index f71309146db..7b3f5b80261 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/LineageProvider/LineageProvider.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/LineageProvider/LineageProvider.tsx @@ -108,7 +108,7 @@ const LineageProvider = ({ children }: LineageProviderProps) => { const { t } = useTranslation(); const { fqn: decodedFqn } = useFqn(); - const { isTourOpen } = useTourProvider(); + const { isTourOpen, isTourPage } = useTourProvider(); const [reactFlowInstance, setReactFlowInstance] = useState(); const [isDrawerOpen, setIsDrawerOpen] = useState(false); @@ -169,7 +169,7 @@ const LineageProvider = ({ children }: LineageProviderProps) => { config?: LineageConfig ) => { if (isTourOpen) { - setEntityLineage(mockDatasetData.entityLineage); + return; } else { setLoading(true); setInit(false); @@ -1065,6 +1065,16 @@ const LineageProvider = ({ children }: LineageProviderProps) => { onAddPipelineClick, ]); + useEffect(() => { + if (isTourOpen || isTourPage) { + setInit(true); + setLoading(false); + setEntityLineage( + mockDatasetData.entityLineage as unknown as EntityLineageReponse + ); + } + }, [isTourOpen, isTourPage]); + return (
>', + arrayDataType: 'STRUCT', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'platform', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.platform', + ordinalPosition: 6, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'MAP', + name: 'preference', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.preference', + ordinalPosition: 7, + dataTypeDisplay: 'map', + tags: [], + }, + { + dataLength: 1, + dataType: 'ARRAY', + name: 'shipping_address', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.shipping_address', + ordinalPosition: 8, + dataTypeDisplay: + 'array>', + arrayDataType: 'STRUCT', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'shipping_date', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.shipping_date', + ordinalPosition: 9, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'transaction_date', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.transaction_date', + ordinalPosition: 10, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'total_order_count', + description: + 'The total number of orders that the customer has made from this store across their lifetime.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.total_order_count', + ordinalPosition: 11, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'total_order_value', + description: + "The total amount of money that the customer has spent on orders from the store across their lifetime. The value is formatted in the store's currency.", + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.total_order_value', + ordinalPosition: 12, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'first_order_date', + description: + '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).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.first_order_date', + ordinalPosition: 13, + dataTypeDisplay: 'timestamp', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'last_order_date', + description: + '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).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.last_order_date', + ordinalPosition: 14, + dataTypeDisplay: 'timestamp', + tags: [], + }, + ], + displayName: 'raw_order', + description: + 'This is a raw orders table as represented in our online DB. This table contains all the orders by the customers and can be used to buid our dim and fact tables', + customMetrics: [], + tableType: 'Regular', + database: { + deleted: false, + displayName: 'ecommerce_db', + name: 'ecommerce_db', + description: + 'This **mock** database contains schemas related to shopify sales and orders with related dimension tables.', + id: '722b65a4-9205-4f11-a62d-6a8902cdab39', + type: 'database', + fullyQualifiedName: 'sample_data.ecommerce_db', + }, + columnNames: [ + 'comments', + 'creditcard', + 'membership', + 'orders', + 'platform', + 'preference', + 'shipping_address', + 'shipping_date', + 'transaction_date', + 'total_order_count', + 'total_order_value', + 'first_order_date', + 'last_order_date', + ], + tier: null, + totalVotes: 0, + usageSummary: { + date: '2024-02-02', + weeklyStats: { + percentileRank: 0, + count: 0, + }, + monthlyStats: { + percentileRank: 0, + count: 0, + }, + dailyStats: { + percentileRank: 0, + count: 0, + }, + }, + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + updatedAt: 1706855211252, + owner: null, + updatedBy: 'admin', + entityType: 'table', + dataProducts: [], + fullyQualifiedName: 'sample_data.ecommerce_db.shopify.raw_order', + version: 0.2, + tags: [], + followers: [], + deleted: false, + service: { + deleted: false, + displayName: 'sample_data', + name: 'sample_data', + id: '1e7f57b6-a165-410d-9962-1ccf54599cc7', + type: 'databaseService', + fullyQualifiedName: 'sample_data', + }, + domain: null, + name: 'raw_order', + votes: { + upVoters: [], + downVoters: [], + upVotes: 0, + downVotes: 0, + }, + }, + { + databaseSchema: { + deleted: false, + displayName: 'shopify', + name: 'shopify', + description: + 'This **mock** database contains schema related to shopify sales and orders with related dimension tables.', + id: '5cd86fad-873c-4e59-b9ff-a38967aac79d', + type: 'databaseSchema', + fullyQualifiedName: 'sample_data.ecommerce_db.shopify', + }, + serviceType: 'BigQuery', + lineage: [ + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify.fact_order', + id: '6364831b-6860-4b8a-b4a1-5de1840cf4f9', + type: 'table', + }, + pipeline: { + deleted: false, + name: 'update_fact_order_from_raw_order', + description: + 'Procedure to update fact order from raw order table', + id: 'a9a403bd-b74d-47cc-893d-b1de99658748', + type: 'storedProcedure', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.update_fact_order_from_raw_order', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: null, + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-6364831b-6860-4b8a-b4a1-5de1840cf4f9', + }, + ], + columns: [ + { + dataType: 'NUMERIC', + name: 'order_id', + description: + 'Unique numeric identifier for the order across Shopify stores. In your Shopify admin, this ID is used internally. Most merchants are familiar with the other ID that appears on orders in the Shopify admin. This ID can be found in the Name column.', + constraint: 'PRIMARY_KEY', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.order_id', + ordinalPosition: 1, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'api_client_id', + description: + 'The ID of the API client that called the Shopify API. This column is a foreign key reference to the api_client_id column in the dim_api_client table.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.api_client_id', + ordinalPosition: 2, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'billing_address_id', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.billing_address_id', + ordinalPosition: 3, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'customer_id', + description: + 'The ID of the customer. This column is a foreign key reference to the customer_id column in the dim_customer table.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.customer_id', + ordinalPosition: 4, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'location_id', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.location_id', + ordinalPosition: 5, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'shipping_address_id', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.shipping_address_id', + ordinalPosition: 6, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'shop_id', + description: + 'The ID of the store. This column is a foreign key reference to the shop_id column in the dim.shop table.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.shop_id', + ordinalPosition: 7, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'user_id', + description: + 'The ID of the staff member who created the order. This column is a foreign key reference to the ID in the dim_staff table. This column applies to Shopify POS orders and to orders that were converted from draft orders.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.user_id', + ordinalPosition: 8, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataLength: 100, + dataType: 'VARCHAR', + name: 'name', + description: + 'The identifier of the order that the merchant and customer sees. This is the ID that appears on the order in the Shopify admin. For example, #1001. By default, this identifier is unique to one store. If you have multiple stores, then use the order_id column to guarantee uniqueness across multiple stores.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.name', + ordinalPosition: 9, + dataTypeDisplay: 'varchar', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'total_price', + description: + 'The total price of the order, including shipping and taxes. This column includes gift card sales, but does not include returns. This value may not be accurate for API-imported orders. Do not use this column for financial calculations. Instead, use the total_price column in the sales table.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.total_price', + ordinalPosition: 10, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataLength: 100, + dataType: 'VARCHAR', + name: 'discount_code', + description: 'The discount code that was applied to the order.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.discount_code', + ordinalPosition: 11, + dataTypeDisplay: 'varchar', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'processed_at', + description: + 'The date (ISO 8601) and time (UTC) when the order was created. The format is YYYY-MM-DD HH:mm:ss (for example, 2016-02-05 17:04:01).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.processed_at', + ordinalPosition: 12, + dataTypeDisplay: 'timestamp', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'canceled_at', + description: + 'If the order was canceled, then this column contains the date (ISO 8601) and time (UTC) when the order was canceled. The format is YYYY-MM-DD HH:mm:ss (for example, 2016-02-05 17:04:01).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.canceled_at', + ordinalPosition: 13, + dataTypeDisplay: 'timestamp', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'deleted_at', + description: + 'If the order was deleted, then this column contains the date (ISO 8601) and time (UTC) when the order was deleted. The format is YYYY-MM-DD HH:mm:ss (for example, 2016-02-05 17:04:01).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.deleted_at', + ordinalPosition: 14, + dataTypeDisplay: 'timestamp', + tags: [], + }, + { + dataType: 'BOOLEAN', + name: 'test', + description: + 'True when the order is a test order, False otherwise.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.fact_order.test', + ordinalPosition: 15, + dataTypeDisplay: 'boolean', + tags: [], + }, + ], + displayName: 'fact_order', + description: + 'The orders table contains information about each order in your store. Although this table is good for generating order lists and joining with the dim_customer, use the sales table instead for computing financial or other metrics.', + customMetrics: [], + tableType: 'Regular', + database: { + deleted: false, + displayName: 'ecommerce_db', + name: 'ecommerce_db', + description: + 'This **mock** database contains schemas related to shopify sales and orders with related dimension tables.', + id: '722b65a4-9205-4f11-a62d-6a8902cdab39', + type: 'database', + fullyQualifiedName: 'sample_data.ecommerce_db', + }, + columnNames: [ + 'order_id', + 'api_client_id', + 'billing_address_id', + 'customer_id', + 'location_id', + 'shipping_address_id', + 'shop_id', + 'user_id', + 'name', + 'total_price', + 'discount_code', + 'processed_at', + 'canceled_at', + 'deleted_at', + 'test', + ], + tier: null, + totalVotes: 0, + usageSummary: { + date: '2024-02-02', + weeklyStats: { + percentileRank: 0, + count: 0, + }, + monthlyStats: { + percentileRank: 0, + count: 0, + }, + dailyStats: { + percentileRank: 0, + count: 0, + }, + }, + id: '6364831b-6860-4b8a-b4a1-5de1840cf4f9', + updatedAt: 1706855210286, + owner: null, + updatedBy: 'admin', + entityType: 'table', + dataProducts: [], + fullyQualifiedName: 'sample_data.ecommerce_db.shopify.fact_order', + version: 0.2, + tags: [], + followers: [], + deleted: false, + service: { + deleted: false, + displayName: 'sample_data', + name: 'sample_data', + id: '1e7f57b6-a165-410d-9962-1ccf54599cc7', + type: 'databaseService', + fullyQualifiedName: 'sample_data', + }, + domain: null, + name: 'fact_order', + votes: { + upVoters: [], + downVoters: [], + upVotes: 0, + downVotes: 0, + }, }, ], - downstreamEdges: [], + edges: [ + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify.fact_order', + id: '6364831b-6860-4b8a-b4a1-5de1840cf4f9', + type: 'table', + }, + pipeline: { + deleted: false, + name: 'update_fact_order_from_raw_order', + description: 'Procedure to update fact order from raw order table', + id: 'a9a403bd-b74d-47cc-893d-b1de99658748', + type: 'storedProcedure', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.update_fact_order_from_raw_order', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: null, + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-6364831b-6860-4b8a-b4a1-5de1840cf4f9', + }, + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify."dim.product.variant"', + id: 'd3e43ac3-8d05-45ed-9a30-94765dbfa7a3', + type: 'table', + }, + pipeline: { + deleted: false, + displayName: 'dim_product etl', + name: 'dim_product_etl', + description: 'diim_product ETL pipeline', + id: '7b42caac-154c-4d1e-9da2-2a560979a8d7', + type: 'pipeline', + fullyQualifiedName: 'sample_airflow.dim_product_etl', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: 'select * from sample_data.ecommerce_db.shopify.raw_order', + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-d3e43ac3-8d05-45ed-9a30-94765dbfa7a3', + }, + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify."dim.product"', + id: 'f65a4402-3e82-4238-b864-bc7c89bb2e2e', + type: 'table', + }, + pipeline: { + deleted: false, + displayName: 'dim_product etl', + name: 'dim_product_etl', + description: 'diim_product ETL pipeline', + id: '7b42caac-154c-4d1e-9da2-2a560979a8d7', + type: 'pipeline', + fullyQualifiedName: 'sample_airflow.dim_product_etl', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: 'select * from sample_data.ecommerce_db.shopify.raw_order', + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-f65a4402-3e82-4238-b864-bc7c89bb2e2e', + }, + ], + entity: { + databaseSchema: { + deleted: false, + displayName: 'shopify', + name: 'shopify', + description: + 'This **mock** database contains schema related to shopify sales and orders with related dimension tables.', + id: '5cd86fad-873c-4e59-b9ff-a38967aac79d', + type: 'databaseSchema', + fullyQualifiedName: 'sample_data.ecommerce_db.shopify', + }, + serviceType: 'BigQuery', + lineage: [ + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify.fact_order', + id: '6364831b-6860-4b8a-b4a1-5de1840cf4f9', + type: 'table', + }, + pipeline: { + deleted: false, + name: 'update_fact_order_from_raw_order', + description: 'Procedure to update fact order from raw order table', + id: 'a9a403bd-b74d-47cc-893d-b1de99658748', + type: 'storedProcedure', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.update_fact_order_from_raw_order', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: null, + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-6364831b-6860-4b8a-b4a1-5de1840cf4f9', + }, + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify."dim.product.variant"', + id: 'd3e43ac3-8d05-45ed-9a30-94765dbfa7a3', + type: 'table', + }, + pipeline: { + deleted: false, + displayName: 'dim_product etl', + name: 'dim_product_etl', + description: 'diim_product ETL pipeline', + id: '7b42caac-154c-4d1e-9da2-2a560979a8d7', + type: 'pipeline', + fullyQualifiedName: 'sample_airflow.dim_product_etl', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: 'select * from sample_data.ecommerce_db.shopify.raw_order', + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-d3e43ac3-8d05-45ed-9a30-94765dbfa7a3', + }, + { + toEntity: { + fqn: 'sample_data.ecommerce_db.shopify."dim.product"', + id: 'f65a4402-3e82-4238-b864-bc7c89bb2e2e', + type: 'table', + }, + pipeline: { + deleted: false, + displayName: 'dim_product etl', + name: 'dim_product_etl', + description: 'diim_product ETL pipeline', + id: '7b42caac-154c-4d1e-9da2-2a560979a8d7', + type: 'pipeline', + fullyQualifiedName: 'sample_airflow.dim_product_etl', + }, + fromEntity: { + fqn: 'sample_data.ecommerce_db.shopify.raw_order', + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + type: 'table', + }, + sqlQuery: 'select * from sample_data.ecommerce_db.shopify.raw_order', + description: null, + source: 'Manual', + doc_id: + 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372-f65a4402-3e82-4238-b864-bc7c89bb2e2e', + }, + ], + columns: [ + { + dataLength: 1, + dataType: 'STRING', + name: 'comments', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.comments', + ordinalPosition: 1, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'creditcard', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.creditcard', + ordinalPosition: 2, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'membership', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.membership', + ordinalPosition: 4, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'ARRAY', + name: 'orders', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.orders', + ordinalPosition: 5, + dataTypeDisplay: + 'array>', + arrayDataType: 'STRUCT', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'platform', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.platform', + ordinalPosition: 6, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'MAP', + name: 'preference', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.preference', + ordinalPosition: 7, + dataTypeDisplay: 'map', + tags: [], + }, + { + dataLength: 1, + dataType: 'ARRAY', + name: 'shipping_address', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.shipping_address', + ordinalPosition: 8, + dataTypeDisplay: + 'array>', + arrayDataType: 'STRUCT', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'shipping_date', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.shipping_date', + ordinalPosition: 9, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataLength: 1, + dataType: 'STRING', + name: 'transaction_date', + constraint: 'NULL', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.transaction_date', + ordinalPosition: 10, + dataTypeDisplay: 'string', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'total_order_count', + description: + 'The total number of orders that the customer has made from this store across their lifetime.', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.total_order_count', + ordinalPosition: 11, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'NUMERIC', + name: 'total_order_value', + description: + "The total amount of money that the customer has spent on orders from the store across their lifetime. The value is formatted in the store's currency.", + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.total_order_value', + ordinalPosition: 12, + dataTypeDisplay: 'numeric', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'first_order_date', + description: + '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).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.first_order_date', + ordinalPosition: 13, + dataTypeDisplay: 'timestamp', + tags: [], + }, + { + dataType: 'TIMESTAMP', + name: 'last_order_date', + description: + '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).', + fullyQualifiedName: + 'sample_data.ecommerce_db.shopify.raw_order.last_order_date', + ordinalPosition: 14, + dataTypeDisplay: 'timestamp', + tags: [], + }, + ], + displayName: 'raw_order', + description: + 'This is a raw orders table as represented in our online DB. This table contains all the orders by the customers and can be used to buid our dim and fact tables', + customMetrics: [], + tableType: 'Regular', + database: { + deleted: false, + displayName: 'ecommerce_db', + name: 'ecommerce_db', + description: + 'This **mock** database contains schemas related to shopify sales and orders with related dimension tables.', + id: '722b65a4-9205-4f11-a62d-6a8902cdab39', + type: 'database', + fullyQualifiedName: 'sample_data.ecommerce_db', + }, + columnNames: [ + 'comments', + 'creditcard', + 'membership', + 'orders', + 'platform', + 'preference', + 'shipping_address', + 'shipping_date', + 'transaction_date', + 'total_order_count', + 'total_order_value', + 'first_order_date', + 'last_order_date', + ], + tier: null, + totalVotes: 0, + usageSummary: { + date: '2024-02-02', + weeklyStats: { + percentileRank: 0, + count: 0, + }, + monthlyStats: { + percentileRank: 0, + count: 0, + }, + dailyStats: { + percentileRank: 0, + count: 0, + }, + }, + id: 'd26498fa-05cd-4e36-b7ba-f38a7a5fd372', + updatedAt: 1706855211252, + owner: null, + updatedBy: 'admin', + entityType: 'table', + dataProducts: [], + fullyQualifiedName: 'sample_data.ecommerce_db.shopify.raw_order', + version: 0.2, + tags: [], + followers: [], + deleted: false, + service: { + deleted: false, + displayName: 'sample_data', + name: 'sample_data', + id: '1e7f57b6-a165-410d-9962-1ccf54599cc7', + type: 'databaseService', + fullyQualifiedName: 'sample_data', + }, + domain: null, + name: 'raw_order', + votes: { + upVoters: [], + downVoters: [], + upVotes: 0, + downVotes: 0, + }, + }, }, slashedTableName: [ { diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx index 3e10cf08e0d..dc302023506 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/utils/TourUtils.tsx @@ -286,6 +286,6 @@ export const getTourSteps = ({

), stepInteraction: false, - selector: '#lineageDetails', + selector: `[data-testid="lineage-details"]`, }, ];