-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
setting the namespace for a model sets the namespace for all models #3768
Comments
Can you post your adapter definitions? |
I think this is pre-existing behavior. If you don't have a packages adapter defined, it will use the existing instance for the application adapter. |
oh, ok. so, if I manually define the adapter, then I shouldn't have the above matching console.logs. |
just tried. same issue. :-( both adapters have the same namespace. :-( |
Looks like this works, see http://ember-twiddle.com/25804368a1d4ea121ed2. In @NullVoxPopuli can you reproduce this in another Ember Twiddle or JSBin? |
I was using ActiveModelAdapter, I've recently switched to json-api, so I'll give this another go. |
@NullVoxPopuli did you get a chance test this issue again? |
not yet. been taking a small break from the project. I'll dive in to it again this week though. |
@NullVoxPopuli did you have a chance to check if this is still valid? |
I actually migrated everything and have been re-architecting my backend to accomodate a flat-api as having relationship-related namespaces is too difficult. |
Okay, seems good. I am going to close this issue as it couldn't be reproduced. If somebody stumbles upon this and can reproduce, please open a new issue and back-reference this one. |
They should set per model, yeah?
as you can see, setting the namespace for
packages
also sets for theapplication
and then setting for the application sets the packages namespace.I believe this could result in race conditions issues
The text was updated successfully, but these errors were encountered: