Skip to content

Commit

Permalink
Merge pull request #76 from Geode-solutions/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
JulienChampagnol authored Apr 30, 2024
2 parents 208cf0c + f7ac63a commit 018b66a
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 530 deletions.
104 changes: 104 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,110 @@



## v4.1.0-rc.2 (2024-04-29)

### Feature

* feat(inspector): trigger semantic release ([`ec94ac6`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/ec94ac61161417cb5efddddd12b3344feceb18b2))


## v4.1.0-rc.1 (2024-04-29)

### Feature

* feat(inpector): new inpector api ([`65e9df5`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/65e9df554e915135cfbc8370abf52e9b96f927ff))

### Unknown

* Merge pull request #75 from Geode-solutions/feat/update_inspector

Feat/update inspector ([`69e151a`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/69e151afe22f783067ae31f21e4b01cfe90e93f9))

* Apply prepare changes ([`beb1a05`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/beb1a057afe009f468957a37f97d5ef768aa3ac6))

* update tests ([`64410fe`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/64410fe18d0137a05b24ab8f8184a77dfbad0b79))

* refactor and clean code 2 ([`c542eff`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/c542effeee0d0975b842953da2262fb979104923))

* refactor and clean code ([`1f63bee`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/1f63bee9eeb2dc108b78e3cce8508492cac148c3))

* update dependencies ([`3bb44fc`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/3bb44fcce14c87a739d163abff7f10e5b831a274))

* update dependencies master ([`8203295`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/8203295f958c9ac893b1cb2fefd7ca757771d54e))

* update dependencies ([`43a3d49`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/43a3d4964415f7202b31a4e368c5d660f0eae268))

* Apply prepare changes ([`1abec77`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/1abec771aff90b5b252a2e1186c1271931865645))

* split issues into array ([`81aa92a`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/81aa92a285f9694cb10e079c3eb0f96e628c7aeb))

* update dependencies ([`b2b12ca`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/b2b12ca3920c8f04ddd9a2ce473c67e315d54cfb))

* Apply prepare changes ([`22462d7`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/22462d7f16ad9ba99fba25f59e936a0522a970df))

* update tests ([`db6d711`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/db6d711cb24cfcab48c4f5c85951aeeec27ef0ac))

* remove unused file ([`9e6d1e7`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/9e6d1e7b0a9b171840d01b4639f1c40b29d67a64))

* update dependencies, fixes tests ([`38992e9`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/38992e99c785cdf10988733507aac694a5a33e54))

* Apply prepare changes ([`0393063`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/0393063c2f59bedc9aafeb79e918d71631504fa5))

* code cleanup 3 ([`9821906`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/98219069117a8f0419e25cd5e8ad2cea84ce9f84))

* Merge branch 'feat/update_inspector' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into feat/update_inspector ([`83e5ed0`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/83e5ed06daa2ddd540f9e12c3af1a4600212dd8c))

* code cleanup 2 ([`0471623`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/0471623c027bba29568bce1a574cf065b60726ef))

* Apply prepare changes ([`e4f9bdf`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/e4f9bdf9d1da79a710b258b6f23394dc82e8baa1))

* code cleanup ([`a93114a`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/a93114a0e03aa00049a3d417795092309ad45317))

* update tests and requirements ([`d00d8fb`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/d00d8fb1f91898b9c813ad9d734be59dbee76c3a))

* save wip ([`bd1cb10`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/bd1cb10c354c677e2d2962c7f9ce3cc60c824017))

* update requirements ([`8633dee`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/8633dee4e45474e25cb2c3df6c1a5ec1c51ccfd8))

* wip(inspect_file): route/schema & test ([`ca2a052`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/ca2a05285e5524af87b1f4d15769cca4a5f0c207))

* dlete unused harcoded functions ([`beaa60b`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/beaa60b1cea92695749d4e9640b996e63519d5f5))

* update dependencies ([`bf0e5ff`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/bf0e5fff3c3666b5e17d767dda20d81e1191c779))

* ([`cf41940`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/cf419406f317bcc319502c2645c0adaf08e9fd57))

* Merge pull request #74 from Geode-solutions/next

Next ([`208cf0c`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/208cf0cff34caf999b0395fadc3ec20ff31a7cec))

* Merge pull request #73 from Geode-solutions/fix/CI

fix(CI) add CI on all branches ([`7a9a311`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/7a9a3113c40d772efd488a820054f784b6990541))

* lighter raster image 2d ([`a3ea653`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/a3ea653cec4af4860244ec130b8ce9aa06162e60))

* vti2d ([`cb2f2ed`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/cb2f2ed16d215fe8d962fa6152b134f8fd5709b7))

* lighter vti ([`d8b0487`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/d8b04871396fbd749d2aa74251f586f8bca3a2a6))

* fix stupid typo ([`786f4e3`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/786f4e324b70b1c6454e4ca6dd3216d38764099c))

* fix tests paths ([`40df704`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/40df7049147a94dc1dfc55e20426e29c11cf807d))

* pip install pytest ([`ef0fee6`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/ef0fee64b197fc872e7c1d819b62256073267057))

* pip install pytest ([`45edcf1`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/45edcf1ef2e59e7d3b245dce79ff1d0d2c66645c))

* Update .github/workflows/CICD.yml

Co-authored-by: Arnaud Botella <[email protected]> ([`8080276`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/80802762c3c4d72dabfdeeba2b2dff57f405442d))

* fix(CI) add CI on all branches ([`47a5e3f`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/47a5e3fcb17a6a9917bcd807ceaeedfe41377ca3))

* ([`21a1f25`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/21a1f25bd50a7f38a3666e6e73ee2b77ac28e979))


## v4.0.0 (2024-02-29)

### Unknown
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "OpenGeodeWeb-Back"
version = "4.0.0"
version = "4.1.0-rc.2"
dynamic = ["dependencies"]
authors = [
{ name="Geode-solutions", email="[email protected]" },
Expand Down
53 changes: 23 additions & 30 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
asgiref==3.7.2
asgiref==3.8.1
# via flask
attrs==23.2.0
# via
# jsonschema
# referencing
blinker==1.7.0
blinker==1.8.1
# via flask
click==8.1.7
# via flask
colorama==0.4.6
# via click
flask[async]==3.0.1
flask[async]==3.0.3
# via
# -r requirements.in
# flask-cors
flask-cors==4.0.0
# via -r requirements.in
geode-background==7.7.1
geode-background==7.9.8
# via
# geode-explicit
# geode-implicit
# geode-simplex
geode-common==30.1.2
geode-common==31.0.8
# via
# -r requirements.in
# geode-background
Expand All @@ -36,40 +34,38 @@ geode-common==30.1.2
# geode-numerics
# geode-simplex
# geode-viewables
geode-conversion==5.2.1
geode-conversion==5.2.8
# via
# geode-explicit
# geode-implicit
geode-explicit==4.4.3
geode-explicit==4.7.5
# via
# -r requirements.in
# geode-implicit
geode-implicit==2.6.1
geode-implicit==2.8.6
# via -r requirements.in
geode-numerics==4.3.0
geode-numerics==4.3.3
# via
# -r requirements.in
# geode-implicit
# geode-simplex
geode-simplex==6.5.1
geode-simplex==6.7.4
# via -r requirements.in
geode-viewables==2.2.0
geode-viewables==2.2.2
# via -r requirements.in
importlib-metadata==7.0.1
# via flask
itsdangerous==2.1.2
itsdangerous==2.2.0
# via flask
jinja2==3.1.3
# via flask
jsonschema==4.21.1
# via -r requirements.in
jsonschema-specifications==2023.12.1
# via jsonschema
markupsafe==2.1.4
markupsafe==2.1.5
# via
# jinja2
# werkzeug
opengeode-core==14.13.2
opengeode-core==14.19.2
# via
# -r requirements.in
# geode-background
Expand All @@ -84,40 +80,37 @@ opengeode-core==14.13.2
# opengeode-geosciencesio
# opengeode-inspector
# opengeode-io
opengeode-geosciences==7.4.0
opengeode-geosciences==7.6.4
# via
# -r requirements.in
# geode-implicit
# geode-viewables
# opengeode-geosciencesio
opengeode-geosciencesio==4.6.0
opengeode-geosciencesio==4.7.6
# via
# -r requirements.in
# geode-implicit
opengeode-inspector==4.0.6
opengeode-inspector==5.1.3
# via
# -r requirements.in
# geode-explicit
# geode-implicit
opengeode-io==6.4.0
# geode-simplex
opengeode-io==6.5.1
# via
# -r requirements.in
# geode-implicit
# geode-viewables
# opengeode-geosciencesio
referencing==0.33.0
referencing==0.35.0
# via
# jsonschema
# jsonschema-specifications
rpds-py==0.17.1
rpds-py==0.18.0
# via
# jsonschema
# referencing
typing-extensions==4.9.0
# via asgiref
werkzeug==3.0.1
werkzeug==3.0.2
# via
# -r requirements.in
# flask
zipp==3.17.0
# via importlib-metadata
28 changes: 27 additions & 1 deletion src/opengeodeweb_back/geode_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def is_viewable(geode_object: str):
return geode_object_value(geode_object)["is_viewable"]


def inspector(geode_object: str, data):
def inspect(geode_object: str, data):
return geode_object_value(geode_object)["inspector"](data)


Expand Down Expand Up @@ -174,6 +174,32 @@ def geode_objects_output_extensions(geode_object: str, data):
return geode_objects_output_extensions_dict


def get_inspector_children(obj):
new_object = {}

if "inspection_type" in dir(obj):
new_object["title"] = obj.inspection_type()
new_object["nb_issues"] = 0
new_object["children"] = []
for child in dir(obj):
if not child.startswith("__") and not child in [
"inspection_type",
"string",
]:
child_instance = obj.__getattribute__(child)
child_object = get_inspector_children(child_instance)
new_object["children"].append(child_object)
new_object["nb_issues"] += child_object["nb_issues"]
else:
new_object["title"] = obj.description()
nb_issues = obj.nb_issues()
new_object["nb_issues"] = nb_issues
if nb_issues > 0:
issues = obj.string().split("\n")
new_object["issues"] = issues
return new_object


def versions(list_packages: list):
list_with_versions = []
for package in list_packages:
Expand Down
Loading

0 comments on commit 018b66a

Please sign in to comment.