nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Incorrect change in efficiency when marking a task with modified deadline #5588

Open nus-pe-bot opened 1 month ago

nus-pe-bot commented 1 month ago

Describe the bug The app allows editing the deadline of a task to a past timestamp. When marking a task with modified deadline like this, the efficiency of the task owner does not change (decrease) as specified in the UG.

To Reproduce Steps to reproduce the behavior:

  1. Assign a task to an employee: assign task/Complete Project Proposal 2 by/20-05-2024 2359 to/1

  2. Edit the deadline to the past: edit_deadline 1 by/12-02-2020 2320

  3. Mark that task as done: mark task/Complete Project Proposal 2 o/1

  4. Observe the efficiency of the task owner.

Expected behavior The efficiency of the task owner should decrease.

Actual behavior The efficiency of the task owner increased.

Screenshots Before marking:

image.png

After marking:

image.png

Efficiency of Alex Yeoh increased from 80% to 100%

Desktop:


[original: nus-cs2103-AY2324S2/pe-interim#5586] [original labels: type.FunctionalityBug severity.Medium]

wolffe88 commented 3 weeks ago

Team's Response

No details provided by team.

Duplicate status (if any):

--