-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add Ember Data 2.0 Reload behavior #80
Conversation
👍 |
@broerse, thanks for taking the time to submit this. There's more detail in my comment on #79, but briefy: I don't think this is a good idea. If I understand things correctly, I'm less sure about |
What about adding |
@fsmanuel If that removes the deprecation warning (not checked yet) we shout do all 4 because I get |
We should only do all four if we think there's a reason why ember-pouch should specify a value for each one. If not, it should be left up to the person using ember-pouch in an application. It's not the responsibility of this library to get rid of all deprecation warnings — if you were using a built-in adapter (e.g., |
Deprecation warnings are emitted for I would be fine with having ember-pouch override For the reasons I've outlined above and elsewhere, I don't think that ember-pouch should make a decision about |
Sounds reasonable!
|
Just checked. Return false also disables the deprecation warnings but it does not preserve the current behavior. I still think that until we know how the new Reload behavior works we should merge this. It gives us some time to test things out. If I am on my own here I am fine with closing this. Edit: I just found out that return false on all four stops Ember Data from fetching any data. Perhaps we should return the parent or something. Anyway it strengthened me in the thought we should preserve the current behavior for now. |
@broerse, what I'm hearing from you is that you want to preserve the existing ember 1.x behavior. Regardless of whether we agree about that, this pull request does not preserve the existing behavior. The existing behavior is what
I'm going to close this because I think the consensus is that we will override the single-record methods to return false and continue to do so in ember-data 2.0 — the change watcher means that ember-pouch never needs single records reloaded. We will leave the default behavior for record arrays because there's not a clear correct behavior based on the adapter alone — it needs to be decided by each application developer and so keeping the ember-data default behavior is the least confusing path. If you disagree with either of those points, please comment. |
… records. See pouchdb-community#79 and pouchdb-community#80 for discussions of why, and why this covers the individual record case only.
… records. See pouchdb-community#79 and pouchdb-community#80 for discussions of why, and why this covers the individual record case only.
This fixes the #79 deprecation warning and preserves the current behavior until we know the new Reload behavior works and is faster in Ember Data 2.0