-
-
Notifications
You must be signed in to change notification settings - Fork 182
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]: OnCompleted never fires v7.9.* #635
Comments
Thanks for letting my know. I will take a look as soon as I can. |
The core problem is that the internal Unless there's any objections, I'm going to work on enhancing the test coverage for this operator, which currently consists of only one test, and then once that's accepted and merged, re-write the operator from scratch, as there's also opportunity for performance improvement at the same time. |
…increasting code coverage from 69% to 100% across the internal implementation classes. Identified existing defects within the `.ToObservableChangeSet()` operators, mostly related to error and completion propagation, and implemented testing for this behavior, with the tests being marked as "Skip" until the defects are fixed. This also includes the defect referred in reactivemarbles#635. Added an `IsCompleted` flag to `ChangeSetAggregator<T>`, to allow for testing of completion propagation.
* Rebuilt test fixtures for both `.ToObservableChangeSet()` operators, increasting code coverage from 69% to 100% across the internal implementation classes. Identified existing defects within the `.ToObservableChangeSet()` operators, mostly related to error and completion propagation, and implemented testing for this behavior, with the tests being marked as "Skip" until the defects are fixed. This also includes the defect referred in #635. Added an `IsCompleted` flag to `ChangeSetAggregator<T>`, to allow for testing of completion propagation. * Added benchmarks for `.ToObservableChangeSet()` operators.
…nd lists, for better independence, proper error handling, and improved performance. Resolves reactivemarbles#635.
…nd lists, for better independence, proper error handling, and improved performance. Resolves reactivemarbles#635.
…nd lists, for better independence, proper error handling, and improved performance. Resolves reactivemarbles#635.
…nd lists, for better independence, proper error handling, and improved performance. Resolves reactivemarbles#635.
* Re-designed the `.ToObservableChangeSet()` operator for both caches and lists, for better independence, proper error handling, and improved performance. Resolves #635. * Code Format updates * Formatting/Organization * Updated `.ToObservableChangeSet()` implementations to leverage C#11 features. --------- Co-authored-by: Chris Pulman <[email protected]>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug 🐞
I used similar code as the below step with DynamicData v7.8.6. I updated to 7.9.14 and OnCompleted subscription stopped firing.
Step to reproduce
// Arrange
using var disposable = new CompositeDisposable();
var publishedObservable = Observable.Create(o =>
{
o.OnNext(1);
o.OnCompleted();
return Disposable.Empty;
})
.ToObservableChangeSet(i => i)
.Publish();
var hasCompleted = false;
// Act
var d = publishedObservable
.Subscribe(
_ => { },
_ => { },
() => { hasCompleted = true; });
disposable.Add(publishedObservable.Connect());
disposable.Add(d);
// Assert
Assert.IsTrue(hasCompleted);
Reproduction repository
No response
Expected behavior
With v7.8.6 this unit test passes. With v7.9.1 and above OnCompleted never triggers in the subscribe.
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
Windows
Version
10
Device
Laptop
DynamicData Version
7.9.14
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: