Skip to content

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

@nus-pe-bot

Description

@nus-pe-bot

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:

  • OS: Windows 10
  • Browser
  • Version

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions