-
Notifications
You must be signed in to change notification settings - Fork 31
WIP: ♻️ Use projects_nodes
table instead of projects.workbench
(🗃️)
#8141
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
Draft
giancarloromeo
wants to merge
215
commits into
ITISFoundation:master
Choose a base branch
from
giancarloromeo:is5646/use-project-nodes-table-instead-of-workbench
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,253
−1,246
Draft
Changes from all commits
Commits
Show all changes
215 commits
Select commit
Hold shift + click to select a range
d2b2e6f
Remove workbench column from projects_table
giancarloromeo d78aa5c
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo 47072ad
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo 6cc38ae
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo f6ae1d7
fix: remove workbench from faker factory
giancarloromeo 20cef27
fix: remove workbench references from catalog
giancarloromeo b9cc19c
Merge branch 'master' into pr/giancarloromeo/8141
pcrespov e920c1f
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
pcrespov 2637c2c
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
pcrespov 77d26ec
fixes projecst repo
pcrespov c209c6b
fixes tests modules
pcrespov 5b7935a
faker
pcrespov 019e04b
fixing nodes
pcrespov 9c0640e
fixing fakes
pcrespov f7cf17b
fixing fakes
pcrespov 17f60de
fixes update
pcrespov 1c9de98
minor
pcrespov 764a386
Merge branch 'master' into pr/giancarloromeo/8141
pcrespov 360dcb4
fixes migration tests
pcrespov 86e02d6
fixes
pcrespov d1510e5
simplified fixture
pcrespov 791e8b3
comment
pcrespov 00370e5
fix: create_node fixture
giancarloromeo 398866c
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
giancarloromeo 54028fb
fix: move project_exists
giancarloromeo 5f6f274
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
pcrespov caa2799
rename
pcrespov 6615e9b
rm project dependency
pcrespov 8181580
Updates Node model and cleanup
pcrespov 7e1fb26
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
pcrespov cce82cb
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
pcrespov 86846a6
Merge remote-tracking branch 'upstream/master' into is5646/use-projec…
giancarloromeo e33be86
fix: use annotated functional validators
giancarloromeo 5bce45d
fix: fixtures still using workbench
giancarloromeo a0d89e4
fix: paths with problematic names
giancarloromeo b58f26f
fix: RPC tests
giancarloromeo 2700ee6
fix: minor
giancarloromeo 14f50e6
fix: frontend data generator
giancarloromeo 43630d5
fix: project_id type
giancarloromeo 243c5e8
fix: unpack created project/nodes
giancarloromeo 427f998
fix: unpack
giancarloromeo 841593d
fix: clone test
giancarloromeo dbf42b6
fix: project_nodes
giancarloromeo 3b8a3ba
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo 1adee7e
fix: node names mapping
giancarloromeo 2961b6f
fix: nullable workbench
giancarloromeo f5ae1c5
fix: exclude workbench from validation
giancarloromeo d9881a1
fix: validate ignoring workbench
giancarloromeo 1ceff4d
fix: temp include workbench on a validation
giancarloromeo a47e4c8
fix: folder body
giancarloromeo 45a07b8
fix: workbench
giancarloromeo 03acbd8
fix: remove workbench
giancarloromeo b16810c
fix: workbench
giancarloromeo 6558b5a
fix: webserver
giancarloromeo 2bc186d
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo adb9897
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo 67c2183
fix: workbench
giancarloromeo 6048085
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
giancarloromeo 4455d50
fix: use batch call
giancarloromeo 2954940
Merge remote-tracking branch 'upstream/master' into is5646/use-projec…
giancarloromeo 0eec938
storage: returns minimal tuple
pcrespov d52d3e7
proper migration project.workbench
pcrespov 30b2b7f
using insert_and_get_row
pcrespov 38da394
fixes logs
pcrespov a0b71bb
doc
pcrespov ab0a810
fix: projects states handlers
giancarloromeo e86fe27
fix: typecheck
giancarloromeo ae80167
fix: typecheck
giancarloromeo 5dde879
fix: relative import
giancarloromeo a2a8a27
fix: typecheck
giancarloromeo f4fd950
fix: extract workbench
giancarloromeo 3a25b02
fix: use workbench subquery
giancarloromeo a4cbb9a
fix: use workbench subquery
giancarloromeo e5de7b1
fix: get project with workbench
giancarloromeo 907708b
fix: imports
giancarloromeo 3156531
fix: inputs required nullability
giancarloromeo 7b07b66
fix: typecheck
giancarloromeo 0a3d8d7
fix: project cancellation
giancarloromeo 4f43294
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
pcrespov e327c6b
model_dump_as_node
pcrespov ded3e8d
fixes fixture
pcrespov 9c23c06
cleanup
pcrespov 994cc0d
fixes workbench retrieval
pcrespov 2ce1cc6
fixes insert batch
pcrespov b0f1626
Merge branch 'master' into pr/giancarloromeo/8141
pcrespov a9b80b2
no need to restor workbench
pcrespov 087ec30
remove define `_projects_service.get_project_for_user`
pcrespov 7b2639c
fix: validate workbench against nodes
giancarloromeo 1770502
fix: return project with workbench when creating
giancarloromeo 5b213c0
fix: create project fixture
giancarloromeo ea67751
fix: workbench when share workpace
giancarloromeo 9295602
fix: workbench when getting workspaces
giancarloromeo 58549f7
fix: include None
giancarloromeo 41d4182
fix: extract only not nulls
giancarloromeo 9b892c1
Merge remote-tracking branch 'upstream/master' into is5646/use-projec…
giancarloromeo 6ac876d
Merge remote-tracking branch 'upstream/master' into is5646/use-projec…
giancarloromeo d4b90ff
Add trigger/function when updating project nodes
giancarloromeo d95331f
Fix script
giancarloromeo a797222
fix: delete project_node
giancarloromeo bf033d2
remove unused
giancarloromeo c9c6a1e
fix: script downgrade order
giancarloromeo 73e8ca1
fix: test
giancarloromeo 9e0e95f
fix: lastChangeDate assert
giancarloromeo 790feaf
fix: test
giancarloromeo b81f5b2
fix: node creation
giancarloromeo f41304c
typecheck
giancarloromeo 86c5a75
typecheck
giancarloromeo b0b2667
remove old
giancarloromeo 726cdc3
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo 0a16f40
remove unused
giancarloromeo fba3af1
use new repo
giancarloromeo 9a7c654
remove get project
giancarloromeo 725be27
update nodes
giancarloromeo 5e14001
fix document creation
giancarloromeo 0cecabd
fix tests
giancarloromeo f8fa9e6
fix test
giancarloromeo 8ffa91b
fix tests
giancarloromeo e5a9b5f
fix
giancarloromeo 42ee9d1
fix deepdiff
giancarloromeo 661b5a5
remove tests
giancarloromeo 325608c
fix model_dump
giancarloromeo 127e90a
fix
giancarloromeo df2e204
fix test
giancarloromeo 824200a
fix int test
giancarloromeo c69df79
tests: ignore order
giancarloromeo 6c0431f
fix: inputs required
giancarloromeo ee01c01
fix: node outputs
giancarloromeo 6a51b9a
fix: more efficient get product
giancarloromeo 77762b3
refactor: remove access to workbench
giancarloromeo 289544c
Fix bug
matusdrobuliak66 c8d26b5
Merge remote-tracking branch 'matusdrobuliak66/fix-access-rights-work…
giancarloromeo 7db6618
fix: project node states
giancarloromeo 9fb1220
fix: project states
giancarloromeo 5757eb8
fix: validator
giancarloromeo 19834d2
fix: get project with None
giancarloromeo bbc6560
fix: get project
giancarloromeo 393e7db
fix: tags
giancarloromeo 546003f
fix: workbench
giancarloromeo 21a4ed0
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo e2df3dd
fix: get project response
giancarloromeo 2f611c3
Merge branch 'is5646/use-project-nodes-table-instead-of-workbench' of…
giancarloromeo 20f70f6
fix: workbench
giancarloromeo 1319020
fix: node state
giancarloromeo bfa1685
remove workbench
giancarloromeo 044edc5
fix: repo
giancarloromeo de831c4
fix: new syntax
giancarloromeo 9dada93
fix: include unset
giancarloromeo d453f76
tests: prettify deepdiff
giancarloromeo f29cf8c
fix: test
giancarloromeo 7928dfb
fix: model dump without aliases
giancarloromeo 88c3159
typecheck
giancarloromeo d01e3c3
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo 5dd1c82
fix: node creation
giancarloromeo c1826f8
fix: typecheck
giancarloromeo ae75ac1
fix: node creation
giancarloromeo 3547a21
typecheck
giancarloromeo 6104f45
fix: response
giancarloromeo 994adda
fix: match
giancarloromeo f6ba587
fix: nullability
giancarloromeo da63986
fix test
giancarloromeo 0df85db
remove workbench
giancarloromeo e9793e1
fix: project creation with nodes
giancarloromeo 198bb4b
clean
giancarloromeo 2748c5a
remove unused
giancarloromeo f4655a9
remove fixme
giancarloromeo b8c966e
fix: streams
giancarloromeo 8eabd50
fix relative
giancarloromeo a415e87
fix: revert casing
giancarloromeo 13bbe34
fix random
giancarloromeo 99c2eb7
rename
giancarloromeo 7e3bbe9
fix helper
giancarloromeo 7d71e9f
fix
giancarloromeo c946376
fix
giancarloromeo 6972a84
fix
giancarloromeo 3bf0399
fix
giancarloromeo 6f2dbf3
fix warnings logs
giancarloromeo f325339
remove position
giancarloromeo 3464789
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
giancarloromeo bb16e26
fix
giancarloromeo e918dce
Merge branches 'is5646/use-project-nodes-table-instead-of-workbench' …
giancarloromeo df073b1
fix tests
giancarloromeo 89404b9
fix
giancarloromeo 669b4a8
fix
giancarloromeo 6105bda
fix logs
giancarloromeo 22d39ed
fix
giancarloromeo 1b53a30
fix
giancarloromeo 75d7e55
fix
giancarloromeo b82302f
fix
giancarloromeo e12c40b
fix
giancarloromeo 9dfe2df
revert models
giancarloromeo 88f91f5
fix: improve listing
giancarloromeo db156e4
fix: script
giancarloromeo 6e17b80
fix: connection
giancarloromeo c5a12a0
Merge remote-tracking branch 'upstream/master' into is5646/use-projec…
giancarloromeo b7bb036
fix
giancarloromeo ec1d762
fix: model dump
giancarloromeo 5718e92
try to fix
giancarloromeo 260c4ab
try to fix 2.0
giancarloromeo cc86d53
fix: workbench nulls
giancarloromeo 413f4dc
fix: test
giancarloromeo 6780a88
Merge branch 'master' into pr/giancarloromeo/8141
pcrespov fb3179e
fix: alembic
giancarloromeo ed060af
fix: typecheck
giancarloromeo ac12cba
fix: duplicate by_alias
giancarloromeo eafc2d3
updates webserver OAS
pcrespov f9483cb
fixes update node's states
pcrespov 6b0048f
fixes mypy
pcrespov c93168a
fixes test listerner
pcrespov c66590d
fixes test helper
pcrespov f3512b3
db returns None. sa.func.json_strip_nulls -> sa.func.json
pcrespov 08f1138
Merge branch 'master' into is5646/use-project-nodes-table-instead-of-…
pcrespov fb73d03
type
pcrespov 4217743
Merge branch 'master' into pr/giancarloromeo/8141
pcrespov 7c6197d
Adapts revisitons
pcrespov 4b70868
fix
pcrespov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,14 +177,22 @@ class NodeState(BaseModel): | |
|
||
model_config = ConfigDict( | ||
extra="forbid", | ||
populate_by_name=True, | ||
validate_by_alias=True, | ||
validate_by_name=True, | ||
json_schema_extra={ | ||
"examples": [ | ||
# example with alias name | ||
{ | ||
"modified": True, | ||
"dependencies": [], | ||
"currentStatus": "NOT_STARTED", | ||
}, | ||
# example with field name | ||
{ | ||
"modified": True, | ||
"dependencies": [], | ||
"current_status": "NOT_STARTED", | ||
}, | ||
{ | ||
"modified": True, | ||
"dependencies": ["42838344-03de-4ce2-8d93-589a5dcdfd05"], | ||
|
@@ -230,7 +238,7 @@ class Node(BaseModel): | |
Field(description="The short name of the node", examples=["JupyterLab"]), | ||
] | ||
progress: Annotated[ | ||
float | None, | ||
int | None, | ||
Field( | ||
ge=0, | ||
le=100, | ||
|
@@ -302,22 +310,28 @@ class Node(BaseModel): | |
Field(default_factory=dict, description="values of output properties"), | ||
] = DEFAULT_FACTORY | ||
|
||
output_node: Annotated[bool | None, Field(deprecated=True, alias="outputNode")] = ( | ||
None # <-- (DEPRECATED) Can be removed | ||
) | ||
output_node: Annotated[ | ||
bool | None, | ||
Field( | ||
deprecated=True, | ||
alias="outputNode", | ||
), | ||
] = None # <-- (DEPRECATED) Can be removed | ||
|
||
output_nodes: Annotated[ # <-- (DEPRECATED) Can be removed | ||
list[NodeID] | None, | ||
Field( | ||
description="Used in group-nodes. Node IDs of those connected to the output", | ||
alias="outputNodes", | ||
deprecated=True, | ||
), | ||
Comment on lines
+313
to
327
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about removing these? |
||
] = None | ||
|
||
parent: Annotated[ # <-- (DEPRECATED) Can be removed | ||
NodeID | None, | ||
Field( | ||
description="Parent's (group-nodes') node ID s. Used to group", | ||
deprecated=True, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
), | ||
] = None | ||
|
||
|
@@ -334,6 +348,10 @@ class Node(BaseModel): | |
Field(default_factory=NodeState, description="The node's state object"), | ||
] = DEFAULT_FACTORY | ||
|
||
required_resources: Annotated[ | ||
dict[str, Any] | None, Field(default_factory=dict) | ||
] = DEFAULT_FACTORY | ||
|
||
boot_options: Annotated[ | ||
dict[EnvVarKey, str] | None, | ||
Field( | ||
|
@@ -453,12 +471,14 @@ def _update_json_schema_extra(schema: JsonDict) -> None: | |
|
||
model_config = ConfigDict( | ||
extra="forbid", | ||
populate_by_name=True, | ||
validate_by_name=True, | ||
validate_by_alias=True, | ||
json_schema_extra=_update_json_schema_extra, | ||
) | ||
|
||
|
||
class PartialNode(Node): | ||
key: Annotated[ServiceKey, Field(default=None)] | ||
version: Annotated[ServiceVersion, Field(default=None)] | ||
label: Annotated[str, Field(default=None)] | ||
# NOTE: `type: ignore[assignment]` is needed because mypy gets confused when overriding the types by adding the Union with None | ||
key: ServiceKey | None = None # type: ignore[assignment] | ||
version: ServiceVersion | None = None # type: ignore[assignment] | ||
label: str | None = None # type: ignore[assignment] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.