Skip to main content

Development Workflow

Knowledge Checkpoint

A grasp of these concepts will help you understand this documentation better:

Introduction

Note

As-code features are only available on Holistics 4.0. If you are on Holistics 3.0 and would like to try them out, please submit a request to us at [email protected]

In Holistics 4.0, the major update is the capability to implement software engineering best practices in the analytics workflow, which also known as As-code.

This documentation aims to guide you through the process of getting started with As-code, using tutorials for both the code-based interface and the GUI.

These are the basic steps of the development workflow in Holistics:

  1. Connect to a Database
  2. Enable Development Mode
  3. Develop Data Models
  4. Develop Datasets
  5. Validate Reports
  6. Commit Changes & Deploy
  7. Data Exploration & Reporting

In this document, we will briefly walk through each step.

1. Connect to a Database

Since Holistics only works with databases, make sure you have connected to at least one database so that you can start building models and datasets on top of your physical tables.

2. Enable Development Mode

After navigating to the Development workspace page, click the toggle to switch from Production Mode to Development Mode. In the Development Mode, you can freely change your models and datasets without affecting the reports your end-users are viewing.

For more information about the two modes, please refer to Mode & Deployment docs.

3. Develop Data Models

info

For more information, please refer to Data Model doc

There are two types of data model in Holistics 4.0: Table Model and Query Model.

Table Model

A Table Model is used to make a table in your database available in Holistics's modeling layer. There are two ways to create a Table Model:

Step 1: Click the “Add (+)” button to add Table Model. Alternatively, you can select the “Add” button located under the folder where you want to organize your Data Models

Step 2: Choose a Data Source that contains the model you want to use.

Step 3: From the list of available models within the dataset, select the model that you would like to use

Step 4: Finally, select CREATE

Query Model

A Query Model is used to centralize SQL logic and data transformations into a reusable model, enabling the reusability of business logic across reports and analyses. This helps reduce duplicate SQL queries and improve query performance.

Step 1: Click the “Add (+)” button to add Query Model. Alternatively, you can select “Add” button located under the folder where you want to organize your Data Models

Step 2: Choose a Data Source that contains the model you want to use (We choose “demodb” in this walk-through)

Step 3: Fill out the Model name and define the query of the model

Full example:

//These queries select data from two tables, "ecommerce_cities" and "ecommerce_countries",
//and combine them to show the name of each city and its corresponding country.
SELECT {{ #ci.name }} as city_name,
{{ #co.name }} as country_name
FROM {{ #ecommerce_cities as ci }}
LEFT JOIN {{ #ecommerce_countries as co }} ON {{ #co.code }} = {{ #ci.country_code }}

4. Develop Datasets

info

For more information, please refer to Dataset doc

Step 1: Click the “Add (+)” button to add Dataset. Alternatively, you can select “+” button located under the folder where you want to organize your Data Models

Step 2: Fill out Dataset Name field

Step 3: Choose a Data Source that contains the model you want to use.

Step 4: From the list of available models within the dataset, select the model that you would like to use

Step 5: Finally, select Create Dataset

Once you have created a dataset, you can also create relationships between data models to allow more flexible data exploration.

5. Validate your reports

During your modeling process, if you have modified an existing model or dataset, your downstream reports may be affected. To check if the changes break any existing reports, you can use the Reporting Validation feature. The validation step will also detect if any of your current reports are already broken, so that you can trace the cause and fix them.

For more information about this feature, please refer to the Reporting Validation docs.

6. Commit changes and Publish

Commit changes

info

This step is necessary only if you're using the Holistics Git Flow. Otherwise, you may skip it and proceed directly to the Public step.

While developing your AML files, your changes will be automatically saved. If you have connected to an external Git repository, these changes need to be committed to your AML code base to be deployed.

After you have validated your models and dataset, click Commit changes & Push, change the commit message and description if necessary, and then Commit and push.

Publish

Finally, to have your prepared data available for exploration and insights in Reporting tab, simply click Publish.

7. Data Exploration & Reporting

After your code has been successfully deployed, the new datasets will appear in the Reporting tab. You can now begin exploring and analyzing your data.

To learn about what you can do further with your dataset and how to create reports:, please refer to:


Let us know what you think about this document :)