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

No way to add users to an existing project #2

Closed
olix20 opened this issue Aug 13, 2018 · 12 comments
Closed

No way to add users to an existing project #2

olix20 opened this issue Aug 13, 2018 · 12 comments
Labels
question Further information is requested

Comments

@olix20
Copy link

olix20 commented Aug 13, 2018

Thanks @Hironsan for this usefull repo.
I can't seem to find a way to add new users to an existing project form the dashboard.
If there's a quick way to do it programmatically pls let me know.

Other nice to have's:

  • ui for creating new users, or instruction how to do it from shell
  • always add superuser as a user when creating a project
@icoxfog417 icoxfog417 added the question Further information is requested label Aug 13, 2018
@icoxfog417
Copy link
Contributor

icoxfog417 commented Aug 13, 2018

Thank you for trying to use the doccano!

Now doccano does not have the feature to add users. You can use Django administrator page to create new users.

Django admin.

@olix20
Copy link
Author

olix20 commented Aug 13, 2018

thanks @icoxfog417. right, i can create new django users, that's no problem.
the problem is that you can only add users to projects when you're creating the project. there's no way to add/remove users to project after it's created.

@icoxfog417
Copy link
Contributor

icoxfog417 commented Aug 14, 2018

Exactly, you can select the users of a project only when creating it. After you create the project, you have to use Django administrator page to manage users.

  • Creating and managing the users of a project
    • Django Admin page
  • Assign the users to project when creating it
    • You can do it from doccano

@olix20 olix20 closed this as completed Aug 14, 2018
@PavelKovalets
Copy link

PavelKovalets commented Mar 13, 2019

We should add this info somewhere in the documentation. It also seems that multiple user cannot work on the same project simultaneously, each user has to create his own project and work on it. Is that the case?

@svenvanderburg
Copy link

@icoxfog417 Can you explain in more detail how to add more users to a project? I can indeed add new users through the Django Admin page. But I cannot assign these users to projects. The only way to have a user access a project seems to be to create that project as that user.

@rbagd
Copy link

rbagd commented May 27, 2019

@svenvanderburg When you open the project you created in Django Admin itself, you can multi-select the users that can access it. They will have the permissions that you assigned beforehand.

@svenvanderburg
Copy link

@rbagd I tried that, but the users listed in the project don't actually have access to the project. Even if I add another user within a project, that user does not have access to it. Do I need to manually assign specific permissions for each user? And which ones?

@rbagd
Copy link

rbagd commented May 28, 2019

Usually, I put all users in a single group and give the group permissions only for the appropriate type of annotations they could do, e.g. server / document annotation / {change, delete, add, view}. I never experienced any issues with this way of doing things.

@svenvanderburg
Copy link

I tried assigning a user to a group and give that group the permissions you suggested, but it still does not work. Even if I give a user all possible permissions and add it to the project, it can not view the project if it has been created by a different user.

@rbagd
Copy link

rbagd commented May 29, 2019

@svenvanderburg Can you make sure the users you have added appear indeed in the user list when you do a GET request to $BASE_URL/v1/projects/$PROJECT_ID?

@svenvanderburg
Copy link

Yep, all users added show up in the 'users' list in the project detail page.

@gabrer
Copy link

gabrer commented Jun 21, 2019

I have experienced the same issue and I've noticed that if the project has been created once the users already existed, they are then able to see it.


Jun 24: It looks now is working properly. I did two operations:
1. Run the server with admin rights (i.e. with sudo)
2. Had a look here to the way users are associated to projects: #231


willywongi added a commit to willywongi/doccano that referenced this issue Mar 11, 2020
zanussbaum added a commit to zanussbaum/doccano that referenced this issue Jul 1, 2021
When uploading datasets, the code uses a `bulk_create` to upload
Examples and Labels. It then filters the data from the database
based on when it was created. However, [Django doesn't enforce
the list order when calling filter](https://stackoverflow.com/questions/7163640/what-is-the-default-order-of-a-list-returned-from-a-django-filter-call)
unless ordering is specified. The previous behavior mismatched labels
and examples. When this was shown in the UI, the data would show labels
for incorrect examples (i.e. a label for message doccano#2 would be shown on
message doccano#1). This fix enforces that the data is returned in the order
it was inserted so that the data, label pair is as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants