imjoy-team / imjoy-cloud-annotation

Client for connecting to the ImJoy AI Engine for collaborative annotation in the cloud.
https://imjoy-team.github.io/imjoy-cloud-annotation/
MIT License
1 stars 2 forks source link

Fix fail to getUser() for first-time login + update datasetInfo #13

Closed hnguyentt closed 3 years ago

hnguyentt commented 3 years ago

This pull request fixes 2 problems:

  1. auth0.getUser() alone can't get the user at first-time login so Dataset ID and Dataset Directory fields are invisible for admins with their first-time login attempt. Issue reproduction:

  2. datasetInfo json file remains unchanged when we update on Task Manager. Some fields related to datasetInfo such as data_visibility, sample_visibility, owners, whitelist, blacklist are not updated.

Besides, I think there is a back-end problem with first-time task creation, together with issue number 2 mentioned above, which causes the problem in issue #10.