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

Created store.fetchById and store.fetchAll. #2653

Merged
merged 1 commit into from
Feb 3, 2015

Conversation

cibernox
Copy link
Contributor

@cibernox cibernox commented Jan 2, 2015

  • store.fetchById behaves like store.fetch used to.
  • store.fetch is aliased to store.fetchById and deprecated.
  • store.fetchAll behaves like store.findAll used to.
  • store.findAll is aliased to store.fetchAll.

Note that there was already a private method named fetchAll with a different signature. I've renamed it to store._fetchAll and is used internally.

@cibernox
Copy link
Contributor Author

cibernox commented Jan 2, 2015

First steps to implement emberjs/rfcs#27

ping @igorT @fivetanley

@cibernox cibernox changed the title Created store.fetchById and store.fetchAll. [WIP] Created store.fetchById and store.fetchAll. Jan 2, 2015
@cibernox cibernox changed the title [WIP] Created store.fetchById and store.fetchAll. Created store.fetchById and store.fetchAll. Jan 2, 2015
@cibernox
Copy link
Contributor Author

cibernox commented Jan 8, 2015

reping @igorT

@cibernox
Copy link
Contributor Author

@fivetanley +1 :yolomerge:

@fivetanley
Copy link
Member

@cibernox We would like to merge this. Can you rebase and resolve the conflicts?

@tomdale
Copy link
Member

tomdale commented Jan 30, 2015

#YOLOMERGE approved

@cibernox
Copy link
Contributor Author

Rebased.

Awaiting #yolomerge 😀

* `store.fetchById` behaves like `store.fetch` used to.
* `store.fetchAll` behaves like `store.find` called with only a type.
* `store.fetch` is aliased to `store.fetchById` and deprecated.
@fivetanley
Copy link
Member

#yolo

@fivetanley fivetanley closed this Feb 3, 2015
@fivetanley fivetanley reopened this Feb 3, 2015
fivetanley added a commit that referenced this pull request Feb 3, 2015
Created `store.fetchById` and `store.fetchAll`.
@fivetanley fivetanley merged commit 9e14bc1 into emberjs:master Feb 3, 2015
@cibernox cibernox deleted the split_store_fetch branch February 3, 2015 01:36
@runspired runspired added 🏷️ feat This PR introduces a new feature and removed Feature labels Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ feat This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants