Skip to content

Uk national#157

Merged
devsjc merged 115 commits intomainfrom
uk-national
Feb 4, 2026
Merged

Uk national#157
devsjc merged 115 commits intomainfrom
uk-national

Conversation

@peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Dec 17, 2025

Pull Request

Description

Move uk-national over to this quartz-api

  • National routes
  • GSP routes
  • status routes - this loads from the old database for the moment. This will change in the future
  • system routes

Currently

  • forecast/all takes about ~13 seconds, which is to slow (benchmark from old app was). We currently looping over ForecastAtTimestamp
  • pvlive/all takes about ~10 seconds

#147

How Has This Been Tested?

  • CI tests
  • ran locally, and UAT from airflow run against the API
  • deployed and ran on aws,
  • and UAT from airflow run against the API
  • deploy UI to use this API - link

dont do in this PR: add end to end test for uk-national with the app #179
dont do in this PR: add seperate UAT in airflow that tests it

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

…nal-and-gsp-locations

# Conflicts:
#	src/quartz_api/cmd/main.py
#	src/quartz_api/internal/backends/dataplatform/client.py
#	src/quartz_api/internal/models.py
…nal-and-gsp-framework

# Conflicts:
#	src/quartz_api/cmd/main.py
…-locations

# Conflicts:
#	src/quartz_api/cmd/main.py
#	src/quartz_api/internal/service/uk_national/gsp.py
#	src/quartz_api/internal/service/uk_national/national.py
#	src/quartz_api/internal/service/uk_national/system.py
# Conflicts:
#	src/quartz_api/internal/service/uk_national/national.py
# Conflicts:
#	src/quartz_api/internal/service/uk_national/national.py
# Conflicts:
#	src/quartz_api/internal/service/uk_national/gsp.py
#	src/quartz_api/internal/service/uk_national/national.py
#	src/quartz_api/internal/service/uk_national/system.py
# Conflicts:
#	src/quartz_api/internal/backends/dataplatform/client.py
@peterdudfield
Copy link
Contributor Author

BTW, i got a linting error

B008 Do not perform function call `dt.datetime.now` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable

you ok with this @devsjc ?

@devsjc devsjc merged commit 3da22ed into main Feb 4, 2026
4 checks passed
@devsjc devsjc deleted the uk-national branch February 4, 2026 11:46
@peterdudfield peterdudfield mentioned this pull request Feb 4, 2026
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.

3 participants