Skip to content

Chore: Enrich Layer Metadata with references' schemas#80

Merged
arnaudfnr merged 5 commits into
mainfrom
arnaudfnr/enrich_layer_metadata
Apr 27, 2026
Merged

Chore: Enrich Layer Metadata with references' schemas#80
arnaudfnr merged 5 commits into
mainfrom
arnaudfnr/enrich_layer_metadata

Conversation

@arnaudfnr
Copy link
Copy Markdown
Collaborator

Objective

As a frontend developer, I want to access all schemas of all resources that have been used for computing the columns in the config.json.

Context

Currently in the style.json, only the schema of the resource linked to the layer is transferred.
However, when computing the columns in the config.json, we perform some joins on other tables to access complementary data. Some of this data is categorical so we want to be able to access the labels in the frontend. Therefore, we need to add the schemas of those references in the layer metadata of the style.json.

Solution

What I did was adding all resources that had a reference to the layer's resource, even if we don't really know if they have been effectively used to compute the columns.
A better way to do this might be to look at the joins performed in the final query but it seemed overcomplicated.

@arnaudfnr arnaudfnr merged commit 2d9471c into main Apr 27, 2026
3 checks passed
@arnaudfnr arnaudfnr deleted the arnaudfnr/enrich_layer_metadata branch April 27, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant