Skip to content

Commit

Permalink
implement /CHANGELOG view
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Mar 20, 2023
1 parent abd4892 commit 31e9c9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ COPY --chown=openeo src src
COPY --chown=openeo conf conf
COPY --chown=openeo pytest.ini pytest.ini
COPY --chown=openeo tests tests
COPY --chown=openeo CHANGELOG.md CHANGELOG.md


# Install dependencies and app.
Expand Down
8 changes: 7 additions & 1 deletion src/openeo_aggregator/backend.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import re

import contextlib
import datetime
import functools
import logging
import pathlib
import time
from collections import defaultdict
from typing import List, Dict, Union, Tuple, Optional, Iterable, Iterator, Callable, Any
Expand Down Expand Up @@ -1154,3 +1154,9 @@ def postprocess_capabilities(self, capabilities: dict) -> dict:
# TODO: standardize this field?
capabilities["_partitioned_job_tracking"] = bool(self.batch_jobs.partitioned_job_tracker)
return capabilities

def changelog(self) -> Union[str, pathlib.Path]:
changelog = pathlib.Path(__file__).parent.parent.parent / "CHANGELOG.md"
if changelog.exists():
return changelog
return super().changelog()

0 comments on commit 31e9c9b

Please sign in to comment.