-
Notifications
You must be signed in to change notification settings - Fork 4
#10397 sdk から、タスク名でタスクを作成できる #251
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
base: main
Are you sure you want to change the base?
#10397 sdk から、タスク名でタスクを作成できる #251
Conversation
| status: str | None = None, | ||
| external_status: str | None = None, | ||
| priority: Priority | None = None, | ||
| tags: list[str] = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[must]
fastlabel-sdk は現状ではは python>=3.8 対応と記載しているので、| None ではなく、Optional[] の使用をお願いします! | None の書き方は 3.10 からになります🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[must]
また、ミュータブルオブジェクトを関数・メソッドのデフォルト値にすることは python では非推奨になっています。他のコードでもやってしまっていることではありますが、以下のように修正をお願いいたします🙇
tags: Optional[list[str]] = None,
...
):
# ↓ None を空のリストに変換
tags = tags or []
rikunosuke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 箇所、型と引数に関してコメントしています!修正をお願いいたします🙇
| """ | ||
| Create a single robotics task without content. | ||
| project is slug of your project (Required). | ||
| name is an unique identifier of task in your project (Required). | ||
| status can be 'registered', 'completed', 'skipped', 'reviewed', 'sent_back', 'approved', 'declined' (Optional). | ||
| external_status can be 'registered', 'completed', 'skipped', 'reviewed', 'sent_back', 'approved', 'declined', 'customer_declined' (Optional). | ||
| priority is the priority of the task (default: none) (Optional). | ||
| Set one of the numbers corresponding to: | ||
| none = 0, | ||
| low = 10, | ||
| medium = 20, | ||
| high = 30, | ||
| tags is a list of tag to be set in advance (Optional). | ||
| assignee is slug of assigned user (Optional). | ||
| reviewer is slug of review user (Optional). | ||
| approver is slug of approve user (Optional). | ||
| external_assignee is slug of external assigned user (Optional). | ||
| external_reviewer is slug of external review user (Optional). | ||
| external_approver is slug of external approve user (Optional). | ||
| """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントの実装、ありがとうございます!!
Issue
https://github.com/fastlabel/fastlabel-application/issues/10397
対応内容
やったこと
やれていないこと、妥協点
テスト
変更の意図に沿った基本動作が確認できている
関連する既存機能にデグレがないことを確認
エッジケースや例外パターンの動作を確認
関連リンク
補足
以下で確認