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

Moved the adapter errors into the public API space. #4264

Merged
merged 1 commit into from
Mar 28, 2016

Conversation

workmanw
Copy link

These errors are documented as public and required for people implementing a customer adapter. Example: http://emberjs.com/api/data/classes/DS.InvalidError.html#stq=&stp=0

We have to use them in our app so I feel like I should be able to import them from a public import path.

I wasn't sure if I should have moved the errors.js file from the private space or just created a new one in the public space that imported from the private space and re-exported. I decided to do the former, but I'd be happy to do the later.

@bmac
Copy link
Member

bmac commented Mar 27, 2016

Looks good to me. @pangratz and @tchak do you mind taking a look at this pr as well?

@pangratz
Copy link
Member

LGTM 👍

@workmanw can you add corresponding tests to tests/unit/modules-test.js?

…documented as public and required for people implementing a customer adapter.
@workmanw
Copy link
Author

@pangratz Done!

Side note, I'm in the emberconf contributors workshop now. @mixonic showed a slide of the ember-data repo's file structure. If we hurry, we can invalidate that slide before the workshop is over. :trollface:

@bmac bmac merged commit 1c101f8 into emberjs:master Mar 28, 2016
@bmac
Copy link
Member

bmac commented Mar 28, 2016

Thanks @workmanw

@workmanw
Copy link
Author

Excellent. Thanks @bmac!

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.

3 participants