Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

New finding dialog loses a severity only edit without an unsaved changes warning

未关闭 适合新手
#3,569 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@ManoharPaturi 已经在做这个了。

开始于 2026年10月27日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python, react, typescript

调研方向

从 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

  1. Open the New finding dialog.
  2. Change only Severity to Critical.
  3. 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/PyRIT 的其他 Issue

查看 microsoft/PyRIT 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。