Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a progress bar to 'Share' bulk actions in the 'Cases' and 'Contacts' directories #12308

Open
12 tasks
adinaflorea9 opened this issue Jul 17, 2023 · 0 comments
Open
12 tasks
Labels
backend Affects the web backend cases contacts feature A new feature to be developed (ticket type) ready Issue fulfills the definition of ready and can be implemented vaadin-app Affects the Vaadin application

Comments

@adinaflorea9
Copy link

Feature Description

Ticket #11597 has introduced a progress window for the "Edit" bulk actions. This window needs to be applied to other bulk actions as well to be consistent and because it's a lot more user-friendly.

Add the progress window to the 'Share' bulk action in the 'Cases' and 'Contacts' directories.

Added Value/Benefit

Consistency within the directories and bulk actions of SORMAS. Having a 'Bulk progress window' is more user friendly.

Acceptance Criteria

  • the 'Share' bulk actions use the 'bulk action progress window' introduced in Add a progress bar to "Edit" bulk actions [5] #11597 when at least 40 entries are selected;
  • The respective backend calls are done in batches of 20 entities when at least 40 entries are selected;
  • When a batch has been successfully processed, the progress bar and process entry count on the progress screen are updated accordingly and the save method is called with the next batch;
  • the bulk action also works in the case detailed and contact detailed directories, which use different grids;
  • cancelling the action before it finishes leaves the selected entries that have not yet been processed still selected (as implemented in Add a progress bar to "Edit" bulk actions [5] #11597);
  • clicking on the "Cancel" button at any time results in a popup being shown that allows the user to confirm the cancellation; this only happens after the current batch of entries have been saved (and the progress screen updated accordingly);
  • aborting the cancellation closes the popup window and continues the bulk processing (i.e. the save method is called with the next batch)
  • when using the 'Share' bulk action with LESS THAN 40 entries selected, the progress screen is not shown and instead all selected entries are passed to the backend for processing; a success notification is shown after the bulk action has been completed as usual;
  • before displaying the 'bulk progress window' the following pop-up needs to be displayed so that the user can follow the proper S2S share process:
    image
  • display the 'bulk progress bar window' only if the user filled all the mandatory information in the pop-up from above;
  • when the action is stopped (due to an exception that some entities may not be shared - for example contacts without source cases which were already shared, entities that are only to view in the source system and can not be shared with another) the entities that remained unprocessed should remain checked in the main grid where they were selected from;
  • if any other exceptions than the ones listed above can occur and stop the share, please also handle them (can be discussed);

Implementation Details

No response

Mockups

No response

Additional Information

No response

@adinaflorea9 adinaflorea9 added contacts cases backend Affects the web backend vaadin-app Affects the Vaadin application feature A new feature to be developed (ticket type) ready Issue fulfills the definition of ready and can be implemented labels Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Affects the web backend cases contacts feature A new feature to be developed (ticket type) ready Issue fulfills the definition of ready and can be implemented vaadin-app Affects the Vaadin application
Projects
None yet
Development

No branches or pull requests

1 participant