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:
Login again with an admin account --> Dataset fields will be invisible.
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.
This pull request fixes 2 problems:
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:
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.