-
Notifications
You must be signed in to change notification settings - Fork 22
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
WIP: kappa-next #14
base: master
Are you sure you want to change the base?
WIP: kappa-next #14
Conversation
This is a dependency-free version of the kappa core idea. It connects sources to views and tracks state. Next commit will add a kappaClassic wrapper that support multifeed by default.
Also removes a "parent flow" leftover of the removed subflows pattern.
So finally I'll get back here this week, sorry that it took so long. I think I'll go over @noffle's review in two steps:
As far as I know Sonar and Cobox are currently depending on this branch, if there are others please chime in too! |
I finished a big round of non-api breaking changes from @noffle's review. Yay! I added a couple of comments to things I did not address right away. Now, to the proposed API changes:
I am using this API in |
I was already expecting some changes so pushing is fine for me. As far as the argument-prepending goes, I find that I very rarely use this feature because I will almost always do |
* allow sources to return a state object that describes the indexing progress * exposes a getState method * emit a state-update event
👋! Hi @Frando, sorry it's taken so long to get back to you on this. It seems like every time there are updates I need to sit down for a long time and download it all into my brain again. :) I appreciate the summary of proposed changes.
Great!
Do you think it might be confusing, since it's so similar in meaning to
I'm down with this change. I really regret the kludge I chose of injecting fake arguments.
Yes please.
I'm ok with punting on this until after these changes get merged. This PR is also very big, so anything we can do to keep the scope down and change later would be 🔥. |
This PR is the current state of my efforts to make kappa-core work with different kinds of sources.
It is based on the #13 and incoroprates a lot of useful feedback from noffle, substack and others.
kappa-classic
export retaining api compatibility with current kappa-core is not possible anymore.Breaking changes are:
use
function takes a name, a source, and a viewkappa.view[name]
andkappa.source[name]
pull
only ever returns messages which haven't been returned beforeI added documentation for the new API, see the rendered README.
I think this is ready for review now. If wanted, I can also do a writeup of the changes? But maybe its quite obvious already also from the new README and tests.