Skip to content

nais/dataproduct-apps

Folders and files

NameName
Last commit message
Last commit date
Mar 17, 2025
Mar 7, 2025
Mar 10, 2025
Mar 7, 2025
Oct 25, 2021
Oct 22, 2021
Jun 3, 2022
Feb 20, 2025
Oct 22, 2021
Feb 21, 2025
Mar 7, 2025
May 16, 2024
Feb 20, 2025
Mar 26, 2025
Mar 26, 2025

Repository files navigation

dataproduct-apps

Update BigQuery with todays Nais applications.

Architecture

Dataproduct-apps runs as a Naisjob in all clusters, collecting deployed applications and publishing them to a topic on the nav-infrastructure-kafka cluster. A separate instance runs as an Application in prod-gcp, consuming from the topic and updating BigQuery with received messages.

Development

We use earthly for building. If you don't have earthly installed, you can use the wrapper earthlyw in the root of the repository.

Build docker image: ./earthlyw +docker Run prospector and pytest locally: ./earthlyw +tests Run integration tests: ./earthlyw --allow-privileged +integration-tests

New fields in Metabase

Adding a new field to the resulting data product in Metabase can be an adventure. Here are the steps to add a new field to the resulting data product:

  • Add the new field in model.py, persist.py and corresponding logic in collect.py and tests in tests/ directory
  • Add the new field in BigQuery table dataproduct_apps.dataproduct_apps_v2 in Google Cloud Console
    • Update the view query for dataproduct_apps.dataproduct_apps_unique to include the new field
  • Trigger Sync Database Schema in Metabase to update the data product schema (needs admin access)