forked from openwallet-foundation/acapy-plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ Re-add NATS Plugin after reset to upstream/main #813
Merged
Conversation
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
* ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * 🚀 take on NATS plugin Copied from redis_events plugin, and replaced redis with nats-py (and json with orjson) Signed-off-by: ff137 <ff137@proton.me> * ✅ basic unit tests for events Signed-off-by: ff137 <ff137@proton.me> * 👷 skip nats_events integration testing Signed-off-by: ff137 <ff137@proton.me> * ✨ read `NATS_CREDS_FILE` from env vars Signed-off-by: ff137 <ff137@proton.me> * Update nats_events/README.md Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> * 🎨 rename nats topic to subject Signed-off-by: ff137 <ff137@proton.me> * 🎨 replace f-string interpolation in logs Signed-off-by: ff137 <ff137@proton.me> * ✨ use JetStream. Define streams on startup Signed-off-by: ff137 <ff137@proton.me> * ✨ bind and re-use JetStream context Signed-off-by: ff137 <ff137@proton.me> * ✨ handle jetstream publish ack Signed-off-by: ff137 <ff137@proton.me> * 🎨 remove use of `cast` Signed-off-by: ff137 <ff137@proton.me> * 🎨 more clear setup of jetstream context, instead of just nats Signed-off-by: ff137 <ff137@proton.me> * ✅ fix tests Signed-off-by: ff137 <ff137@proton.me> * 🎨 update NATS subject map to use `.`-pattern Signed-off-by: ff137 <ff137@proton.me> * Update nats_events/README.md Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> * 🙈 don't ignore vscode settings Signed-off-by: ff137 <ff137@proton.me> * 🔧 vscode cspell settings Signed-off-by: ff137 <ff137@proton.me> * 🎨 Signed-off-by: ff137 <ff137@proton.me> * 🚧 add some verbose logging for testing Signed-off-by: ff137 <ff137@proton.me> * 🎨 update method for nats connection args Signed-off-by: ff137 <ff137@proton.me> * 🚧 debug timeout error for defining stream, change stream name Signed-off-by: ff137 <ff137@proton.me> * 🚧 debug on_startup connecting to jetstream Signed-off-by: ff137 <ff137@proton.me> * 🚧 test replacing . in name with _ Signed-off-by: ff137 <ff137@proton.me> * ✨ publish with retry -- correctly handle PubAck Signed-off-by: ff137 <ff137@proton.me> * 🎨 log payload and no longer only write `with-state` records Signed-off-by: ff137 <ff137@proton.me> * 🎨 fix payload log type Signed-off-by: ff137 <ff137@proton.me> * 🎨 log levels Signed-off-by: ff137 <ff137@proton.me> * ✅ fix tests Signed-off-by: ff137 <ff137@proton.me> * ✨ handle OutboundMessage type (make it serialisable) Signed-off-by: ff137 <ff137@proton.me> * 🎨 retry should log error instead of raising exception Signed-off-by: ff137 <ff137@proton.me> * 🎨 handle optional target types Signed-off-by: ff137 <ff137@proton.me> * ✅ fix tests Signed-off-by: ff137 <ff137@proton.me> * 🎨 add words to cspell list Signed-off-by: ff137 <ff137@proton.me> * 🚧 remove define stream Signed-off-by: ff137 <ff137@proton.me> * 🎨 define one stream with many subjects Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com> Signed-off-by: ff137 <ff137@proton.me>
* 🎨 Update log levels Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade uvicorn Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade fastapi-slim Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade pytest-asyncio Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * 🐛 trace -> debug Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me>
* ⚡ skip outbound message types, temporarily for performance reasons Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
ff137
added a commit
that referenced
this pull request
Nov 12, 2024
* 🎉 NATS Plugin 🚧 (#666) * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * 🚀 take on NATS plugin Copied from redis_events plugin, and replaced redis with nats-py (and json with orjson) Signed-off-by: ff137 <ff137@proton.me> * ✅ basic unit tests for events Signed-off-by: ff137 <ff137@proton.me> * 👷 skip nats_events integration testing Signed-off-by: ff137 <ff137@proton.me> * ✨ read `NATS_CREDS_FILE` from env vars Signed-off-by: ff137 <ff137@proton.me> * Update nats_events/README.md Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> * 🎨 rename nats topic to subject Signed-off-by: ff137 <ff137@proton.me> * 🎨 replace f-string interpolation in logs Signed-off-by: ff137 <ff137@proton.me> * ✨ use JetStream. Define streams on startup Signed-off-by: ff137 <ff137@proton.me> * ✨ bind and re-use JetStream context Signed-off-by: ff137 <ff137@proton.me> * ✨ handle jetstream publish ack Signed-off-by: ff137 <ff137@proton.me> * 🎨 remove use of `cast` Signed-off-by: ff137 <ff137@proton.me> * 🎨 more clear setup of jetstream context, instead of just nats Signed-off-by: ff137 <ff137@proton.me> * ✅ fix tests Signed-off-by: ff137 <ff137@proton.me> * 🎨 update NATS subject map to use `.`-pattern Signed-off-by: ff137 <ff137@proton.me> * Update nats_events/README.md Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> * 🙈 don't ignore vscode settings Signed-off-by: ff137 <ff137@proton.me> * 🔧 vscode cspell settings Signed-off-by: ff137 <ff137@proton.me> * 🎨 Signed-off-by: ff137 <ff137@proton.me> * 🚧 add some verbose logging for testing Signed-off-by: ff137 <ff137@proton.me> * 🎨 update method for nats connection args Signed-off-by: ff137 <ff137@proton.me> * 🚧 debug timeout error for defining stream, change stream name Signed-off-by: ff137 <ff137@proton.me> * 🚧 debug on_startup connecting to jetstream Signed-off-by: ff137 <ff137@proton.me> * 🚧 test replacing . in name with _ Signed-off-by: ff137 <ff137@proton.me> * ✨ publish with retry -- correctly handle PubAck Signed-off-by: ff137 <ff137@proton.me> * 🎨 log payload and no longer only write `with-state` records Signed-off-by: ff137 <ff137@proton.me> * 🎨 fix payload log type Signed-off-by: ff137 <ff137@proton.me> * 🎨 log levels Signed-off-by: ff137 <ff137@proton.me> * ✅ fix tests Signed-off-by: ff137 <ff137@proton.me> * ✨ handle OutboundMessage type (make it serialisable) Signed-off-by: ff137 <ff137@proton.me> * 🎨 retry should log error instead of raising exception Signed-off-by: ff137 <ff137@proton.me> * 🎨 handle optional target types Signed-off-by: ff137 <ff137@proton.me> * ✅ fix tests Signed-off-by: ff137 <ff137@proton.me> * 🎨 add words to cspell list Signed-off-by: ff137 <ff137@proton.me> * 🚧 remove define stream Signed-off-by: ff137 <ff137@proton.me> * 🎨 define one stream with many subjects Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com> Signed-off-by: ff137 <ff137@proton.me> * 🎨 nats_events: update log levels (#733) * 🎨 Update log levels Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade uvicorn Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade fastapi-slim Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Upgrade pytest-asyncio Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> * 🐛 trace -> debug Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me> * Skip-nats-outbound-messages (#734) * ⚡ skip outbound message types, temporarily for performance reasons Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock files Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update dependencies Signed-off-by: ff137 <ff137@proton.me> * ⬆️ Update lock file Signed-off-by: ff137 <ff137@proton.me> * ⏪ Revert changes to other lock files Signed-off-by: ff137 <ff137@proton.me> --------- Signed-off-by: ff137 <ff137@proton.me> Signed-off-by: Mourits de Beer <31511766+ff137@users.noreply.github.com> Co-authored-by: Henry Msiska <henrymsi+dev@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Signed-off-by: ff137 ff137@proton.me