Skip to content

Commit

Permalink
Issue #112 Add AggregatorBackendConfig to conf/aggregator.*.py files
Browse files Browse the repository at this point in the history
to simplify migration
  • Loading branch information
soxofaan committed Feb 27, 2024
1 parent aae297d commit d74fea0
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is roughly based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.21.0]

- Add `AggregatorBackendConfig` to `conf/aggregator.*.py` files ([#112](https://github.com/Open-EO/openeo-aggregator/issues/112))

## [0.20.0]

- move `connections_cache_ttl` config to AggregatorBackendConfig ([#112](https://github.com/Open-EO/openeo-aggregator/issues/112))
Expand Down
11 changes: 9 additions & 2 deletions conf/aggregator.dev.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from openeo_driver.users.oidc import OidcProvider

from openeo_aggregator.config import AggregatorConfig
from openeo_aggregator.config import AggregatorBackendConfig, AggregatorConfig

_DEFAULT_OIDC_CLIENT_EGI = {
"id": "openeo-platform-default-client",
Expand Down Expand Up @@ -42,7 +42,7 @@

ZK_HOSTS = "epod-master1.vgt.vito.be:2181,epod-master2.vgt.vito.be:2181,epod-master3.vgt.vito.be:2181"

aggregator_config = config = AggregatorConfig(
aggregator_config = AggregatorConfig(
config_source=__file__,
aggregator_backends={
"vito": "https://openeo-dev.vito.be/openeo/1.1/",
Expand Down Expand Up @@ -76,3 +76,10 @@
}
},
)


config = AggregatorBackendConfig(
id="openeo-platform-aggregator-dev",
capabilities_title="openEO Platform (dev)",
capabilities_description="openEO Platform, provided through openEO Aggregator Driver (development instance).",
)
11 changes: 9 additions & 2 deletions conf/aggregator.dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"""
from openeo_driver.users.oidc import OidcProvider

from openeo_aggregator.config import AggregatorConfig
from openeo_aggregator.config import AggregatorBackendConfig, AggregatorConfig

aggregator_config = config = AggregatorConfig(
aggregator_config = AggregatorConfig(
config_source=__file__,
aggregator_backends={
"dummy": "https://openeo.example/openeo/1.1/",
Expand All @@ -20,3 +20,10 @@
],
zookeeper_prefix="/openeo/aggregator/dummy/",
)


config = AggregatorBackendConfig(
id="aggregator-dummy",
capabilities_title="openEO Aggregator Dummy",
capabilities_description="openEO Aggregator Dummy instance.",
)
11 changes: 9 additions & 2 deletions conf/aggregator.prod.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from openeo_driver.users.oidc import OidcProvider

from openeo_aggregator.config import AggregatorConfig
from openeo_aggregator.config import AggregatorBackendConfig, AggregatorConfig

_DEFAULT_OIDC_CLIENT_EGI = {
"id": "openeo-platform-default-client",
Expand Down Expand Up @@ -35,7 +35,7 @@

ZK_HOSTS = "epod-master1.vgt.vito.be:2181,epod-master2.vgt.vito.be:2181,epod-master3.vgt.vito.be:2181"

aggregator_config = config = AggregatorConfig(
aggregator_config = AggregatorConfig(
config_source=__file__,
aggregator_backends={
"vito": "https://openeo.vito.be/openeo/1.1/",
Expand Down Expand Up @@ -69,3 +69,10 @@
},

)


config = AggregatorBackendConfig(
id="openeo-platform-aggregator-prod",
capabilities_title="openEO Platform",
capabilities_description="openEO Platform, provided through openEO Aggregator Driver.",
)
2 changes: 2 additions & 0 deletions conf/backend_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from openeo_aggregator.config import AggregatorBackendConfig

# TODO #112 #117 this config file is deprecated

config = AggregatorBackendConfig(
# TODO: eliminate hardcoded openEO Platform references. https://github.com/Open-EO/openeo-aggregator/issues/117
id="openeo-platform-aggregator",
Expand Down
2 changes: 1 addition & 1 deletion src/openeo_aggregator/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from typing import Optional

__version__ = "0.20.0a1"
__version__ = "0.21.0a1"


def log_version_info(logger: Optional[logging.Logger] = None):
Expand Down

0 comments on commit d74fea0

Please sign in to comment.