-
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
Added options to disable live sync and support for periodic polling for changes #140
base: master
Are you sure you want to change the base?
Added options to disable live sync and support for periodic polling for changes #140
Conversation
Unit test courtesy of Matt Marcum @mattmarcum
* upstream/master: (32 commits) fixing readme reference to config key, concerning adapter blueprint. 3.2.1 Fix(Addon): Call super in init 3.2.0 Add relationship documentation Update README.md update readme update readme 3.1.1 (pouchdb-community#16) - Add override so serialiser saves hasMany Pouch adapter now calls a hook method when encountering a change for a record that is not yet loaded. update readme 3.1.0 Fix version check for Ember Data 3.2.x Update changelog for pouchdb-community#103 Tests for existing change watcher behavior Factor out integration test setup into module helper Move blueprint files into explicit directories Changelog for pouchdb-community#101 and pouchdb-community#102. created blueprint for pouch-adapter ...
As suggested by @fsmanuel in pouchdb-community#128 and pouchdb-community#131.
[skip ci]
- Use Ember.get so that POJOs can be used instead of Ember.Object instances
…al-couch correctly
…lyfill for PhantomJS when running tests. - Add Ember.run() to taco-salad adapter to avoid exceptions when running tests
0518485
to
b986642
Compare
@broerse I'd like to get this PR merged, can you please review? |
* upstream/master: (31 commits) Fix Typo 4.0.1 Fix Blueprint 4.0.0 Update README Updated README and changelog changed selector to filter implement glue code for query and queryRecord Check ember-data version and add install instructions for old ember-data/ember-cli Remove ember-data-1.13 from ember-try scenarios. Add Object.assign polyfill for PhantomJS when running tests. Tests passing in PhantomJS Added integration test Ensure that length is available when the attachment is first saved Change serializer so that attachments are passed to and from relational-couch correctly Update unit test Provide two transforms: `attachment` and `attachments` Return [] from serialize so that files can be added. Documentation for `defaultValue` of `attachment` Is fix a typo Deserialize "no attachments" into an empty array ...
@aexmachina I understand the need to specify the Change Notifacation type. But I don't think it should be a enable/disable flag. CouchDB has now 3 options, It could be more in the future. I also think this should be handled by pouchdb and from ember-pouch we just pass the option to pouchdb. So I am not sure we should merge this in this form. |
I probably should have been clearer about the intent of this PR. The goal is to allow an adapter to use a PouchDB instance that has an HTTP transport without using long polling. Currently, if you provide a PouchDB instance with an HTTP transport (i.e. directly to the remote - without a local) then the adapter's call to This PR provides two features to solve this:
|
@nolanlawson I think it is better to add something like a:
option to pouchdb and we set this option in ember-pouch. Perhaps only support |
@broerse I agree that is a better solution, if @nolanlawson is open to adding support to PouchDB then I can look at doing a PR. Could take me a while to get to it though! I'm thinking that adding a |
|
@broerse |
@aexmachina with |
Thanks for clarifying that @broerse, now I understand better. The On that note, @nolanlawson doesn't seem to be replying. Is there someone else I should be speaking to about this? |
@aexmachina Perhaps you should open an issue on pouchdb asking for |
No description provided.