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

Bug Fix: Consolidate changes made to Group Caches into a single ChangeSet #863

Merged
merged 5 commits into from
Feb 22, 2024

Conversation

dwcullop
Copy link
Member

@dwcullop dwcullop commented Feb 20, 2024

Description

Fixes #851 by leveraging the code from #852 to suspend the notifications about changes to the group contents until all of the groups have been updated.

  • Changes grouping helper class DynamicGrouper so that it manages the notification suspensions using a new helper class
  • Simplifies regrouping logic by removing multiple GroupBy LINQ operations that batched changes to so they could all be made at once (suspended notifications makes this unnecessary)

Operators Affected

  • GroupOnObservable Operator
  • Group Operator including the overload with IObservable Group Key Selector (GroupOnDynamic)

Testing

Added unit tests to verify the number of change sets is what it should be

@dwcullop dwcullop added the bug label Feb 20, 2024
@dwcullop dwcullop self-assigned this Feb 20, 2024
@dwcullop dwcullop changed the title Bug Fix: Reduce Group ChangeSets Bug Fix: Consolidate changes made to Group Caches into a single ChangeSet Feb 20, 2024
@dwcullop dwcullop enabled auto-merge (squash) February 20, 2024 18:05
@dwcullop dwcullop merged commit 1e0e11b into reactivemarbles:main Feb 22, 2024
1 check passed
Copy link

github-actions bot commented Mar 8, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2024
@dwcullop dwcullop deleted the feature/deferred-grouper branch March 21, 2024 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: GroupOnObservable emits too many changesets
2 participants