diff --git a/.bumpversion.cfg b/.bumpversion.cfg index ebad393a2..6b02704e7 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.0.3 +current_version = 1.0.4 [bumpversion:file:VERSION] diff --git a/CITATION.cff b/CITATION.cff index caee20bb3..e8efd5801 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -28,7 +28,7 @@ authors: title: "Open Energy Family - Open Energy Platform (OEP)" type: software license: AGPL-3.0-or-later -version: 1.0.3 +version: 1.0.4 doi: date-released: 2024-09-25 url: "https://github.com/OpenEnergyPlatform/oeplatform/" diff --git a/VERSION b/VERSION index 21e8796a0..ee90284c2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.3 +1.0.4 diff --git a/api/views.py b/api/views.py index 34fff7852..b6a677576 100644 --- a/api/views.py +++ b/api/views.py @@ -656,6 +656,7 @@ def put(self, request): class Column(APIView): @api_exception + @never_cache def get(self, request, schema, table, column=None): schema, table = actions.get_table_name(schema, table, restrict_schemas=False) response = actions.describe_columns(schema, table) diff --git a/factsheet/utils.py b/factsheet/utils.py index 8e735d7a4..2b870e2f1 100644 --- a/factsheet/utils.py +++ b/factsheet/utils.py @@ -36,6 +36,6 @@ def serialize_publication_date(triple_object_pub_year: str): def remove_non_printable(text): if text is not None: - allowed_chars = re.compile(r'[a-zA-Z0-9äöüÄÖÜß.,;:!?\'"()\-\s]') + allowed_chars = re.compile(r'[a-zA-Z0-9äöüÄÖÜß.,;:!?\'"()\-\s_]') return ''.join(char if allowed_chars.match(char) else '' for char in text) return None \ No newline at end of file diff --git a/oeplatform/__init__.py b/oeplatform/__init__.py index 976498ab9..92192eed4 100644 --- a/oeplatform/__init__.py +++ b/oeplatform/__init__.py @@ -1 +1 @@ -__version__ = "1.0.3" +__version__ = "1.0.4" diff --git a/versions/changelogs/1_0_4.md b/versions/changelogs/1_0_4.md new file mode 100644 index 000000000..178ee0faf --- /dev/null +++ b/versions/changelogs/1_0_4.md @@ -0,0 +1,13 @@ +# Changes to the oeplatform code + +## Changes + +- Add never cache headers to columns http get api view [(#1872)](https://github.com/OpenEnergyPlatform/oeplatform/pull/1872). + +## Features + +## Bugs + +- Fix a bug in the scenario bundles app that removed any '\_' in technical tables names leading to incorrect rendering of these names [(#1872)](https://github.com/OpenEnergyPlatform/oeplatform/pull/1872) + +## Documentation updates