This repository was archived by the owner on Jun 11, 2025. It is now read-only.
🐛 Fixed issue with get-device#254
Merged
Merged
Conversation
handled error for the get-device in case of no cluster or no vpn device
There was a problem hiding this comment.
PR Type: Bug fix
PR Summary: The pull request aims to address an issue within the GetVPNDevice function by modifying the error handling logic. Specifically, it changes the behavior to return the device object with a nil error in scenarios where it previously would have returned nil with an error. This includes cases where a cluster name could not be retrieved for the device or when wireguard configurations are missing or empty.
Decision: Comment
📝 Type: 'Bug fix' - not supported yet.
- Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
✅ Small diff: the diff is small enough to approve with confidence.
No details provided.
General suggestions:
- The changes made in the PR alter the function's error handling significantly, which could lead to unintended consequences. It's important to ensure that the new behavior aligns with the expectations of all callers of this function.
- Given the high risk of bugs and the potential for silent failures due to the changes in error handling, it's crucial to thoroughly test these changes. Consider adding more context in the PR description about the testing strategy and any specific scenarios that have been covered.
- Review the broader impact of these changes on the system, especially how the callers handle the modified return values. The PR should ensure that it does not introduce new issues by failing to communicate error states effectively.
- The PR title ':bug: Fixed issue with get-device' could be more descriptive regarding the nature of the fix. Consider specifying what aspect of the 'get-device' functionality is being fixed, especially since the changes involve significant alterations to error handling.
Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨
abdheshnayak
added a commit
that referenced
this pull request
Nov 5, 2024
🐛 Fixed issue with get-device
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.