Skip to content

Conversation

@sameersk2k
Copy link
Collaborator

Opened a PR to work on schema handling will add more notes here

@sameersk2k sameersk2k self-assigned this Jan 15, 2026
@sameersk2k sameersk2k added the backend backend api calls, processing, etc. label Jan 15, 2026
"era5-quantiles": {
"source": "athena",
"schema": "quantile_yearly",
"period_type": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the period_type is specific to schema, might want to consider move it as part of the schema constant

@@ -1,4 +1,4 @@
export type DataModel = "wtk" | "era5" | "ensemble";
export type DataModel = "wtk-timeseries" | "era5-quantiles" | "ensemble-quantiles";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add "era5-timeseries"?


const dataModel = params.get("dataModel");
if (dataModel === "era5" || dataModel === "wtk" || dataModel === "ensemble") {
if (dataModel === "era5-quantiles" || dataModel === "wtk-timeseries" || dataModel === "ensemble-quantiles" || dataModel === "era5-timeseries") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe consider check infer from an valid DATA_MODELS array
export const DATA_MODELS = [
"wtk-timeseries",
"era5-quantiles",
"ensemble-quantiles",
] as const;
instead of explicitly checking each possible value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend backend api calls, processing, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants