From 91639dca98e1a37d4e3b32af9968c1456d849edb Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 16 Apr 2024 15:27:54 +0200 Subject: [PATCH] Update HTML template --- datacontract/templates/datacontract.html | 25 +- export.html | 426 +---------------------- 2 files changed, 30 insertions(+), 421 deletions(-) diff --git a/datacontract/templates/datacontract.html b/datacontract/templates/datacontract.html index ef4dce7c..ffcb2570 100644 --- a/datacontract/templates/datacontract.html +++ b/datacontract/templates/datacontract.html @@ -77,22 +77,25 @@

Info

{{ datacontract.info.version }}
+ {% if datacontract.info.description %}
Description
{{ datacontract.info.description }} -
+ {% endif %} + {% if datacontract.info.owner %}
Owner
{{ datacontract.info.owner }} -
+ {% endif %} + {% if datacontract.info.contact %}
Contact
@@ -109,21 +112,22 @@

Info

{% endif %}
+ {% endif %} + + {% if servers %} +

Servers

Servers of the data contract

- - -
+ {% endif %} + + {% if datacontract.terms %}

Terms

@@ -323,7 +330,7 @@

Terms

- + {% endif %}
@@ -360,7 +367,7 @@

-
+
{{ field_name }} {# TODO nested fields #}
@@ -374,10 +381,12 @@

{% endif %} + {% if field.type %} {{ field.type }} + {% endif %} -
{{ field.description }}
+
{{ field.description or "No description" }}
{# TODO add format information #} diff --git a/export.html b/export.html index 7b3b99f1..dc4a9e8e 100644 --- a/export.html +++ b/export.html @@ -36,7 +36,7 @@

Data Contract

- urn:datacontract:checkout:orders-latest + my-data-contract-id
@@ -75,190 +75,30 @@

Info

Title
-
Orders Latest
+
My Data Contract
Version
-
1.0.0
+
0.0.1
-
-
Description
-
- Successful customer orders in the webshop. -All orders since 2020-01-01. -Orders with their line items are in their current state (no history included). - - -
-
- -
-
Owner
-
- Checkout Team + -
-
+ -
-
Contact
-
- - John Doe (Data Product Owner) - - - - - -
-
+

-
-
-

Servers

-

Servers of the data contract

-
- - - - - - -
- -
-
-

Terms

-

Terms and conditions of the data contract

-
-
- -
- -
-
-
Usage
-
- Data can be used for reports, analytics and machine learning use cases. -Order may be linked and joined by other tables - -
-
- -
-
Limitations
-
- Not suitable for real-time use cases. -Data may not be used to identify individual customers. -Max data processing per day: 10 TiB - -
-
- - -
-
Billing
-
- 5000 USD per month -
-
- - -
-
Notice Period
-
- P3M -
-
- + -
-
-
-
+
@@ -282,181 +122,9 @@

- orders - table -
One record per order. Includes cancelled and deleted orders.
- - - - - - - - - - -
- order_id - -
- - - - R - - - U - - - - text - - -
An internal ID that identifies an order in the online shop.
- - - - - - - - -
- order_timestamp - -
- - - - R - - - - - timestamp - - -
The business timestamp in UTC when the order was successfully registered in the source system and the payment was successful.
- - - - - - - - -
- order_total - -
- - - - R - - - - - long - - -
Total amount the smallest monetary unit (e.g., cents).
- - - - - - - - -
- customer_id - -
- - - - - - - text - - -
Unique identifier for the customer.
- - - - - - - - -
- customer_email_address - -
- - - - R - - - - - text - - -
The email address, as entered by the customer. The email address was not verified.
- - - - - - - - -
- processed_timestamp - -
- - - - R - - - - - timestamp - - -
The timestamp when the record was processed by the data platform.
- - - - - - - - - - - - - - -
-
-
-
- - - - - @@ -467,34 +135,8 @@

- - - - - - - - - @@ -503,32 +145,10 @@

- - - - - - - - - @@ -550,26 +170,6 @@

-
-
-

- Quality -

-

- SodaCL -

- - -
-
-
-
-
{'checks for orders': ['row_count >= 5', 'duplicate_count(order_id) = 0'], 'checks for line_items': ['values in (order_id) must exist in orders (order_id)', 'row_count >= 5']}
-
-
-
-
-

- line_items + my_table table -
A single article that is part of an order.
+
None
-
- lines_item_id - -
-
- - R - - - U - - - text - -
Primary key of the lines_item_id table
- -
-
- order_id +
+ my_field
- text - -
An internal ID that identifies an order in the online shop.
-
- sku - -
-
- - - - text - -
The purchased article number
+
No description