-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Feature: ObservableList #1959
Feature: ObservableList #1959
Conversation
cf #1767. |
Does this add the uuid for each change? |
No, I didn't have a clear sense of how we wanted to handle that yet. |
I am a little concerned about the non-atomicity of these change signals (as @ellisonbg suggested the other day). If the underlying list has changed between when the signal is received and when the new entries are queried, then the view will get out of sync with the model. On the other hand, with the |
True, even if we have uuids that record to version, if we spread a data
structure like the cell list over a list+map, the overall operations won't
be atomic.
…On Mon, Mar 20, 2017 at 8:51 AM, Ian Rose ***@***.***> wrote:
I am a little concerned about the non-atomicity of these change signals
(as @ellisonbg <https://github.com/ellisonbg> suggested the other day).
If the underlying list has changed between when the signal is received and
when the new entries are queried, then the view will get out of sync with
the model.
On the other hand, with the CellList approach to the notebook, we will
need some special logic for cell operations anyways. That is, if a new cell
is inserted, the information will not hit the cellMap and cellOrder
objects at the same time. For a single user this is easy enough to resolve,
but will be trickier for multiple users.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1959 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABr0OuyMHbkbWKQYXZbjFPYtUOHhCVoks5rnqCagaJpZM4Mhv-_>
.
--
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com
|
An alternative is to make the changed signal dumb and treat it as a an atomic value for the consumer. The underlying implementation would provide the undo capability as it sees fit. |
We could treat |
That would be fine with me, overall. That would make it much harder for the model and view to go out of sync. |
Going to close this in favor of #2039 approach. |
Removes
Vector
and replacesObservableVector
withObservableList
. More closely matches the Google CollaborativeList API, while removing the values from the change signal to enable cheaper notifications to be emitted from a server-based backend.