Conversation
…s, and errors related to CORS cookie loading
- Removed all references to typeKey - changed serializer to use new normalize syntax
- Removed typeKey references - Changed serializer to use new normalize syntax - Updated the store mixing push method to use the new data structure
|
Also included ember-data 2.0 compatibility |
|
Using your PR together with @heartsentwined fixes for #27 ember-data-sails seems to be totally broken. Not sure if it's your PR or heartsentwined fixes. Getting warnings like:
Working fine using #29 together with heartsentwined fixes with ember data 1.13.8. |
|
Are you using the REST adapter? There were no changes made to that as we are using sockets. |
|
I'm using SailsSocketAdapter. I have merged your PR with heartsentwined/ember-data-sails in latest master (see master branch in jelhan/ember-data-sails). Generated a brand new project using ember-cli 1.13.8 and SailsJS 0.11.0 I'm facing this issue. |
|
Hi @t3rminus, I am very sorry to answer only now. I just saw this PR after fixing some issues both related and unrelated to Ember version. Can you rebase this PR and send me an update here when done with my name tagged |
Conflicts: addon/adapters/sails-socket.js addon/serializers/sails.js
Updated version number
Fixed JSHint warnings
|
@huafu Sorry for being so late myself. My coworker and I finally found some time to get this sorted out, and it should work for the 0.0.18 release now, along with ember-data 2.0 |
There was a problem hiding this comment.
You're missing the test on _pushSubscribes on the refactored code. I am on my phone and that is a long time I did not work on this addon but I believe it has to be there because depending on settings it should or not subscribe
|
Thank you! I'll handle it asap, if you did not do the last tiny fix I'll do it and merge. |
…int. In our case sails handles this automatically on the server
…e deprecated `store` initializer
Use the `ember-data` initializer as a target instead of the soon to b…
[IMP] changed to es6 code style
[IMP] updated dependencies to ember-cli 3.0
|
@t3rminus was more like adding you as collaborators so that you could merge PRs |
|
anyway #43 |
We were using Ember.RSVP.hash({ ..., ..., ... }) to load 3 models. When the page was loaded on this route, it attempted to connect to sails 3 times, because the CORS cookie request had not yet completed from the first request, before the second was initiated.
This caused some weird behaviour, and quite a few errors in the console...
This should resolve that by only allowing one method to actually request a connection, and queueing up the remaining callbacks for when the socket is finally connected.