# Feature OP-15183 - Warn admins about potential data loss when changing progress calculation modes

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15183

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 14.2.0 |
| Sprint | 14.2.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**Context**

Users have complained about losing data when switching from Work- to Status-based progress calculation:

  - Existing % Complete values are overwritten by status (or set to 0 when a corresponding value does not exist)

  - Remaining work is automatically updated (<mention class="mention" data-id="55371" data-type="work_package" data-text="#55371">#55371</mention>)

This warning banner (displayed only when a *different* mode than current is selected) aims to give admins a fair warning of these irreversible changes.

**Acceptance criteria**

  - In *Administration → Work packages → Settings,* show a warning when an administrator changes the selection in the 'Progress calculation' drop-down (on change, before save)
    
      - When going from 'Work-based' to 'Status-based', it should read:
        
          - "Changing progress calculation mode from work-based to status-based will result in all existing *% Complete* values to be lost and replaced with values associated with each status. Existing values for *Remaining work* may also be recalculated to reflect this change. This action is not reversible."
    
      - When going from 'Status-based' to 'Work-based', it should read:
        
          - "Changing progress calculation mode from status-based to work-based will make *% Complete* a non-editable field whose value derived is from *Work* and *Remaining work.* Existing values for *% Complete* are preserved. If values for *Work* and *Remaining work* were not present, they will be required in order to change *% Complete*."

**Visuals**

*Changing from Work- to Status-based:*

<img class="image_resized op-uc-image op-uc-image_inline" style="width:881px;" src="/api/v3/attachments/105662/content">

*Changing from Status- to Work-based:*

<img class="image_resized op-uc-image op-uc-image_inline" style="width:886px;" src="/api/v3/attachments/105663/content">
