Skip to content

Conversation

@tcnichol
Copy link
Contributor

Just adding as draft pull request to make it easier to review and get feedback.

@tcnichol tcnichol linked an issue Mar 27, 2023 that may be closed by this pull request
setGroup(event.target.value);
}}
>
</Select>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dropdown is always blank even though options shows all the groups added. Not sure what is wrong with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now fixed. The dropdown shows the groups.

@max-zilla
Copy link
Contributor

based on #391

@tcnichol tcnichol marked this pull request as ready for review March 30, 2023 14:12
@tcnichol tcnichol requested a review from longshuicy as a code owner March 30, 2023 14:12
@max-zilla max-zilla requested review from lmarini and max-zilla March 30, 2023 14:31
@tcnichol
Copy link
Contributor Author

I'm not sure what is going on with the pytest here. I ran locally and all the tests passed.

let group_option = {value:group.id, label:group.name}
options.push(group_option);
});
console.log('group optioins are', options);
Copy link
Contributor

@arunapa arunapa Mar 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed this PR and tested it, looks good to me! Two minor comments:

  1. Can we remove these console log statements?
  2. We need to enforce that only the dataset "owner" can share roles EDIT: I checked the code and looks like the "OtherMenu" component is only accessible to the owner of the dataset, so I think we are good on this front.

I'll add the remaining changes to this branch directly so we can merge both features together. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to think about whether an editor should be able to share a dataset. But that can be a separate issue.

}
sx={{ mb: 2 }}
>
Successfully added role!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what the success dialog looks like
Screenshot 2023-03-31 at 7 21 00 AM

@max-zilla
Copy link
Contributor

I tested this and the sharing feature works, two questions:

  • autocomplete for users is hard-coded to "[email protected]" - are we planning to update this separately? i see the group autocomplete is at least initially populated.

  • when successfully shared, the pop-up box does not automatically close (see success dialog screenshot above) - is it better to close it then, or keep open to allow additional sharing?

@tcnichol
Copy link
Contributor Author

tcnichol commented Apr 4, 2023

@max-zilla

For sharing, I think it might be better to keep the box open in case a user wants to share a dataset with multiple users and groups. Though this might be something to get feedback on later.

With the autocomplete, we might want to make any changes related to that other issues.

@max-zilla max-zilla merged commit 9e3b9f3 into main Apr 5, 2023
@max-zilla max-zilla deleted the 374-add-groups-to-datasets-via-gui branch April 5, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add groups to datasets via GUI

4 participants