Skip to content

Commit e3b211f

Browse files
committed
Merge branch 'develop' into feature/1899-opr-update-redgreen-progress-indicators-reviewed-fields-on-each-category
2 parents 0cbf4bc + 8959eb2 commit e3b211f

File tree

98 files changed

+609
-1067
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+609
-1067
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.0.4
2+
current_version = 1.0.5
33

44
[bumpversion:file:VERSION]
55

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ var/
3232
*.egg-info/
3333
.installed.cfg
3434
*.egg
35+
/oep-django-5
36+
oep-django-5/
3537

3638
# PyInstaller
3739
# Usually these files are written by a python script from a template
@@ -79,6 +81,11 @@ venv*/
7981
0_env/
8082
/envs
8183
/node_env
84+
.env*
85+
/fuseki
86+
apache*
87+
/oep-django-5
88+
8289

8390
.DS_Store
8491

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exclude: ^.*(.min.js|.min.css|.html|.js|.js.map)$
1+
exclude: ^.*(.min.js|.min.css|.html|.js|.js.map|docs/*|mkdocs.yml)$
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
44
rev: v4.4.0

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Ignore all HTML files, because they contain
22
# django markup that will not be broken by prettier
33
**/*.html
4+
5+
docs/*

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ authors:
2828
title: "Open Energy Family - Open Energy Platform (OEP)"
2929
type: software
3030
license: AGPL-3.0-or-later
31-
version: 1.0.4
31+
version: 1.0.5
3232
doi:
33-
date-released: 2024-09-25
33+
date-released: 2024-11-19
3434
url: "https://github.com/OpenEnergyPlatform/oeplatform/"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
| 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) |
44
| Docs | [![Documentation Status](https://github.com/OpenEnergyPlatform/oeplatform/actions/workflows/deploy-docs.yaml/badge.svg)](https://openenergyplatform.github.io/oeplatform/) |
55

6-
<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>
6+
<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>
77

88
# Open Energy Family - Open Energy Platform (OEP)
99

10-
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)
10+
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)
1111

1212
## License / Copyright
1313

1414
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)
1515

1616
# Installation & Setup
1717

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

2020
## Development & Code contribution
2121

RELEASE_PROCEDURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Before see How to [Contribute](https://github.com/OpenEnergyPlatform/oeplatform/
5252
- `versioneer` automatically updates the version number based on the tag
5353
- this is now the official tagged commit
5454
- Push the tag upstream: `git push upstream --tags`
55-
- Alternatievely: tag on github platform while creating release
55+
- Alternatively: tag on github platform while creating release
5656
1. Make a new release on Github
5757
- https://github.com/OpenEnergyPlatform/oeplatform/releases/new
5858
- make sure that you choose the tag name defined above

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
1.0.5

api/actions.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ class ResponsiveException(Exception):
103103
def assert_permission(user, table, permission, schema=None):
104104
if schema is None:
105105
schema = DEFAULT_SCHEMA
106-
if (
107-
user.is_anonymous
108-
or user.get_table_permission_level(DBTable.load(schema, table)) < permission
109-
):
106+
if user.is_anonymous:
107+
raise APIError('User is anonymous', 401)
108+
109+
if user.get_table_permission_level(DBTable.load(schema, table)) < permission:
110110
raise PermissionDenied
111111

112112

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

134-
if (
135-
user.is_anonymous
136-
or user.get_table_permission_level(DBTable.load(schema, table)) < permission
137-
):
134+
if user.is_anonymous:
135+
raise APIError('User is anonymous', 401)
136+
137+
if user.get_table_permission_level(DBTable.load(schema, table)) < permission:
138138
raise PermissionDenied
139139

140140

api/parser.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -671,29 +671,6 @@ def parse_scolumnd_from_columnd(schema, table, name, column_description):
671671
}
672672

673673

674-
def parse_sconstd_from_constd(schema, table, name_const, constraint_description):
675-
defi = constraint_description.get("definition")
676-
return {
677-
"action": None, # {ADD, DROP}
678-
"constraint_type": constraint_description.get(
679-
"constraint_typ"
680-
), # {FOREIGN KEY, PRIMARY KEY, UNIQUE, CHECK}
681-
"constraint_name": name_const,
682-
"constraint_parameter": constraint_description.get("definition")
683-
.split("(")[1]
684-
.split(")")[0],
685-
# Things in Brackets, e.g. name of column
686-
"reference_table": defi.split("REFERENCES ")[1].split("(")[2]
687-
if "REFERENCES" in defi
688-
else None,
689-
"reference_column": defi.split("(")[2].split(")")[1]
690-
if "REFERENCES" in defi
691-
else None,
692-
"c_schema": schema,
693-
"c_table": table,
694-
}
695-
696-
697674
def replace_None_with_NULL(dictonary):
698675
# Replacing None with null for Database
699676
for key, value in dictonary.items():

0 commit comments

Comments
 (0)