Skip to content
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

Refactor the adapter, tests and build process, upgrade to ED 10 #133

Merged
merged 1 commit into from
Oct 7, 2014

Conversation

igorT
Copy link
Contributor

@igorT igorT commented Oct 6, 2014

Upgrade to Ember-Data beta.10

The adapter event subscribing to Firebase events now lives
in the afterPush hook instead of being scattered around the adapter.

Embedded processing has been refactored to recursively normalize embedded
records, bringing it more in line with the EmbeddedRecordsMixin(maybe we should
use it at some point), simplyfying the code and fixing several embedded related
bugs.

Tests are now more functional allowing for easier refactors.
Tests have been refactored, for easier reading/writing and less
interdependence.

Lots of new tests added

Grunt now watches for changes and rebuilds correctly

Various other fixes, refactors and cleanups.

fixes #129 fixes #103 fixes #124 fixes #121 fixes #94
should also fix, but lacking tests for #114 #96 #59

Upgrade to Ember-Data beta.10

The adapter event subscribing to Firebase events now lives
in the afterPush hook instead of being scattered around the adapter.

Embedded processing has been refactored to recursively normalize embedded
records, bringing it more in line with the EmbeddedRecordsMixin(maybe we should
use it at some point), simplyfying the code and fixing several embedded related
bugs.

Tests are now more functional allowing for easier refactors.
Tests have been refactored, for easier reading/writing and less
interdependence.

Lots of new tests added

Grunt now watches for changes and rebuilds correctly

Various other fixes, refactors and cleanups.

fixes FirebaseExtended#129 fixes FirebaseExtended#103 fixes FirebaseExtended#124 fixes FirebaseExtended#121 fixes FirebaseExtended#94 fixes FirebaseExtended#88
should also fix, but lacking tests for  FirebaseExtended#114 FirebaseExtended#96 FirebaseExtended#59 FirebaseExtended#44

recordWillUnload: function(store, record) {
var ref = this._getRef(record.typeKey, record.get('id'));
ref.off('value');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to pass the callback here as well in case the user happened to attach a listener to this location outside of EmberFire (calling ref.off() with no callback removes all listeners at a location)

ref.off('value', theCallbackThatWasUsed)

@dstaley
Copy link
Contributor

dstaley commented Oct 6, 2014

All the tests pass when using Firebase 1.1.0! I can also confirm that this fixes #114. Once this is merged in, I'd be happy to update the example to the latest versions as well, and fix the few small things that have changed in the Ember Data API since then.

sararob added a commit that referenced this pull request Oct 7, 2014
Refactor the adapter, tests and build process, upgrade to ED 10
@sararob sararob merged commit dce0dab into FirebaseExtended:master Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment