-
Notifications
You must be signed in to change notification settings - Fork 29
♻️ redirect list_dynamic_services
via dynamic-scheduler
#6893
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
Merged
GitHK
merged 25 commits into
ITISFoundation:master
from
GitHK:pr-osparc-redirect-remain-dv2-calls-via-dynamic-scheduler
Dec 9, 2024
Merged
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0b4577b
added listing endpoint to dynamic-scheduler
7839b52
added redirect via rpc
d74ec90
fixed dynamic-scheduler tests
fde3bb5
using validated version
aaa6aa4
fixed typing issue
c5dbc5c
fixed tests
83c17c3
fixed tests
ac534be
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
7db145b
adjusted tests
e125237
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
710679e
fixed broken tests
f01ae9c
fixed test
4a6f539
renaming fixture and fixed flaky tests
dc50346
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
4c89523
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
8d4f6fc
fix test
9afc50f
moved unset
2376933
added docstring
7edad2b
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
65ee01c
Merge remote-tracking branch 'upstream/master' into pr-osparc-redirec…
3bf0292
extend interface
d3c7d43
reads better
4413e50
rename
3c06f76
erge remote-tracking branch 'upstream/master' into pr-osparc-redirect…
2c787ad
Merge branch 'master' into pr-osparc-redirect-remain-dv2-calls-via-dy…
GitHK 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from typing import Any | ||
|
||
|
||
class UnSet: | ||
INSTANCE: "UnSet" | ||
|
||
|
||
UnSet.INSTANCE = UnSet() | ||
|
||
|
||
def as_dict_exclude_unset(**params) -> dict[str, Any]: | ||
return {k: v for k, v in params.items() if not isinstance(v, UnSet)} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Any | ||
|
||
from common_library.unset import UnSet, as_dict_exclude_unset | ||
|
||
|
||
def test_as_dict_exclude_unset(): | ||
def f( | ||
par1: str | UnSet = UnSet.INSTANCE, par2: int | UnSet = UnSet.INSTANCE | ||
) -> dict[str, Any]: | ||
return as_dict_exclude_unset(par1=par1, par2=par2) | ||
|
||
assert f() == {} | ||
assert f(par1="hi") == {"par1": "hi"} | ||
assert f(par2=4) == {"par2": 4} | ||
assert f(par1="hi", par2=4) == {"par1": "hi", "par2": 4} |
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
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
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
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.