-
Notifications
You must be signed in to change notification settings - Fork 11
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
Beds 3208/dashboard notifications add group subs #882
Beds 3208/dashboard notifications add group subs #882
Conversation
…08/dashboard_notifications_add_group_subs
…08/dashboard_notifications_add_group_subs
…ls for dashboard based notifications
Deploying beaconchain with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ptal at my suggestions/comments
backend/pkg/commons/db/migrations/postgres/20241001065611_dashboard_notifications.sql
Outdated
Show resolved
Hide resolved
} | ||
|
||
log.Infof("lock obtained") | ||
err = dispatchNotifications() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could pass ctx
down and apply it to all the db queries to handle timeouts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that won't work as those tx touch a different db. the timeout is here so that the lock eventually gets released. but as the sender has become network specific I believe the lock is also no longer needed or should be applied on network db level in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
Implements backend handling for dashboard based notifications. Preserves handling of legacy webhook notifications to provide backward compatibility.