Skip to content

Commit

Permalink
Merge pull request #1933 from OpenEnergyPlatform/release-1.1.0
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
jh-RLI authored Feb 6, 2025
2 parents 58361e4 + 5b98432 commit 9760976
Show file tree
Hide file tree
Showing 67 changed files with 1,101 additions and 1,011 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.5
current_version = 1.1.0

[bumpversion:file:VERSION]

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ var/
*.egg-info/
.installed.cfg
*.egg
/oep-django-5
oep-django-5/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -79,6 +81,9 @@ venv*/
0_env/
/envs
/node_env
.env*
/fuseki
apache*
/oep-django-5

.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ authors:
title: "Open Energy Family - Open Energy Platform (OEP)"
type: software
license: AGPL-3.0-or-later
version: 1.0.5
version: 1.1.0
doi:
date-released: 2024-11-19
date-released: 2025-02-06
url: "https://github.com/OpenEnergyPlatform/oeplatform/"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
| Automated tests | [![Automated tests](https://github.com/OpenEnergyPlatform/oeplatform/actions/workflows/automated-testing.yaml/badge.svg)](https://github.com/OpenEnergyPlatform/oeplatform/actions/workflows/automated-testing.yaml) |
| Docs | [![Documentation Status](https://github.com/OpenEnergyPlatform/oeplatform/actions/workflows/deploy-docs.yaml/badge.svg)](https://openenergyplatform.github.io/oeplatform/) |

<a href="https://openenergy-platform.org/"><img align="right" width="200" height="200" src="https://avatars2.githubusercontent.com/u/37101913?s=400&u=9b593cfdb6048a05ea6e72d333169a65e7c922be&v=4" alt="OpenEnergyPlatform"></a>
<a href="https://openenergyplatform.org/"><img align="right" width="200" height="200" src="https://avatars2.githubusercontent.com/u/37101913?s=400&u=9b593cfdb6048a05ea6e72d333169a65e7c922be&v=4" alt="OpenEnergyPlatform"></a>

# Open Energy Family - Open Energy Platform (OEP)

Repository for the code of the Open Energy Platform (OEP) website [https://openenergy-platform.org/](https://openenergy-platform.org/). This repository does not contain data, for data access please consult [this page](https://github.com/OpenEnergyPlatform/organisation/blob/master/README.md)
Repository for the code of the Open Energy Platform (OEP) website [https://openenergyplatform.org/](https://openenergy-platform.org/). This repository does not contain data, for data access please consult [this page](https://github.com/OpenEnergyPlatform/organisation/blob/master/README.md)

## License / Copyright

This repository is licensed under [GNU Affero General Public License v3.0 (AGPL-3.0)](https://www.gnu.org/licenses/agpl-3.0.en.html)

# Installation & Setup

Follow the detailed [installation guide](https://openenergyplatform.github.io/oeplatform/install-and-documentation/install/installation/).
Follow the detailed [installation guide](https://openenergyplatform.github.io/oeplatform/installation/guides/installation/).

## Development & Code contribution

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.5
1.1.0
16 changes: 8 additions & 8 deletions api/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ class ResponsiveException(Exception):
def assert_permission(user, table, permission, schema=None):
if schema is None:
schema = DEFAULT_SCHEMA
if (
user.is_anonymous
or user.get_table_permission_level(DBTable.load(schema, table)) < permission
):
if user.is_anonymous:
raise APIError('User is anonymous', 401)

if user.get_table_permission_level(DBTable.load(schema, table)) < permission:
raise PermissionDenied


Expand All @@ -131,10 +131,10 @@ def assert_add_tag_permission(user, table, permission, schema):
# level = request.user.get_table_permission_level(table)
# can_add = level >= login_models.WRITE_PERM

if (
user.is_anonymous
or user.get_table_permission_level(DBTable.load(schema, table)) < permission
):
if user.is_anonymous:
raise APIError('User is anonymous', 401)

if user.get_table_permission_level(DBTable.load(schema, table)) < permission:
raise PermissionDenied


Expand Down
23 changes: 0 additions & 23 deletions api/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,29 +671,6 @@ def parse_scolumnd_from_columnd(schema, table, name, column_description):
}


def parse_sconstd_from_constd(schema, table, name_const, constraint_description):
defi = constraint_description.get("definition")
return {
"action": None, # {ADD, DROP}
"constraint_type": constraint_description.get(
"constraint_typ"
), # {FOREIGN KEY, PRIMARY KEY, UNIQUE, CHECK}
"constraint_name": name_const,
"constraint_parameter": constraint_description.get("definition")
.split("(")[1]
.split(")")[0],
# Things in Brackets, e.g. name of column
"reference_table": defi.split("REFERENCES ")[1].split("(")[2]
if "REFERENCES" in defi
else None,
"reference_column": defi.split("(")[2].split(")")[1]
if "REFERENCES" in defi
else None,
"c_schema": schema,
"c_table": table,
}


def replace_None_with_NULL(dictonary):
# Replacing None with null for Database
for key, value in dictonary.items():
Expand Down
230 changes: 0 additions & 230 deletions api/references.py

This file was deleted.

Loading

0 comments on commit 9760976

Please sign in to comment.