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

Assigning group bug #44

Open
freakster00 opened this issue Mar 25, 2023 · 1 comment
Open

Assigning group bug #44

freakster00 opened this issue Mar 25, 2023 · 1 comment

Comments

@freakster00
Copy link

papermerge/papermerge-core#126
The issue that i posted in papermerge-core is actually a bug from ember js.
Frontend sends request like:
{

"data": {
"id": "d104ce00-94ec-4a68-ab14-a8daf5c328ff",
"attributes": {
"username": "test",
"email": "[email protected]",
"first_name": "test",
"last_name": "test",
"is_active": true,
"is_staff": true,
"is_superuser": false,
"date_joined": "2023-03-11T06:21:47.241940+01:00",
"perm_codenames": []
},
"relationships": {
"home_folder": {
"data": {
"type": "folders",
"id": "0721d7a5-7560-41d9-bbee-6d66f1d68076"
}
},
"inbox_folder": {
"data": {
"type": "folders",
"id": "f557e317-4ce2-4419-824c-499d5829f526"
}
},
"groups": {
///////////////////////
"data": []
///////////////////////
}
},
"type": "users"
}
}
where the data object isn't filled with meaning full data like this
{
"type": "groups",
"id": "2"
}
I tried sending new patch request including data array inside groups key of the request the user gets registered in the database

@ciur
Copy link
Member

ciur commented Mar 25, 2023

yes, and you can fix it !

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

No branches or pull requests

2 participants