say you want to bulk edit the reviews of 4 or 5 different policies, you select them on the checkbox on the left and click “Bulk Edit”.
Note we also need “Bulk Delete”.
Bulk editing policy, risk and asset reviews can lead to trouble:
1- a user might select a mix of completed and not-completed reviews
2- a user might select reviews for multiple policies
3- a user might select reviews that are incomplete but still have pending reviews in the future (say you have two incomplete reviews for a a policy and you bulk edit one or the other)
For this reason, bulk editing reviews is tricky. how we want to deal with these problem:
1- an error message (top left) indicating “A mix of completed and incomplete reviews have been selected for bulk edit, make sure you only select incomplete reviews”. Once a review is completed all its fields are greyed out so it wouldn’t be possible to edit them anyway.
2- this is also tricky because the “reviewer”, “next reviewer” and “next review date” (in the case of policies you also have the version and content) fields are automatically completed based on the parent object (the policy, asset, etc) … so what to do in this scenario? we need to leave all fields in blank and let the user put whatever they want .
3- the problem with this situation is the “Next review date” field, which again is automatically completed IF there is an incomplete review in the future. We then need to apply the logic above and override the suggestion.
int ref: https://github.com/eramba/eramba_v2/issues/2399