Skip to content

Commit 018b66a

Browse files
Merge pull request #76 from Geode-solutions/next
Next
2 parents 208cf0c + f7ac63a commit 018b66a

File tree

10 files changed

+272
-530
lines changed

10 files changed

+272
-530
lines changed

CHANGELOG.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,110 @@
22

33

44

5+
## v4.1.0-rc.2 (2024-04-29)
6+
7+
### Feature
8+
9+
* feat(inspector): trigger semantic release ([`ec94ac6`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/ec94ac61161417cb5efddddd12b3344feceb18b2))
10+
11+
12+
## v4.1.0-rc.1 (2024-04-29)
13+
14+
### Feature
15+
16+
* feat(inpector): new inpector api ([`65e9df5`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/65e9df554e915135cfbc8370abf52e9b96f927ff))
17+
18+
### Unknown
19+
20+
* Merge pull request #75 from Geode-solutions/feat/update_inspector
21+
22+
Feat/update inspector ([`69e151a`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/69e151afe22f783067ae31f21e4b01cfe90e93f9))
23+
24+
* Apply prepare changes ([`beb1a05`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/beb1a057afe009f468957a37f97d5ef768aa3ac6))
25+
26+
* update tests ([`64410fe`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/64410fe18d0137a05b24ab8f8184a77dfbad0b79))
27+
28+
* refactor and clean code 2 ([`c542eff`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/c542effeee0d0975b842953da2262fb979104923))
29+
30+
* refactor and clean code ([`1f63bee`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/1f63bee9eeb2dc108b78e3cce8508492cac148c3))
31+
32+
* update dependencies ([`3bb44fc`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/3bb44fcce14c87a739d163abff7f10e5b831a274))
33+
34+
* update dependencies master ([`8203295`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/8203295f958c9ac893b1cb2fefd7ca757771d54e))
35+
36+
* update dependencies ([`43a3d49`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/43a3d4964415f7202b31a4e368c5d660f0eae268))
37+
38+
* Apply prepare changes ([`1abec77`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/1abec771aff90b5b252a2e1186c1271931865645))
39+
40+
* split issues into array ([`81aa92a`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/81aa92a285f9694cb10e079c3eb0f96e628c7aeb))
41+
42+
* update dependencies ([`b2b12ca`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/b2b12ca3920c8f04ddd9a2ce473c67e315d54cfb))
43+
44+
* Apply prepare changes ([`22462d7`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/22462d7f16ad9ba99fba25f59e936a0522a970df))
45+
46+
* update tests ([`db6d711`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/db6d711cb24cfcab48c4f5c85951aeeec27ef0ac))
47+
48+
* remove unused file ([`9e6d1e7`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/9e6d1e7b0a9b171840d01b4639f1c40b29d67a64))
49+
50+
* update dependencies, fixes tests ([`38992e9`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/38992e99c785cdf10988733507aac694a5a33e54))
51+
52+
* Apply prepare changes ([`0393063`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/0393063c2f59bedc9aafeb79e918d71631504fa5))
53+
54+
* code cleanup 3 ([`9821906`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/98219069117a8f0419e25cd5e8ad2cea84ce9f84))
55+
56+
* 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))
57+
58+
* code cleanup 2 ([`0471623`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/0471623c027bba29568bce1a574cf065b60726ef))
59+
60+
* Apply prepare changes ([`e4f9bdf`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/e4f9bdf9d1da79a710b258b6f23394dc82e8baa1))
61+
62+
* code cleanup ([`a93114a`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/a93114a0e03aa00049a3d417795092309ad45317))
63+
64+
* update tests and requirements ([`d00d8fb`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/d00d8fb1f91898b9c813ad9d734be59dbee76c3a))
65+
66+
* save wip ([`bd1cb10`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/bd1cb10c354c677e2d2962c7f9ce3cc60c824017))
67+
68+
* update requirements ([`8633dee`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/8633dee4e45474e25cb2c3df6c1a5ec1c51ccfd8))
69+
70+
* wip(inspect_file): route/schema & test ([`ca2a052`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/ca2a05285e5524af87b1f4d15769cca4a5f0c207))
71+
72+
* dlete unused harcoded functions ([`beaa60b`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/beaa60b1cea92695749d4e9640b996e63519d5f5))
73+
74+
* update dependencies ([`bf0e5ff`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/bf0e5fff3c3666b5e17d767dda20d81e1191c779))
75+
76+
* ([`cf41940`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/cf419406f317bcc319502c2645c0adaf08e9fd57))
77+
78+
* Merge pull request #74 from Geode-solutions/next
79+
80+
Next ([`208cf0c`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/208cf0cff34caf999b0395fadc3ec20ff31a7cec))
81+
82+
* Merge pull request #73 from Geode-solutions/fix/CI
83+
84+
fix(CI) add CI on all branches ([`7a9a311`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/7a9a3113c40d772efd488a820054f784b6990541))
85+
86+
* lighter raster image 2d ([`a3ea653`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/a3ea653cec4af4860244ec130b8ce9aa06162e60))
87+
88+
* vti2d ([`cb2f2ed`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/cb2f2ed16d215fe8d962fa6152b134f8fd5709b7))
89+
90+
* lighter vti ([`d8b0487`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/d8b04871396fbd749d2aa74251f586f8bca3a2a6))
91+
92+
* fix stupid typo ([`786f4e3`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/786f4e324b70b1c6454e4ca6dd3216d38764099c))
93+
94+
* fix tests paths ([`40df704`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/40df7049147a94dc1dfc55e20426e29c11cf807d))
95+
96+
* pip install pytest ([`ef0fee6`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/ef0fee64b197fc872e7c1d819b62256073267057))
97+
98+
* pip install pytest ([`45edcf1`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/45edcf1ef2e59e7d3b245dce79ff1d0d2c66645c))
99+
100+
* Update .github/workflows/CICD.yml
101+
102+
Co-authored-by: Arnaud Botella <[email protected]> ([`8080276`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/80802762c3c4d72dabfdeeba2b2dff57f405442d))
103+
104+
* fix(CI) add CI on all branches ([`47a5e3f`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/47a5e3fcb17a6a9917bcd807ceaeedfe41377ca3))
105+
106+
* ([`21a1f25`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/21a1f25bd50a7f38a3666e6e73ee2b77ac28e979))
107+
108+
5109
## v4.0.0 (2024-02-29)
6110

7111
### Unknown

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "OpenGeodeWeb-Back"
8-
version = "4.0.0"
8+
version = "4.1.0-rc.2"
99
dynamic = ["dependencies"]
1010
authors = [
1111
{ name="Geode-solutions", email="[email protected]" },

requirements.txt

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# pip-compile requirements.in
66
#
7-
asgiref==3.7.2
7+
asgiref==3.8.1
88
# via flask
99
attrs==23.2.0
1010
# via
1111
# jsonschema
1212
# referencing
13-
blinker==1.7.0
13+
blinker==1.8.1
1414
# via flask
1515
click==8.1.7
1616
# via flask
17-
colorama==0.4.6
18-
# via click
19-
flask[async]==3.0.1
17+
flask[async]==3.0.3
2018
# via
2119
# -r requirements.in
2220
# flask-cors
2321
flask-cors==4.0.0
2422
# via -r requirements.in
25-
geode-background==7.7.1
23+
geode-background==7.9.8
2624
# via
2725
# geode-explicit
2826
# geode-implicit
2927
# geode-simplex
30-
geode-common==30.1.2
28+
geode-common==31.0.8
3129
# via
3230
# -r requirements.in
3331
# geode-background
@@ -36,40 +34,38 @@ geode-common==30.1.2
3634
# geode-numerics
3735
# geode-simplex
3836
# geode-viewables
39-
geode-conversion==5.2.1
37+
geode-conversion==5.2.8
4038
# via
4139
# geode-explicit
4240
# geode-implicit
43-
geode-explicit==4.4.3
41+
geode-explicit==4.7.5
4442
# via
4543
# -r requirements.in
4644
# geode-implicit
47-
geode-implicit==2.6.1
45+
geode-implicit==2.8.6
4846
# via -r requirements.in
49-
geode-numerics==4.3.0
47+
geode-numerics==4.3.3
5048
# via
5149
# -r requirements.in
5250
# geode-implicit
5351
# geode-simplex
54-
geode-simplex==6.5.1
52+
geode-simplex==6.7.4
5553
# via -r requirements.in
56-
geode-viewables==2.2.0
54+
geode-viewables==2.2.2
5755
# via -r requirements.in
58-
importlib-metadata==7.0.1
59-
# via flask
60-
itsdangerous==2.1.2
56+
itsdangerous==2.2.0
6157
# via flask
6258
jinja2==3.1.3
6359
# via flask
6460
jsonschema==4.21.1
6561
# via -r requirements.in
6662
jsonschema-specifications==2023.12.1
6763
# via jsonschema
68-
markupsafe==2.1.4
64+
markupsafe==2.1.5
6965
# via
7066
# jinja2
7167
# werkzeug
72-
opengeode-core==14.13.2
68+
opengeode-core==14.19.2
7369
# via
7470
# -r requirements.in
7571
# geode-background
@@ -84,40 +80,37 @@ opengeode-core==14.13.2
8480
# opengeode-geosciencesio
8581
# opengeode-inspector
8682
# opengeode-io
87-
opengeode-geosciences==7.4.0
83+
opengeode-geosciences==7.6.4
8884
# via
8985
# -r requirements.in
9086
# geode-implicit
9187
# geode-viewables
9288
# opengeode-geosciencesio
93-
opengeode-geosciencesio==4.6.0
89+
opengeode-geosciencesio==4.7.6
9490
# via
9591
# -r requirements.in
9692
# geode-implicit
97-
opengeode-inspector==4.0.6
93+
opengeode-inspector==5.1.3
9894
# via
9995
# -r requirements.in
10096
# geode-explicit
10197
# geode-implicit
102-
opengeode-io==6.4.0
98+
# geode-simplex
99+
opengeode-io==6.5.1
103100
# via
104101
# -r requirements.in
105102
# geode-implicit
106103
# geode-viewables
107104
# opengeode-geosciencesio
108-
referencing==0.33.0
105+
referencing==0.35.0
109106
# via
110107
# jsonschema
111108
# jsonschema-specifications
112-
rpds-py==0.17.1
109+
rpds-py==0.18.0
113110
# via
114111
# jsonschema
115112
# referencing
116-
typing-extensions==4.9.0
117-
# via asgiref
118-
werkzeug==3.0.1
113+
werkzeug==3.0.2
119114
# via
120115
# -r requirements.in
121116
# flask
122-
zipp==3.17.0
123-
# via importlib-metadata

src/opengeodeweb_back/geode_functions.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def is_viewable(geode_object: str):
9090
return geode_object_value(geode_object)["is_viewable"]
9191

9292

93-
def inspector(geode_object: str, data):
93+
def inspect(geode_object: str, data):
9494
return geode_object_value(geode_object)["inspector"](data)
9595

9696

@@ -174,6 +174,32 @@ def geode_objects_output_extensions(geode_object: str, data):
174174
return geode_objects_output_extensions_dict
175175

176176

177+
def get_inspector_children(obj):
178+
new_object = {}
179+
180+
if "inspection_type" in dir(obj):
181+
new_object["title"] = obj.inspection_type()
182+
new_object["nb_issues"] = 0
183+
new_object["children"] = []
184+
for child in dir(obj):
185+
if not child.startswith("__") and not child in [
186+
"inspection_type",
187+
"string",
188+
]:
189+
child_instance = obj.__getattribute__(child)
190+
child_object = get_inspector_children(child_instance)
191+
new_object["children"].append(child_object)
192+
new_object["nb_issues"] += child_object["nb_issues"]
193+
else:
194+
new_object["title"] = obj.description()
195+
nb_issues = obj.nb_issues()
196+
new_object["nb_issues"] = nb_issues
197+
if nb_issues > 0:
198+
issues = obj.string().split("\n")
199+
new_object["issues"] = issues
200+
return new_object
201+
202+
177203
def versions(list_packages: list):
178204
list_with_versions = []
179205
for package in list_packages:

0 commit comments

Comments
 (0)