Skip to content
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

Address null check error and prevent duplicate events on socket reconnect #1410

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

aarsham
Copy link
Contributor

@aarsham aarsham commented Feb 20, 2024

Fixes

@aarsham aarsham changed the title fix(graphql): remove unnecessary null checks in SocketClient Address null check error and prevent duplicate events on socket reconnect Feb 21, 2024
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Waiting on CI now

@vincenzopalazzo
Copy link
Collaborator

please can fix the Ci ? :) I think it is missing a simple make fmt

Copy link

codecov bot commented Mar 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.61%. Comparing base (eebac38) to head (2891d5b).

❗ Current head 2891d5b differs from pull request most recent head acdaabc. Consider uploading reports for the commit acdaabc to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1410      +/-   ##
==========================================
- Coverage   64.83%   64.61%   -0.23%     
==========================================
  Files          41       41              
  Lines        1732     1718      -14     
==========================================
- Hits         1123     1110      -13     
+ Misses        609      608       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aarsham
Copy link
Contributor Author

aarsham commented Apr 1, 2024

Some tests are failing because of this PR (#1394), which did not have all necessary checks run for it.

@vincenzopalazzo
Copy link
Collaborator

@aarsham Waiting for #1419

@aarsham
Copy link
Contributor Author

aarsham commented Apr 6, 2024

@vincenzopalazzo can you merge this please?

@vincenzopalazzo
Copy link
Collaborator

can you merge this please?

Rebase the PR on top of the current master in this way we can verify that the Ci is happy, thanks

aarsham added 3 commits April 8, 2024 16:37
**Fixes**
- Removed unnecessary null checks(!) on SocketChannel instance in SocketClient onConnectionLost() method which cause an error when client cannot connect (zino-hofmann#1379). this prevents reconnecting when there is a working connection later.
Resolved an issue in WebSocketClient where multiple listeners were added to `waitForConnectedState` when socket reconnects after subscription been requtesed with disconnected socket, causing duplicate events to be received by subscriptions.
@vincenzopalazzo vincenzopalazzo added this to the v5.2.0 milestone Apr 8, 2024
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@vincenzopalazzo vincenzopalazzo merged commit 385c331 into zino-hofmann:main Apr 8, 2024
4 checks passed
@aarsham aarsham deleted the fix-null-check branch April 8, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants