Skip to content

fix: AWS Source Key - #298

Merged
RLiNREL merged 3 commits into
developfrom
hot-fix/config-key-update
Aug 3, 2026
Merged

fix: AWS Source Key#298
RLiNREL merged 3 commits into
developfrom
hot-fix/config-key-update

Conversation

@RLiNREL

@RLiNREL RLiNREL commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Description

related to #285

The source key update from short era5, wtk, and ensemble were updated to the longer key era5-quantiles, etc. AWS key uses underscore, so a replacement with - hyphen was applied along update to sample config.

AthenaDataFetcher(athena_config, source_key="era5") --> AthenaDataFetcher(athena_config, model_key="era5-quantiles")

Checklist

  • PR targets develop
  • I have run make format and make verify
  • No merge conflicts with develop
  • Branch name is descriptive (feat/..., fix/..., docs/..., chore/...)
  • Commit messages are clear (e.g., feat: add new feature, fix: resolve bug, docs: update documentation)
  • Documentation updated where needed
  • I have self-reviewed this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Windwatts API’s Athena source configuration keys to the new long-form model keys (e.g., era5-quantiles) and adjusts environment-variable parsing to map AWS-friendly underscore naming to hyphenated model keys used by the application.

Changes:

  • Restructured the sample Athena config to use a per-source sources map keyed by the new model keys.
  • Updated env var parsing so SOURCES_<SOURCE>_* source identifiers convert _ to - (e.g., ERA5_QUANTILESera5-quantiles).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
windwatts-api/app/config/sample_windwatts_data_config.json Updates sample config to the new sources map keyed by long-form model keys.
windwatts-api/app/config_manager.py Adjusts env var parsing to translate underscore source identifiers into hyphenated model keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread windwatts-api/app/config_manager.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comment thread windwatts-api/app/config_manager.py
@RLiNREL
RLiNREL merged commit d71dbbb into develop Aug 3, 2026
1 check passed
@RLiNREL
RLiNREL deleted the hot-fix/config-key-update branch August 3, 2026 04:00
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.

2 participants