Skip to content

annofabapi.util.task_history.get_task_creation_datetimeを追加 #710

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 3 commits into from
Mar 27, 2025

Conversation

yuji38kwmt
Copy link
Collaborator

@yuji38kwmt yuji38kwmt commented Mar 27, 2025

もともと annofabcli にあったコードですが、他のツールからも利用したくなるケースはあると考えて、annofabapiに移動しました。

@yuji38kwmt yuji38kwmt requested a review from Copilot March 27, 2025 04:15
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 adds a new utility function to compute the task creation datetime based on task history and updates tests to verify its behavior, as well as correcting a minor typo in the package description.

  • Introduces get_task_creation_datetime in annofabapi/util/task_history.py
  • Adds tests for get_task_creation_datetime in tests/util/test_local_task_history.py
  • Fixes a misspelling ("Clinet" → "Client") in pyproject.toml

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 Adds the new utility function to extract the task creation datetime
tests/util/test_local_task_history.py Adds test cases covering different scenarios for the new utility function
pyproject.toml Fixes a typographical error in the project description
Files not reviewed (1)
  • docs/api_reference/util.rst: Language not supported

@yuji38kwmt yuji38kwmt changed the title タスク履歴のutilを追加 annofabapi.util.task_history.get_task_creation_datetimeを追加 Mar 27, 2025
@yuji38kwmt yuji38kwmt merged commit 71709d7 into main Mar 27, 2025
8 checks passed
@yuji38kwmt yuji38kwmt deleted the タスク履歴のutilを追加 branch March 27, 2025 04:17
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