-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix self notification on expiry update via oidc relogin #2080
Conversation
WalkthroughThe changes primarily focus on enhancing the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add Documentation and Community
|
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- hscontrol/oidc.go (1 hunks)
Additional comments not posted (1)
hscontrol/oidc.go (1)
529-537
: LGTM! Verify the new context strings and notification calls.The changes improve the specificity of notifications related to node states. Ensure that the new context strings (
"oidc-expiry-self"
and"oidc-expiry-peers"
) and the new notification call toh.nodeNotifier.NotifyByNodeID
are correctly implemented and do not introduce any issues.The code changes are approved.
Run the following script to verify the new context strings and notification calls:
Verification successful
Verification successful for context strings and notification calls.
The context strings "oidc-expiry-self" and "oidc-expiry-peers" are correctly implemented in the
hscontrol/oidc.go
file. TheNotifyByNodeID
method is used appropriately across multiple files, indicating a consistent implementation of the notification system. No issues were found.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new context strings and notification calls. # Test: Search for the context strings. Expect: Only occurrences of the new context strings. rg --type go -A 5 $'oidc-expiry-self' rg --type go -A 5 $'oidc-expiry-peers' # Test: Search for the notification calls. Expect: Only occurrences of the new notification calls. rg --type go -A 5 $'h.nodeNotifier.NotifyByNodeID'Length of output: 1565
These failing tests should resolve after #2076, the fix is in one of the commits there. |
Rebasing this should make the test pass |
Fixes #2079
Summary by CodeRabbit