iMMAP / ngm-reportDesk

The workdesk for ReportHub
0 stars 0 forks source link

Bulk Delete for All Activity in Specific Month #74

Closed rafinkanisa closed 2 years ago

rafinkanisa commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Some users are requesting to delete all of the activities they have reported in a certain month at ReportHub. Currently, ReportHub doesn't have the functionality to delete all activities either that have been saved as drafts or have been submitted using a single button. I would like to decrease the developer task load to delete such reports. It would be better for the reporting partners to be able to do it themselves rather than asking through developer team to delete it directly from the DB. Deleting directly from the DB also imposed on high risk.

Describe the solution you'd like A clear and concise description of what you want to happen. Create a single button to delete all activities in a certain month

Acceptance Criteria

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here. Please use below terminology

Button: Delete All Activities

Prompt Messages: Header: Delete All Activities Body: Are you sure you want to DELETE ALL ACTIVITIES in XX report? Warning: Once you delete the activities, Any of the lost data will not be accessible anymore and this action can't be recovered by the ReportHub Team.

XX = month of the report (e.g. February and so on)

fakhrihawari commented 2 years ago

Mock Up First Put in Top

Screen Shot 2022-04-13 at 14 04 03

on the bottom

Screen Shot 2022-04-13 at 14 04 09

Modal

Screen Shot 2022-04-13 at 14 06 34
rafinkanisa commented 2 years ago

Please edit the words used as described.

A quick question: when a user is deleting the activities, this action must have to be saved first before it will be taking an action at the platform right?

fakhrihawari commented 2 years ago

No need because I set the function to automatically save the report after we delete all the activities

fakhrihawari commented 2 years ago

Button

Screen Shot 2022-04-14 at 10 55 46 Screen Shot 2022-04-14 at 10 55 40

Prompt message

Screen Shot 2022-04-14 at 10 57 20
fakhrihawari commented 2 years ago

updated on DEV

rafinkanisa commented 2 years ago

Hi I've just checked and found this. Why are there 2 button (delete activities & remove report)

Screen Shot 2022-04-20 at 14 38 07

I'm checking using common user this is the project link https://dev.reporthub.org/desk/#/cluster/projects/report/612f231d7fd758f3603104ef/612f231d7fd758f3603104f6

fakhrihawari commented 2 years ago

The "remove report" button is used to delete non-blank reports that are outside the project date range that has been defined in the project plan. So for example, when we first create a project, we set the project to start on January 1, 2021, and end on December 31, 2022.

Later on January 1, 2022, we changed the project start date to January 1, 2022, for some reason. Reports that have been created before 2022 will be deleted if the report is blank automatically. On the other hand, non-blank reports are not deleted. It is because non-blank reports maybe contain important information
So if we want to delete the non-blank reports we need to click these "remove report" buttons.

rafinkanisa commented 2 years ago

alright, we'll fix the remove button issue on another user storry. you may go to PROD

fakhrihawari commented 2 years ago

Updated on PROD Link PR https://github.com/iMMAP/ngm-reportHub/pull/137 https://github.com/iMMAP/ngm-reportEngine/pull/61