Skip to content

Commit

Permalink
fixup! Issue #139 add backend-aware collection allow-list config option
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Apr 2, 2024
1 parent e73e431 commit 77a7947
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/openeo_aggregator/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,8 @@ def _get_all_metadata(self) -> Tuple[List[dict], _InternalCollectionMetadata]:
"""
# Group collection metadata by hierarchically: collection id -> backend id -> metadata
grouped = defaultdict(dict)
# TODO: remove this deprecated collection_whitelist
collection_whitelist: Optional[List[Union[str, re.Pattern]]] = get_backend_config().collection_whitelist
collection_allow_list = get_backend_config().collection_allow_list
if collection_whitelist:
_log.warning("Using deprecated collection_whitelist configuration, consider using collection_allow_list.")
assert collection_allow_list is None
collection_allow_list = CollectionAllowList(collection_whitelist)

# TODO: remove deprecated collection_whitelist usage
collection_allow_list = get_backend_config().collection_allow_list or get_backend_config().collection_whitelist
if collection_allow_list:
collection_allow_list = CollectionAllowList(collection_allow_list)

Expand Down

0 comments on commit 77a7947

Please sign in to comment.