[
https://issues.apache.org/jira/browse/DATALAB-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vira Vitanska updated DATALAB-2781:
-----------------------------------
Description:
As a Regular User I should be able to {*}share 1 image created by me with all
other users on the project{*}, so that they can safe their time and recreate
the same instance from the image.
{*}ACTION FLOW{*}:
* User select Share image option for 1 image
* {color:#FF0000}User select Users with whom to share - to be postponed,
separate story{color}
* {color:#FF0000}User select the role for the Users with whom to share - to be
postponed, separate story{color}
* {color:#FF0000}User select what to share with the User - to be postponed,
separate story{color}
* User confirm Share Image complete action with the default parameter
* The system update the Image list table for all the users with whom the Image
was shared and for all image owners
* The system update the Image status to Shared in the Image list table for all
the users with whom the Image was shared and for all image owners
*ACCEPTANCE CRITERIA:*
# *When the image shared it will be shared with the next fixed parameters* as:
** project
** edge node
# *The User should be able to click on the Share option in the Action menu for
the selected image (check wireframe 1) only when*
* image status is Created
* he/she is Image creator/owner:
** creator is the user who has created the image
** owner is the user who is owning the right to manage image and perform Share
and Terminate actions. The owners are Creator and Admins (incl. Project Admin).
* there >1 regular user on the project
3. *The User should see the additional information (via hint string) when the
Share image option in Action menu is disabled:*
* when image status is not = Created. The message should be the next: "{_}This
image cannot be shared by you. Contact Admin user{_}"
* when User is not Image creator/Owner. The message should be the next:
"{_}This image cannot be shared by you. Contact Admin user{_}"
* when there is only 1 User on the project and Share 1 image option in Action
menu is disabled. The message should be the next: "{_}This image cannot be
shared by you. Contact Admin user{_}"
4. When the User pressed the Active Share option in the Action menu the
confirmation pop up window should be displayed where the User should confirm
the action.
*5. On the confirmation window should be displayed next message* (please check
Wireframe 2):
* "The image will be shared with the rest of Regular Users on the project with
all the data and code. Would you like to proceed?"
* The User should be able to select 1 of the 2 options:
** Yes - The Share Image process should be started
** No - The Share Image process should be reverted
6. *When the User confirm the Share Image parameter the system perform next:*
* the image will be shared with all the Regular Users on the project,
including:
** Data
** Code
** All instance's parameters, based on which the image was created
** All installed libraries on the instance, based on which the image was
created
** Information about the image's creator and when the image was created
** Image name
** Git credentials, which will be deleted during creation of the instance
* the system update the Image list table for all the users with whom the Image
was shared and for all image owners (all the admin and Regular users on the
project)
* the system update the Image status to Shared in the Image list table for all
the users with whom the Image was shared and for all image owners (all the
admin and Regular users on the project)
*WIREFRAMES:*
*Wireframe 1.*
was:
As an Admin User I should be able to view and manage all images created by me
and created by other Users on the projects where I am performing Admin role, so
that I can replace other users if they are not performing their role as
expected on the project.
h3. To-do list:
* Add new panel in the Administration section of the main menu
* Add table to view parameters for images
* Add Action menu for images (item by item)
* Add Action menu for images (bulk items) - *{color:#de350b}POSTPONED{color}*
* Add Share image feature _- {color:#de350b}in progress{color}_
** Select users pop-up window to share image(s) _- {color:#de350b}in
progress{color}_
** Add shared status pop up window that display the list of user groups with
whom the image have been shared _- in progress_
* Add image pop up window that display details about this image (all
parameters) _- {color:#de350b}in progress{color}_
# *Add new panel in the Administration section* of the main menu
Add new Image panel in the main menu within the Administration section
!image-2022-04-26-16-26-20-327.png!
2. *Add table to view parameters* for images
The image table should contain next columns:
* User name - the user that has created the image
* Image name - custom image name that has been assigned by user who has
created the image
* Project name - project name for the instance which was used to create the
image
* Creation date - date and time when the image has been created displayed
according to the *current standard (which is the Time and Date Localization
Formatting) (UPD)*
* Endpoint type - endpoint for the instance which was used to create the image
* Template name - the name of the template (custom or cloud) which was used to
to create the instance and later the image
* Instance name (and link to the env) - instance name that was used to create
the image
* Image status - current status of the image that inform user whether image is
active or not. There might be next types of states:
** Created - if the image has been successfully created and added to the list
of images;
** Creating - status which is displayed when the image creation request has
been sent to the DataLab but the processes was not completed either
successfully or not successfully;
** Failed - if the image has not been successfully created and added to the
list of images (the process has failed but some information was saved to
display it in the list of images);
** Terminated - when the regular or admin user has deleted/terminated
successfully the image (possible only as the next state after the "created")
* Shared status - current status of the image that inform user whether image
has been shared with other users or user groups. There might be next types of
states:
** Private - the image is not shared with any other user except the user who
has created this image and admin users. Other users or user groups does not
have access to this image;
** Shared - the image is shared with the other users/user groups. The
specified users/user groups have access to the image. For images with shared
status there is also action icon "?" that allows to call the pop up menu with
additional information about the list of users/user groups who have the access
to this particular image
* Image - column contain action icons which allow users to call the
** pop up menu with the information and
** action menu - the pop-up window to perform additional operations at the
image level (should be the same design as on the Users, Instances and Images
panels).
!image-2022-04-26-16-29-36-378.png!
3. *Add Action menu for images* (item by item)
* Admin should be able to view and manage all the images created by all users
on the project(s) where he is performing the Admin role
* Share and terminate options should be enabled for the images with Created
status only
!image-2022-04-26-16-30-33-624.png!
4. *Add Action menu for images* (bulk items)
* Admin should be able to view and manage all the images created by all users
on the project(s) where he is performing the Admin role
* If Admin User has selected >=1 images with Created status the Share and
Terminate options in the Action menu should be enabled
* If the User select 1+ images and at least one of the images has Terminated,
Failed or Creating status, the Share and Terminate actions should be disabled
in the Action list
* {color:#de350b}_In progress: check boxes behavior if the image process is
still running_{color}
!image-2022-04-26-16-32-11-264.png!
> [Administration][Front-end] Manage images for other users
> ----------------------------------------------------------
>
> Key: DATALAB-2781
> URL: https://issues.apache.org/jira/browse/DATALAB-2781
> Project: Apache DataLab
> Issue Type: Task
> Security Level: Public(Regular Issues)
> Components: DataLab Main
> Reporter: Vira Vitanska
> Assignee: Hennadii Shpak
> Priority: Major
> Labels: AWS, AZURE, Debian, Front-end, GCP, RedHat
>
> As a Regular User I should be able to {*}share 1 image created by me with all
> other users on the project{*}, so that they can safe their time and recreate
> the same instance from the image.
> {*}ACTION FLOW{*}:
> * User select Share image option for 1 image
> * {color:#FF0000}User select Users with whom to share - to be postponed,
> separate story{color}
> * {color:#FF0000}User select the role for the Users with whom to share - to
> be postponed, separate story{color}
> * {color:#FF0000}User select what to share with the User - to be postponed,
> separate story{color}
> * User confirm Share Image complete action with the default parameter
> * The system update the Image list table for all the users with whom the
> Image was shared and for all image owners
> * The system update the Image status to Shared in the Image list table for
> all the users with whom the Image was shared and for all image owners
> *ACCEPTANCE CRITERIA:*
> # *When the image shared it will be shared with the next fixed parameters*
> as:
> ** project
> ** edge node
> # *The User should be able to click on the Share option in the Action menu
> for the selected image (check wireframe 1) only when*
> * image status is Created
> * he/she is Image creator/owner:
> ** creator is the user who has created the image
> ** owner is the user who is owning the right to manage image and perform
> Share and Terminate actions. The owners are Creator and Admins (incl. Project
> Admin).
> * there >1 regular user on the project
> 3. *The User should see the additional information (via hint string) when the
> Share image option in Action menu is disabled:*
> * when image status is not = Created. The message should be the next:
> "{_}This image cannot be shared by you. Contact Admin user{_}"
> * when User is not Image creator/Owner. The message should be the next:
> "{_}This image cannot be shared by you. Contact Admin user{_}"
> * when there is only 1 User on the project and Share 1 image option in
> Action menu is disabled. The message should be the next: "{_}This image
> cannot be shared by you. Contact Admin user{_}"
> 4. When the User pressed the Active Share option in the Action menu the
> confirmation pop up window should be displayed where the User should confirm
> the action.
> *5. On the confirmation window should be displayed next message* (please
> check Wireframe 2):
> * "The image will be shared with the rest of Regular Users on the project
> with all the data and code. Would you like to proceed?"
> * The User should be able to select 1 of the 2 options:
> ** Yes - The Share Image process should be started
> ** No - The Share Image process should be reverted
> 6. *When the User confirm the Share Image parameter the system perform next:*
> * the image will be shared with all the Regular Users on the project,
> including:
> ** Data
> ** Code
> ** All instance's parameters, based on which the image was created
> ** All installed libraries on the instance, based on which the image was
> created
> ** Information about the image's creator and when the image was created
> ** Image name
> ** Git credentials, which will be deleted during creation of the instance
> * the system update the Image list table for all the users with whom the
> Image was shared and for all image owners (all the admin and Regular users on
> the project)
> * the system update the Image status to Shared in the Image list table for
> all the users with whom the Image was shared and for all image owners (all
> the admin and Regular users on the project)
>
> *WIREFRAMES:*
>
> *Wireframe 1.*
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]