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

Dontsave hasmany #159

Merged
merged 27 commits into from
Nov 28, 2016
Merged

Dontsave hasmany #159

merged 27 commits into from
Nov 28, 2016

Conversation

jlami
Copy link
Collaborator

@jlami jlami commented Nov 6, 2016

This PR goes with pouchdb-community/relational-pouch#61

I added some new configuration options to enable specifying sync and async default values. Ember-pouch was still using sync as default, and ember has changed to async. And also to specify if this new feature of not saving the hasMany ids is globally enabled or not.
You can still specify it per relation with the option dontsave.
config.emberpouch.async
config.emberpouch.dontsavehasmany

I also changed the way the adapter.query parses it's response, because it did not do this with relations in mind.

The tests are also wrapped in async+hasmany modules, to be able to test all configuration options.

@broerse broerse merged commit a02668b into pouchdb-community:master Nov 28, 2016
@jlami jlami deleted the dontsave-hasmany branch January 26, 2018 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants