-
Notifications
You must be signed in to change notification settings - Fork 751
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
User creation and Role assignment which also contains Richard's Resource layer update #313
Conversation
…o role Conflicts: kolibri/core/assets/src/api_resource.js
…into user_creation
…its parent as prep. because we probably won't adapt this component to other usage.
@@ -27,36 +27,140 @@ class Model { | |||
this.synced = false; | |||
|
|||
// force IDs to always be strings - this should be changed on the server-side too | |||
this.attributes[this.resource.idKey] = String(this.attributes[this.resource.idKey]); | |||
if ('id' in data) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
model = new Model(data, this); | ||
} else { | ||
model = this.models[id]; | ||
return null; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
User creation - PR review updates
@rtibbles @66eli77 I'd like to merge this in so that folks can continue to be working off it. However I also want to make sure that any outstanding comments are taken into account eventually. Creating this Trello card as a reminder: https://trello.com/c/3f5ogNYr/307-follow-up-on-resource-persistence-related-pr |
</div> | ||
<div class="modal-body"> | ||
<slot name="body"> | ||
disappear in oblivion.. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
this PR is uses the new Resource layer from #279, please move the conversation and future changes form #279 to this PR.