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

More rest adapter refactoring #298

Closed
wants to merge 1 commit into from

Conversation

tchak
Copy link
Member

@tchak tchak commented Jun 22, 2012

  • didCreateRecords now take an array of records and json data for them
  • finished extracting callback methods for find requests
  • add didFindRecord in response to find request
  • find get passed record instance that it should pass to didFindRecord. It will allow us eventually to set loading record in error state.
  • add didFindQuery in response to recordArray based requests
  • findAll, findQuery and findMany all get passed recordArray instance that they should pass to store method didFindQuery. This allow a simpler and more uniform interface on the adapter. It will also eventually allow us to put recordArray in error state
  • in rest_adapter findAll and findMany are juste special cases of findQuery request

* didCreateRecords now take an array of records and json data for them
* finished extracting callback methods for find requests
* add didFindRecord in response to find request
* find get passed record instance that it should pass to `didFindRecord`. It will allow us eventually to set loading record in error state.
* add didFindQuery in response to recordArray based requests
* findAll, findQuery and findMany all get passed recordArray instance that they should pass to store method `didFindQuery`. This allow a simpler and more uniform interface on the adapter. It will also eventually allow us to put recordArray in error state
* in rest_adapter findAll and findMany are juste special cases of findQuery request
@tchak
Copy link
Member Author

tchak commented Oct 14, 2012

Most of this stuff is covered in #377

@tchak tchak closed this Oct 14, 2012
@runspired runspired added 🏷️ feat This PR introduces a new feature and removed Improvement labels Sep 11, 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.

2 participants