[ 
https://issues.apache.org/jira/browse/AIRAVATA-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542359#comment-16542359
 ] 

ASF subversion and git services commented on AIRAVATA-2835:
-----------------------------------------------------------

Commit c579b8496022800aa6da135811cfa64136f7ab62 in airavata-django-portal's 
branch refs/heads/master from [~marcuschristie]
[ https://gitbox.apache.org/repos/asf?p=airavata-django-portal.git;h=c579b84 ]

AIRAVATA-2835 Only allow owner to edit sharing settings


> Django: Create generic sharing dialog for sharing with users and groups
> -----------------------------------------------------------------------
>
>                 Key: AIRAVATA-2835
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2835
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>
> Develop a UI component that displays summary information about what users and 
> groups an entity is shared with. UI component should also have a button to 
> bring up a modal dialog to edit the list of users and groups and their 
> permissions (READ or WRITE).
> Other requirements:
> * hide the Admins and Read Only Admins groups (these are specified in 
> GatewayGroups). These groups are implicitly shared with and shouldn't be 
> listed.
> * only allow the current user to edit the sharing if the user is the owner of 
> the entity
> * have an option to pre-populate the sharing list with a the 
> defaultGatewayUsersGroup (also from GatewayGroups). This will be used for 
> Group Resource Profile and Application Deployments.
> TODO
> * [x] button with a badge with the number of shared users/groups and tooltip 
> with more details
> * [x] modal dialog - load list of users and groups and allow searching over 
> them
> * [x] modal dialog - display users and groups currently shared with along 
> with permission level
> * [x] hide the Admins and Read Only Admins groups (these are specified in 
> GatewayGroups). These groups are implicitly shared with and shouldn't be 
> listed.
> * [x] only allow the current user to edit the sharing if the user is the 
> owner of the entity
> * [x] have an option to pre-populate the sharing list with a the 
> defaultGatewayUsersGroup (also from GatewayGroups). This will be used for 
> Group Resource Profile and Application Deployments
> * [x] have an option to persist immediately or not (or just use existence of 
> entity id). For newly created entities the sharing dialog should not try to 
> update the sharing information since there is no entity yet. That should be 
> left for the containing page to 1) save the new entity, 2) fetch the 
> SharedEntity for that entity id, 3) merge it with the SharedEntity model that 
> was edited by the ShareButton component, 4) persist the updated SharedEntity. 
> Would be good to have some sort of utility to handle this updating of the 
> SharedEntity when a new entity is created.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to