-
Notifications
You must be signed in to change notification settings - Fork 0
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
improve group events #787
improve group events #787
Conversation
@hugo-vrijswijk maybe you can say a few words about how you intend to consume this event. We could add more information (like a |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #787 +/- ##
==========================================
+ Coverage 78.94% 79.39% +0.44%
==========================================
Files 525 532 +7
Lines 9067 11529 +2462
Branches 26 27 +1
==========================================
+ Hits 7158 9153 +1995
- Misses 1909 2376 +467
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good / makes sense to me. Is it still a WIP?
It's ready, assuming it does what Hugo needs. I want to double-check with him before merging. |
I think this is good. Ideally there would be three events (or 2 when moved inside the same group)
And for the old/new groups
For the root group it works if there is no event for the root group, only for the new group (and for elements in the root group being moved/updated). I.e:
|
""" | ||
value: Group! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this has to be nullable. If the root group is updated it's fine if just the elements inside it are updated (with a new index)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for consistency it needs to be nullable, but you can ignore this case on your end if you like.
Ok I guess let's merge this and see how it goes. We can continue to tweak it depending on what Hugo runs into. |
Need an amen from someone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amen.
This changes the group event stream to trigger when the contents of a group change, so you get an event when an observation is created, and two events when an observation is moved.