Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ClimaticIndicator model #286

Draft
wants to merge 52 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
47cfc22
Added model for climaticindicator
ricardogsilva Oct 29, 2024
4279846
Added database operations for crud'ing a climatic indicator
ricardogsilva Oct 29, 2024
c8a0db5
Added initial bootstrap values for climatic indicators
ricardogsilva Oct 29, 2024
9970675
Added new v3 of API with climatic indicator path operations
ricardogsilva Oct 29, 2024
ca40233
Added 1:m relationship between climaticindicator and coverageconfigur…
ricardogsilva Oct 29, 2024
248d900
Added bootstrapping-stuff for all climatic indicators and related all…
ricardogsilva Oct 29, 2024
f3c5a89
Added climatic indicator as the source of a coverage configuration's …
ricardogsilva Oct 31, 2024
90f44c7
Refactoring forecast coverage menu generation (wip)
ricardogsilva Oct 31, 2024
d2ea35c
Refactored forecast coverage menu generation
ricardogsilva Nov 4, 2024
a80609c
Refactored data download link generation and time series translations…
ricardogsilva Nov 5, 2024
94f35b5
Refactoring in order to integrate climatic indicator (wip)
ricardogsilva Nov 5, 2024
1bfe029
Commented out bootstrap cov conf properties that are now in climatic …
Nov 7, 2024
ff3c18a
Removed filtering cov conf by display name
Nov 7, 2024
023c8bf
Fixing failing tests (wip)
ricardogsilva Nov 7, 2024
a9dfc68
Fixed tests
ricardogsilva Nov 8, 2024
fd0cf77
Dropping variable table, which now becomes redundant (WIP)
ricardogsilva Nov 8, 2024
ccfb8f9
Continue work to replace Variable with ClimaticIndicator (wip)
ricardogsilva Nov 11, 2024
638fc2b
Replacing variable with climatic_indicator (wip)
ricardogsilva Nov 14, 2024
cde3c28
Fixing tests
ricardogsilva Nov 15, 2024
cbd68d1
Introducing observation refreshes things
ricardogsilva Dec 13, 2024
ad10cd1
Adding support for ARPAFVG observation data
ricardogsilva Dec 16, 2024
5797509
Update poetry lock file
ricardogsilva Dec 17, 2024
150b4ea
Added bootstrap command for observation series configurations
ricardogsilva Jan 9, 2025
54a00fa
Adding models for forecasts - wip
ricardogsilva Jan 13, 2025
2d375c1
Add admin for forecast models and forecast time windows
ricardogsilva Jan 14, 2025
bffe819
Adding bootstrap config for forecast coverage configurations
ricardogsilva Jan 14, 2025
9cdf327
Added spatial region geometries and associated bootstrapper
ricardogsilva Jan 15, 2025
a2b1e4a
Added admin view for spatial regions
ricardogsilva Jan 15, 2025
170703c
Added combined spatial regions in bootstrapper
ricardogsilva Jan 15, 2025
058b926
Adding bootstrap configs for climatic indicators
ricardogsilva Jan 15, 2025
fded8b1
Adding bootstrap configs for climatic indicators
ricardogsilva Jan 16, 2025
eb47078
Adding functions to generate and find by identifier
ricardogsilva Jan 17, 2025
f2440c4
Fixed identifiers and adding templated string rendering
Jan 19, 2025
6f0dd0a
Added forecast cov confbootstrap for remaining indicators
Jan 20, 2025
d97b67f
Hooked up bootstrap of forecast cov confs
Jan 20, 2025
f530c91
Completed identifier generation for forecast coverages and their conf…
ricardogsilva Jan 20, 2025
4eb9e69
Adding observation station refresh logic
ricardogsilva Jan 20, 2025
547afcb
Adding observation station refresh logic
ricardogsilva Jan 20, 2025
3f4e334
Trying out refreshing arpa-fvg stations
Jan 21, 2025
b6291f0
Refactoring prefect flows for refreshing measurements and stations
ricardogsilva Jan 21, 2025
2317c26
Refactoring prefect flows for refreshing measurements and stations
ricardogsilva Jan 23, 2025
f287630
Refactored measurement refresher prefect flow
ricardogsilva Jan 24, 2025
a3082fe
Cleaned up admin section code
ricardogsilva Jan 27, 2025
9b13f08
Refactoring forecast coverage data series generation
ricardogsilva Jan 28, 2025
d5d7fdd
Refactoring time series generation for forecast coverages
ricardogsilva Jan 29, 2025
2df30c7
Refactoring time series generation for forecast coverages
ricardogsilva Jan 30, 2025
5bb411b
Refactoring time series generation for forecast coverages
ricardogsilva Jan 30, 2025
b1757fe
Refactoring generation of advanced forecast section navigation
Feb 1, 2025
a8abfcf
Refactoring API endpoints for WMS proxy and forecast time series
Feb 3, 2025
b973c07
Refactoring coverage-related web API endpoints
ricardogsilva Feb 3, 2025
8dfe022
Made station refresher collect variables from all managers
Feb 3, 2025
72b3e89
fixed artifact table on measurement refresher flow
Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
exclude_types:
- geojson
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
Expand Down
35 changes: 31 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,24 @@ this can also be modified if needed. The system recognizes the following environ

### Operations

##### Translations

```shell
# look for new translatable strings in the codebase
docker exec -ti arpav-ppcv-webapp-1 poetry run arpav-ppcv translations extract

# update existing catalogs with the new strings found in the previous step
docker exec -ti arpav-ppcv-webapp-1 poetry run arpav-ppcv translations update
```

Now use your favorite editor to translate the strings.

Finally, compile the translations files:

```shell
docker exec -ti arpav-ppcv-webapp-1 poetry run arpav-ppcv translations compile
```

##### Accessing the CLI

The CLI is named `arpav-ppcv`. When running under docker compose, it can be used with the following incantation:
Expand Down Expand Up @@ -218,22 +236,31 @@ dev environment is located at individual devs machine(s). In order to get a work
Build the docker image by running this command:

```shell
docker build --tag ghcr.io/geobeyond/arpav-ppcv-backend/arpav-ppcv-backend
docker build \
--tag ghcr.io/geobeyond/arpav-ppcv-backend/arpav-ppcv-backend \
--file docker/Dockerfile \
.
```

If you want to build an image for the current branch, such as when you added a new third-party dependency as part of
an ongoing task, add the branch name to the build image:

```shell
docker build --tag ghcr.io/geobeyond/arpav-ppcv-backend/arpav-ppcv-backend:$(git branch --show-current)
docker build \
--tag ghcr.io/geobeyond/arpav-ppcv-backend/arpav-ppcv-backend:$(git branch --show-current) \
--file docker/Dockerfile \
.
```

In order to use this custom named image on your local development, set the `CURRENT_GIT_BRANCH` env variable before
launching the docker compose stack, _i.e._:

```shell
export CURRENT_GIT_BRANCH=$(git branch --show-current)
docker compose -f docker/compose.yaml -f docker/compose.dev.yaml up -d
CURRENT_GIT_BRANCH=$(git branch --show-current) \
docker compose \
-f docker/compose.yaml \
-f docker/compose.dev.yaml \
up -d --force-recreate
```


Expand Down
Loading