generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototype NOS implementation (GSI-588) (#1)
* Implement prototype * Delete openapi workflow * Remove unused pragmas * Sync method docstrings for port and adapter orchestrator * Undo static file change * Fill in description.md * Rename test_events to test_orchestrator * Add convenience method to Notification with error logging * Consolidate error log extras at top of methods Update docstrings Remove _retrieve_user_details * Grab logot update from mrt * Apply dispatch pattern to event subscriber * Eat notification object in .notify * Rename adapters folder to translators * Raise custom error from KeyError * Adapt CDS Email config name * Remove copy-pasted volume * Pack down redundant code in the orchestrator * Fix weird port description --------- Co-authored-by: TheByronHimes <TheByronHimes@gmail.com>
- Loading branch information
1 parent
44b92a4
commit 65bb393
Showing
52 changed files
with
2,285 additions
and
1,641 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
# Please only mention the non-default settings here: | ||
|
||
language: Greek | ||
service_instance_id: "1" | ||
central_data_stewardship_email: "test@test.abc" | ||
db_connection_str: mongodb://localhost:27017 | ||
db_name: users | ||
kafka_servers: ["kafka:9092"] | ||
access_request_events_topic: "access_request_events" | ||
access_request_created_type: "access_request_created" | ||
access_request_allowed_type: "access_request_allowed" | ||
access_request_denied_type: "access_request_denied" | ||
notification_event_type: "notification" | ||
notification_event_topic: "notification_events" |
This file contains 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
|
||
# adapt to package name | ||
my-microservice | ||
nos |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
[project] | ||
# please adapt to package name | ||
name = "my_microservice" | ||
name = "nos" | ||
version = "0.1.0" | ||
description = "My-Microservice - a short description" | ||
description = "The Notification Orchestration Service controls the creation of notification events." | ||
dependencies = [ | ||
"typer >= 0.9.0", | ||
"ghga-service-commons[api] >= 1.2.0", | ||
"ghga-event-schemas >= 1.0.0", | ||
"hexkit[akafka,s3,mongodb] >= 1.1.0" | ||
"ghga-service-commons[api] >= 3.0.0", | ||
"ghga-event-schemas >= 3.0.0", | ||
"hexkit[akafka,s3,mongodb] >= 2.1.0" | ||
] | ||
|
||
[project.urls] | ||
# please adapt to package name | ||
Repository = "https://github.com/ghga-de/my-microservice" | ||
Repository = "https://github.com/ghga-de/notification-orchestration-service" | ||
|
||
[project.scripts] | ||
# please adapt to package name | ||
my-microservice = "my_microservice.__main__:run" | ||
nos = "nos.__main__:run" |
This file contains 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- Please provide a short overview of the features of this service. --> | ||
|
||
Here you should provide a short summary of the purpose of this microservice. | ||
The Notification Orchestration Service (NOS) uses data harvested from events published | ||
by various services to form Notification events, which are subsequently consumed by the | ||
Notification Service (NS) for dissemination. |
This file contains 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Optional list of files which are actually mandatory in the template | ||
# but are allowed to be removed in the current repository | ||
scripts/script_utils/fastapi_app_location.py |
This file contains 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# Optional list of files which are actually static in the template | ||
# but are allowed to have different content in the current repository | ||
scripts/update_openapi_docs.py | ||
.github/workflows/check_openapi_spec.yaml |
This file contains 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.