[bug]: Agent create fails with "Invalid PQL syntax" when PQL filter is abandoned and switched back to Basic
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
Start by tracing the agent creation form’s Filters toggle and the payload sent to POST /api/workspaces/<slug>/agent-create/, then follow backend validation for the trigger filter config and PQL parsing. Reproduce by entering an incomplete PQL filter, switching to Basic, and submitting. Done when abandoned PQL text is discarded or the form reports a clear filter error before submission.
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
In the agent creation form, a trigger's Filters section has a Basic | PQL toggle. If you type a PQL statement, then switch back to Basic without clearing the PQL text, the form still creates the agent but submits a malformed PQL string built from the Basic filter plus the leftover PQL. The request fails with a generic toast:
Couldn't create the agent
Try again. If it keeps happening, contact support.
The API returns 400:
{"triggers": [{"index": 0, "errors": {"config": {"config": "Invalid PQL syntax."}}}]}
and the server logs:
PQL syntax error for query 'project IN ("<project-uuid>" ) AND': Unexpected token Token('$END', '') at line 1, column 54.
Invalid PQL syntax in event trigger filter config
The filter ends in a dangling AND with nothing after it, so the parser rejects it. The Basic view shows only a valid-looking Projects is any of ... chip, so nothing on screen indicates the problem, and the error toast does not mention the filter.
What I expect: switching back to Basic should either discard the abandoned PQL text or the form should validate the filter before submit. At minimum, the error should say the trigger filter is invalid.
Steps to reproduce
- Go to Agents → create a new agent.
- Add the trigger Work item created.
- In Filters, switch to PQL and type a partial statement (e.g.
project IN (...) AND) without deleting it. - Switch back to Basic and add a
Projects is any of ...condition. - Click create.
- See
Couldn't create the agentand a400fromPOST /api/workspaces/<slug>/agent-create/.
Clearing the PQL text before switching back to Basic avoids the error.
Environment
Production
Browser
Other (Plane desktop app 3.0.4, Electron)
Edition
Commercial
Version
Backend backend-commercial:v4.0.1, desktop app 3.0.4
- 主要言語
- 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