-
Notifications
You must be signed in to change notification settings - Fork 148
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) TopicMessageQuery#unsubscribe() attempts to re-subscribe #2582
Conversation
continuing from #2571 |
Hi @Jexsie the commit is still not verified. I can see the commit is signed but are you sure you've setup your GPG keys properly? You can look at this page for more info (Signing commits). Also I can see in your github profile that your previous commits in other directories (example) are not verified too. |
Signed-off-by: Jessy Ssebuliba <[email protected]>
7a29439
to
83a64d5
Compare
thanks alot for the support @agadzhalov. Now i see the verified flag |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2582 +/- ##
=======================================
Coverage 84.45% 84.45%
=======================================
Files 283 283
Lines 71038 71046 +8
=======================================
+ Hits 59993 60002 +9
+ Misses 11045 11044 -1 ☔ View full report in Codecov by Sentry. |
Before we can proceed with merging the changes, there is one final task to address. We need to incorporate unit tests for this feature, as the continuous integration (CI) process currently fails without them. As part of our commitment to enhancing code quality, we strive to improve code coverage by adding as many tests as possible whenever new features are implemented. Could you please create a file named TopicMessageQuery.js within the test/unit directory? The content of this file should be structured as follows: import { expect } from "chai";
describe("TopicMessageQuery", function () {
it("should ...", async function () {
});
}); Additionally, please ensure that the test you write covers lines 441-443. Oone test should suffice for this purpose. If you have any more questions I'd be glad to help. |
I see we have the TopicMessageMocking file that seems to be mocking the |
Yeah, fair point. You can use that. |
Signed-off-by: Jessy Ssebuliba <[email protected]>
79cfcf9
to
d74190b
Compare
Quality Gate passedIssues Measures |
I have added another test case to handle the scenario @ivaylonikolov7. |
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, thank you @Jexsie
Description:
The
unsubscribe
method invokes the _call function, which cancels the current active subscription but doesn’t necessarily stop retry attempts, as retries are managed separately inTopicMessageQuery
. I have added a check to prevent retries after unsubscribing in theerror
callbackScreen.Recording.2024-10-09.at.13.29.40.mov
Related issue(s):
Fixes #2222
Notes for reviewer:
Checklist