-
Notifications
You must be signed in to change notification settings - Fork 36
✨ adds notifications service (⚠️ devops) #7436
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 65 commits into
ITISFoundation:master
from
GitHK:pr-osparc-add-notifications-service
Apr 24, 2025
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
e8c4c8c
unit tests
5033ace
rpc namespace
b08d0a7
added new service
d192df5
added service in compose files
b58f9fc
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
4251212
make CI trigger
d045e2a
migrate to lifespan from setup
45f0fa6
trigger ci
885aadf
remove unused
e37453c
using CSR pattern
04cd03b
fixed routing
2bd819e
added missing env vars
5a89d0b
added posrtgres to requirements
9e26f0b
added rest of service
c5f0604
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
d0f3e02
removed unused
441706e
revert
d9659dd
added spec generation
e5ea1ea
fixed install
44560db
module can now be imported
878dd0a
bumped timeouts
7647fda
constrained aiopika
c5a5ffd
revert
0e40763
alligned files
b9fac90
added missing
dfe5af5
removed constraints
7ba0b46
making test async to try in ci
1913266
rename
82f6418
services/notifications version: 0.0.1 → 0.0.2
22a6c69
revert changes
852ae92
services/notifications version: 0.0.2 → 0.0.3
2347d89
rename
5b22401
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
2af93ea
fixed broken tests
e769ee3
renamed and repalce
7826b06
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
1b15400
using new style lifespans
26865a8
remove unused
f9f9155
updated specs
38bfa82
using free port to deploy
fccd907
added health endpoint
2bf1f34
removing rclone
6a5ab9b
change log level
c549b17
rename with better naming
a07de4e
move /health endpoint to /
bc3f051
remove unused
2d6ec3e
removed unused
fc65e44
added owners
574934b
health updates
f11f14a
refactor
ab870e9
remove integrations folder
8f3bb33
added tests for health
4e9ccca
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
e36bd2b
fixed openapi specs script
bc7651d
refactor services to clients
22f69c9
added services as empty
b6fd7d8
fixed service building
44ea04c
bumped test coverage
b5dce44
fixed failing test
f54c61f
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
5fae894
sugestions
d98653c
verison changes
0fda9c3
feedback
aadf6d1
Merge remote-tracking branch 'upstream/master' into pr-osparc-add-not…
e11f9bb
update openapi.json
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | ||
set -o errexit # abort on nonzero exitstatus | ||
set -o nounset # abort on unbound variable | ||
set -o pipefail # don't hide errors within pipes | ||
IFS=$'\n\t' | ||
|
||
install() { | ||
make devenv | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
pushd services/notifications | ||
make install-ci | ||
popd | ||
uv pip list | ||
} | ||
|
||
test() { | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
pushd services/notifications | ||
make test-ci-unit | ||
popd | ||
} | ||
|
||
typecheck() { | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
uv pip install mypy | ||
pushd services/notifications | ||
make mypy | ||
popd | ||
} | ||
|
||
# Check if the function exists (bash specific) | ||
if declare -f "$1" >/dev/null; then | ||
# call arguments verbatim | ||
"$@" | ||
else | ||
# Show a helpful error | ||
echo "'$1' is not a known function name" >&2 | ||
exit 1 | ||
fi |
9 changes: 9 additions & 0 deletions
9
packages/models-library/src/models_library/api_schemas_notifications/__init__.py
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,9 @@ | ||
from typing import Final | ||
|
||
from pydantic import TypeAdapter | ||
|
||
from ..rabbitmq_basic_types import RPCNamespace | ||
|
||
NOTIFICATIONS_RPC_NAMESPACE: Final[RPCNamespace] = TypeAdapter( | ||
RPCNamespace | ||
).validate_python("notifications") |
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.