Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ project CRUD routes: updates OAS and model schemas (part 1) #4064

Merged
merged 95 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
ab7e8dc
cleanup
pcrespov Apr 4, 2023
9a5668b
refactors create
pcrespov Apr 4, 2023
56a2e28
doc
pcrespov Apr 4, 2023
81a2646
cleanup
pcrespov Apr 4, 2023
1f2f35e
drafts OAS for CRUD
pcrespov Apr 4, 2023
a12e79d
rename _delete -> _delete_utils
pcrespov Apr 4, 2023
471567b
cleanup
pcrespov Apr 4, 2023
0dc866b
rename
pcrespov Apr 5, 2023
676f8fc
fixes returned by create and implements checks in asert
pcrespov Apr 5, 2023
bf03c90
renames _ports -> _ports_utils
pcrespov Apr 5, 2023
274cc6c
updates OAS
pcrespov Apr 5, 2023
4fe2043
fix
pcrespov Apr 5, 2023
d0d4f74
base models
pcrespov Apr 5, 2023
6ed7e34
adds name to captures
pcrespov Apr 5, 2023
09a350f
new oas models
pcrespov Apr 5, 2023
f901482
models
pcrespov Apr 5, 2023
5dcdc5d
test oas
pcrespov Apr 5, 2023
079abef
datestr
pcrespov Apr 6, 2023
b5684ab
non-strict extras
pcrespov Apr 6, 2023
86f236d
started testing OAS schemas
pcrespov Apr 6, 2023
c20856a
fixes on models factory
pcrespov Apr 12, 2023
0977065
cleanup
pcrespov Apr 12, 2023
894d5f9
cleanup project model
pcrespov Apr 12, 2023
d08da56
cleanup project_access
pcrespov Apr 12, 2023
7a93955
hard-code models
pcrespov Apr 12, 2023
d177c67
rest-schemas-base
pcrespov Apr 12, 2023
db20695
cleanup
pcrespov Apr 12, 2023
2b4dac5
adds tests
pcrespov Apr 12, 2023
6538e03
rm old model and recipe
pcrespov Apr 12, 2023
ecae1d8
create project modles
pcrespov Apr 12, 2023
9a48dbd
clenaup
pcrespov Apr 12, 2023
fe98d64
create project models
pcrespov Apr 12, 2023
7ebcb60
projects
pcrespov Apr 12, 2023
441d21d
test list
pcrespov Apr 12, 2023
ab987dd
OAS
pcrespov Apr 12, 2023
f9fdf22
services/webserver api version: 0.17.1 → 0.18.0
pcrespov Apr 12, 2023
499694b
cleanup
pcrespov Apr 12, 2023
31665f5
adds validatino of create
pcrespov Apr 12, 2023
4e1ebd0
cleanup ProjectDict
pcrespov Apr 12, 2023
58f81e9
rm pydantic_models_factory
pcrespov Apr 12, 2023
850e143
fixes sonarcloud issues
pcrespov Apr 12, 2023
b1e8193
minor
pcrespov Apr 12, 2023
3432c6d
fix
pcrespov Apr 12, 2023
82c8389
adds two new examples
pcrespov Apr 13, 2023
34e6628
fixe test
pcrespov Apr 13, 2023
e1d40b5
mino
pcrespov Apr 13, 2023
6676566
implementing validate_project with pydnatic
pcrespov Apr 13, 2023
f0dee4b
rm project json-schema
pcrespov Apr 13, 2023
d583a1c
rm node jsonschemas
pcrespov Apr 13, 2023
db6cf8d
fix tests
pcrespov Apr 13, 2023
d81ad5e
makefile recipe openapi-specs does not update schemas
pcrespov Apr 13, 2023
42a6e28
fixes webserver tests
pcrespov Apr 13, 2023
6b5a5e4
storage does not copy schemas
pcrespov Apr 13, 2023
1b77150
restores common schemas
pcrespov Apr 13, 2023
b2938ef
rm sript
pcrespov Apr 13, 2023
f5c2ecb
fixes linter
pcrespov Apr 13, 2023
dff95c4
fixes wrong patches
pcrespov Apr 13, 2023
4b614fd
fixes
pcrespov Apr 13, 2023
3ab7751
cleanup
pcrespov Apr 13, 2023
540ff88
new route name
pcrespov Apr 13, 2023
d9a5b9a
fix api test
pcrespov Apr 13, 2023
d68d32d
fixes after merge
pcrespov Apr 14, 2023
f506ac7
fixes tests
pcrespov Apr 14, 2023
86bb744
recover scripts
pcrespov Apr 14, 2023
053f1d7
fix tests
pcrespov Apr 14, 2023
e95fb3d
@GitHK review: rm validate_project
pcrespov Apr 14, 2023
76c3ae4
common validators
pcrespov Apr 15, 2023
65defe4
cleanup
pcrespov Apr 15, 2023
a023719
cleanup
pcrespov Apr 15, 2023
aca6ea5
cleanup
pcrespov Apr 15, 2023
1c8d292
fix returned create_proejct
pcrespov Apr 15, 2023
0d67c64
fixes alias
pcrespov Apr 15, 2023
2ae41b6
helpers
pcrespov Apr 15, 2023
f72030e
adjusting models
pcrespov Apr 15, 2023
6fb6a8b
adds ProjectGet to all Get operaionts
pcrespov Apr 15, 2023
51ab28a
tuning
pcrespov Apr 15, 2023
9097d9c
cleanup
pcrespov Apr 15, 2023
12e668e
exclude_unset=True
pcrespov Apr 15, 2023
cfe9c24
fixes bad refactoring
pcrespov Apr 15, 2023
e3cebe4
fixes get_active
pcrespov Apr 15, 2023
62f41b6
fixes uuid
pcrespov Apr 15, 2023
ef572a2
Fixes validation failure due to null description
pcrespov Apr 15, 2023
ddf966e
fixes new mypy
pcrespov Apr 15, 2023
8a637dd
fixes last test
pcrespov Apr 17, 2023
4f0569c
change thumbnail
pcrespov Apr 20, 2023
c41227c
fixes api-server uuid on create
pcrespov Apr 20, 2023
788b98f
uuid is None
pcrespov Apr 20, 2023
c3e5206
Merge branch 'master' into is4059/project-patch-part1
pcrespov Apr 20, 2023
cfd3486
rm wrong fixture
pcrespov Apr 20, 2023
244e9a5
cleanup
pcrespov Apr 20, 2023
c565d88
mionr
pcrespov Apr 20, 2023
1cf1605
fixes test 03
pcrespov Apr 21, 2023
a129c98
fixes 02
pcrespov Apr 21, 2023
5de0a2a
fixes regex
pcrespov Apr 21, 2023
6b105be
linter
pcrespov Apr 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions api/specs/common/schemas/scripts/create_node-meta-schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=unused-variable
# pylint: disable=too-many-arguments

import json
import sys
from pathlib import Path

import jsonref
from models_library.services import ServiceDockerData

CURRENT_DIR = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent


if __name__ == "__main__":

with open(CURRENT_DIR.parent / "node-meta-v0.0.1-pydantic.json", "w") as f:
schema = ServiceDockerData.schema_json()
schema_without_ref = jsonref.loads(schema)

json.dump(schema_without_ref, f, indent=2)
23 changes: 23 additions & 0 deletions api/specs/common/schemas/scripts/create_project-schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=unused-variable
# pylint: disable=too-many-arguments

import json
import sys
from pathlib import Path

import jsonref
from models_library.projects import Project

CURRENT_DIR = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent


if __name__ == "__main__":
with open(
CURRENT_DIR.parent / "common/schemas/project-v0.0.1-pydantic.json", "w"
) as f:
schema = Project.schema_json()
schema_without_ref = jsonref.loads(schema)

json.dump(schema_without_ref, f, indent=2)
Loading