Skip to content

Fix Missing task extension duration in action_text.#7044

Draft
Aadesh-Baral wants to merge 5 commits intohotosm:developfrom
Aadesh-Baral:fix/6014-lock-extension-duration
Draft

Fix Missing task extension duration in action_text.#7044
Aadesh-Baral wants to merge 5 commits intohotosm:developfrom
Aadesh-Baral:fix/6014-lock-extension-duration

Conversation

@Aadesh-Baral
Copy link
Copy Markdown
Contributor

@Aadesh-Baral Aadesh-Baral commented Oct 6, 2025

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ❓ Other (please specify)

Related Issue

Example: Fixes #6014

Describe this PR

Refactor of #6046

------------------

In the previous implementation, there was an issue where the duration of a task extension was not being recorded when a task was extended and then unlocked/stopped. Prior to the implementation of the task lock extension feature, the last recorded action for a task was always either "LOCKED_FOR_MAPPING" or "LOCKED_FOR_VALIDATION," which matched the task status. To update the duration, we used the current task status as the last action to filter the task history and update the last entry with the lock duration.

However, after the task extension feature was introduced, two additional last actions were possible: "EXTENDED_FOR_MAPPING" and "EXTENDED_FOR_VALIDATION." This introduced a discrepancy between the last recorded action and the task status. For example, the task status could still be "LOCKED_FOR_MAPPING" even when a user had extended the task. As a result, the entry with the action "EXTENDED_FOR_MAPPING" in the task history was not being updated with the correct duration.

To address this issue, this commit fixed the problem by retrieving the last task action and using it as the filter criteria for updating the task history, rather than relying on the task status as the last action.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Oct 6, 2025

@Aadesh-Baral Aadesh-Baral changed the title Fix/6014 lock extension duration Fix Missing task extension duration in action_text. Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Missing Task Lock Extension Duration in Action Text Column

1 participant