-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
ISSUE-90: Better handling of synchronous (sequential) requests #92
Conversation
Pull Request Test Coverage Report for Build 500
💛 - Coveralls |
Not sure why one test failed, I run all tests locally and all passes. Tried same node and browser version as on CI, no luck. Should dig into this more. |
7940921
to
874ac14
Compare
Awesome ! I need to give this a shot ! I also need to fix things on my side before, before I'd like we handle these 2 feature requests in a cleaner way, by introducing switchMap, so we can complete/bypass debounce && delayWhen pipes. As I am committing to master sometimes, don't forget to rebase your branch onto from time to time. FWIW, I need to take decisions on how to mix different options too. Tests should include all mixed cases if we allow mixing, or we need to throw exceptions. Once again, thanks a lot. Hope I can give this a look next week, that's awesome ! |
874ac14
to
d2c9b57
Compare
I realized that test failure is not caused by this PR. |
e939a7c
to
1a45c0c
Compare
Yes, master is not stable. The last beta release has revealed an old and dirty bug. Then I realized the way debounce and delay are handled is bad, and should be gracefully handled before subscription, not at runtime. That's why I think using switchMap in the pipe. It's hard to explain at the moment, and working code will be hopefully easier to read. I need some time to fix it. I want to get rid of all those 'if' before timers etc. Current implementation has shown its limit. |
ef9d986
to
59b3281
Compare
updated
updated tried to use |
Wow, that's definitely awesome ! Thanks a lot ! Would you mind rebasing your branch onto master ? It introduces a failing test-case because of a bug that I've caught after releasing beta yesterday ? |
ddb21f2
to
70983be
Compare
I have merged, but test still fails. Have you any guesses why test fails on CI? Are you able to reproduce it locally? |
0139ab1
to
70983be
Compare
Yes tests fail locally too, that's expected. You have changed the wrong test by introducing flush(). Please revert. Existing tests should remain untouched as much as possible. The failing test is this one :
|
6ace9f8
to
70983be
Compare
I see, sorry :) |
That's weird. I jun run 'yarn test' or run tests directly from IntelliJ. We'll cleanup the commit history afterwards,not a big deal. |
I am going to cleanup/squash and push force to your branch if this is OK for you, so I can add commits and have a clean base. Just let me know if this is OK |
yes, sure, although I already discarded those commits to fix test, but for further cleanup, if you see some, it is ok |
70983be
to
26bb4a5
Compare
26bb4a5
to
71d96ed
Compare
could you clarify please what does |
* trying to fix failing test case on CI
Awesome ! But another test is failing now :) |
The test in only failing on chrome, not firefox oO |
The test is fine when ran standalone, but not during the full test suite. Something with dates/ race concurrency I suppose. |
* trying to fix failing test case on CI
I suppose now it is fixed :) |
hey, that's awesome ! You rock :) Merging into master now, so I can add some tests and documentation. Once again, a big thank you \o/ |
extraDuration
featureextraDuration
featureextraDuration
should delay spinner hiding at specified time (in millis), this should help to avoid spinner blinking on sequential requests (when crafting of one request depends on data from previous request, so that between those request may arrive ~5ms gap)