[bug]: Transferring work items to another cycle does not record it in the work items' activity
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When the work items of a cycle are moved to another cycle with "Transfer work items", nothing about the move shows in the work items' activity. Adding a work item to a cycle by hand records "added cycle ..." as expected. Converting a draft into a work item with a cycle picked also records nothing.
The cycle activity task fails in both cases. transfer_cycle_issues (apps/api/plane/utils/cycle_transfer_issues.py) sends "created_cycle_issues": [], a list, while create_cycle_issue_activity (apps/api/plane/bgtasks/issue_activities_task.py) runs json.loads() on that value; the other callers send a JSON string there. issue_activity catches the error and logs it before bulk_create, so no activity rows are written:
TypeError: the JSON object must be str, bytes or bytearray, not list
It looks like this started with #7969, which changed the value from "[]" to [].
Steps to reproduce
- Create a cycle that has ended and a second cycle that is current or upcoming.
- Put a work item that is not completed into the first cycle.
- On the first cycle, use "Transfer work items" and pick the second cycle (or call
POST /api/v1/workspaces/<slug>/projects/<project_id>/cycles/<cycle_id>/transfer-issues/withnew_cycle_id). - Open the work item's activity: there is no change from the first cycle to the second, and the worker log shows the TypeError above.
Environment
Production
Browser
None
Edition
Community
Version
v1.5.0 (also on preview at 723bb178f)
- 主要言語
- TypeScript
- スター
- 63k
- フォーク
- 6.5k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
makeplane/plane のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
[bug]: Comment external_id is deduplicated per project instead of per work item対応中かも @MishraTanishq619 が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
makeplane/plane#10195 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votes対応中かも @ghazy2001 が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
makeplane/plane#10111 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
makeplane/plane#10082 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
makeplane/plane の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
frontend testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vendrabuck/HERD#1588 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue priority: low
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
art-audio
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100