djaodjin / djaopsp

Practices Survey Platform - Assess against best practices assessment and improvement planning
BSD 2-Clause "Simplified" License
3 stars 6 forks source link

Assessment Nav: Archive an assessment #366

Closed quiaro closed 3 years ago

quiaro commented 3 years ago

After an assessment has been frozen, it's no longer possible to delete it. The assessment nav should show an Archive button instead.

quiaro commented 3 years ago

@smirolo what endpoint should be called for this?

smirolo commented 3 years ago

After an assessment has been frozen, it does not show in the active assessments (updates field) any more, but will be listed in the assessment history (results field). So I would say a frozen assessment is automatically "archived". There is no need for a button.

Note: an assessment cannot be frozen before all required questions have been answered. It can be "deleted" though by calling the reset API.

quiaro commented 3 years ago

From the UI perspective, the assumption now is that an assessment will stay active until it is archived. In other words, it will continue to show in the list of active assessments so that it's easier to access/share.

@smirolo If the assessment becomes "archived" the moment it is frozen. Does that mean it should not show anymore in the list of active assessments? ... would it automatically be accessed only from the assessment history?

Would you be able to confirm since the UI assumes that there is a way to distinguish between frozen and archived assessments.

smirolo commented 3 years ago

We will remove the archive button. An active assessment is unfrozen while a frozen assessment shows up in the history. To help in the few cases were an assessment was frozen and the user forgot to share it, or another user for the organization comes along, we will present the latest frozen assessments (less that 6months) on the home/start page.