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

fix: rework how subscriptions are set up (SOFIE-2973) #9

Merged
merged 4 commits into from
Feb 26, 2024

Conversation

nytamin
Copy link
Contributor

@nytamin nytamin commented Feb 22, 2024

Now, the subscription methods returns an initial data set, which helps the GUI to reliably sync the initial data and resubscribe for following events

About the Contributor

This pull request is posted on behalf of the NRK.

Type of Contribution

This is a: Bug fix

Current Behavior

When the client loses connection and then reconnects, it resubscibes to the data, but any data changes that happened while it was disconnected won't be re-synced.

New Behavior

When resubscribing, the subscription methods now return the latest data set, helping the client to re-sync.

Also, a fix for the server unsubbing and resubbbing to the Core data immediately after.

Testing Instructions

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

Now, the subscription methods returns an initial data set, which helps the GUI to reliably sync the initial data and resubscribe for following events
This fixes an issue where the server would unnessecarily unsubscribe and resubscribe immediately after
@nytamin nytamin requested a review from jstarpl February 22, 2024 08:53
@nytamin nytamin merged commit 5d9c0d9 into main Feb 26, 2024
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.

1 participant