New finding dialog loses a severity only edit without an unsaved changes warning
维护者通常 2 天内回复
@ManoharPaturi 已经在做这个了。
开始于 2026年10月27日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python, react, typescript
- 领域
- frontend, testing-qa
调研方向
从 FindingDialog.tsx 开始,检查防止未保存更改的 effect、它的提前返回以及依赖项列表。将这些检查与草稿字段进行比较,并在 New finding 对话框中只更改 Severity 来复现问题。完成标准是:只更改 Severity 就会启用保护机制,关闭或重新加载标签页时会提示存在未保存的更改。
由索引模型根据 Issue 内容生成。
描述
Description
The unsaved changes guard in FindingDialog watches title, description, severity_other, harm_type, harm_type_other, and the evidence attack id, but not severity. In the create dialog, changing only the Severity select leaves every watched field empty, so the beforeunload listener is never armed and closing or reloading the tab discards the choice with no warning.
The severity select is the first control in the dialog and defaults to Moderate, so a severity only edit is an easy state to reach.
Expected Behavior
Any draft that differs from its initial values, including a severity change, should arm the unsaved changes guard.
Reproduction Steps
- Open the New finding dialog.
- Change only Severity to Critical.
- Close or reload the tab.
Minimal Reproduction
The guard effect's early return and dependency list in FindingDialog.tsx enumerate six fields; draft.severity appears in neither.
Environment
PyRIT main.
- 主要语言
- Python
- 星标
- 4.7k
- 派生
- 980
- 平均合并
- 2 天 7 小时
- 30 天内合并 PR
- 446
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/PyRIT 的其他 Issue
-
BUG: CredentialLeakScorer misses postgresql://, mongodb+srv://, rediss:// and amqps:// connection strings可能已有人在做 @ShivamSharma43 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 2 天内回复
-
Conversation drawer shows the previous attack's conversations after switching attacks可能已有人在做 @ManoharPaturi 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/PyRIT#3575 · 2 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
Conversation draft turns permanently dirty when applied conversions match no piece可能已有人在做 @ManoharPaturi 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 83/100
microsoft/PyRIT#3573 · 已指派 1 人 ·
维护者通常 2 天内回复
-
BUG: within word punctuation insertion can never land at the last two positions of the prompt可能已有人在做 @ManoharPaturi 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
microsoft/PyRIT#3565 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
BUG: case insensitive keyword selection returns a shifted range when lowercasing expands a character可能已有人在做 @ManoharPaturi 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
microsoft/PyRIT#3563 · 已指派 1 人 ·
维护者通常 2 天内回复
相似的 Issue
-
priority middle
难度 1/5 1 小时以内 新手友好度 62/100
KATO-Hiro/AtCoderClans#12940 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 76/100
huggingface/huggingface_hub#5283 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
bug example
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复