coco-annotator icon indicating copy to clipboard operation
coco-annotator copied to clipboard

Invite Members

Open get-Resource opened this issue 5 years ago • 5 comments

I have created a few users, but there are no users that can be invited in Invite Members. Only one existing member? Admin @admin Last viewed: 2020-01-05 02:57:35 UTC

Question two: Now the statistics are only Crunching numbers ...

These questions have Loading datasets tips

get-Resource avatar Jan 05 '20 03:01 get-Resource

Check the database and see if the users are begin created

jsbroks avatar Jan 08 '20 01:01 jsbroks

I have the same problem. I haven't checked the database, but I was able to log in with newly created user. Also, this user is visible in the admin panel, but I can't invite him to a dataset. sreenshot with problem users page sreenshot

csd-oss avatar Jul 10 '21 10:07 csd-oss

User has id from mongo, so I think it was properly created image

csd-oss avatar Jul 10 '21 10:07 csd-oss

@jsbroks I only see getting users for a specific dataset, not adding even in API. Is it not implemented, or I looking in a wrong place? Even if so it still does not work from UI.

csd-oss avatar Jul 10 '21 10:07 csd-oss

It is not implemented in backend/database/datasets.py as well, I not very experienced in flask, but I can probably fix it in backend, but I will ask for a bit of guidance.

First I

  • add a method to backend/database/datasets.py DatasetModel with will add username to self.users
  • add a POST endpoint in backend/webserver/api/datasets.py which will utilize this method to add a user to dataset

Right?

csd-oss avatar Jul 10 '21 11:07 csd-oss