Skip to content

差し戻された際のタスク履歴を特定するutilを作成しました #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 23, 2025

Conversation

yuji38kwmt
Copy link
Collaborator

@yuji38kwmt yuji38kwmt commented Mar 23, 2025

タスク履歴には、「どのタスク履歴で差し戻されたか」の情報がないため、それを算出するutils関数を作成しました。

@yuji38kwmt yuji38kwmt changed the title Add utils 差し戻された際のタスク履歴を特定するutilを作成しました Mar 23, 2025
@yuji38kwmt yuji38kwmt requested a review from Copilot March 23, 2025 07:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a utility function to determine which task history indices indicate a rejection event when a task is sent back, along with corresponding tests and a new dependency.

  • Added a new util function (find_rejected_task_history_indices) to identify rejected task histories.
  • Developed unit tests to verify the utility's behavior.
  • Added the isodate dependency to support duration parsing.

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
annofabapi/util/task_history.py Added the rejection-determining utility function.
tests/util/test_local_task_history.py Introduced tests for the new function to verify expected rejection indices.
pyproject.toml Added the isodate dependency required by the new util function.
Files not reviewed (1)
  • docs/api_reference/util.rst: Language not supported

@yuji38kwmt yuji38kwmt merged commit f91a415 into main Mar 23, 2025
8 checks passed
@yuji38kwmt yuji38kwmt deleted the add-utils branch March 23, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant