Skip to content

fix: remove unused redact_paths param from bug_report - #9651

Merged
koenvanderveen merged 1 commit into
devfrom
koen/remove-bug-report-redact-paths
Nov 23, 2026
Merged

koenvanderveen merged 1 commit into
devfrom
koen/remove-bug-report-redact-paths

Conversation

@koenvanderveen

Copy link
Copy Markdown
Collaborator

Summary

  • When a user calls sy.bug_report(redact_paths=True), we previously accepted the parameter, documented it as "redact user-specific paths", and then never read it. The report has no paths to redact. Now bug_report() no longer takes redact_paths; passing it raises a TypeError.
  • When a user reads the bug_report() docstring, it previously said the report "prints only versions, paths, and config metadata", while the NOTES line the report prints says it contains no paths. Now the docstring says versions and config metadata only, with no tokens, secrets, paths, or PII, which matches the NOTES line.

Closes #9644. This replaces #9650, which kept redact_paths as a parameter that does nothing.

Guidelines

High level

  • 🟢 Split: one change, no split needed
  • 🟢 Size: removes the unused redact_paths parameter from bug_report() and fixes its docstring

Mid level

  • 🟢 User-facing code: removes a public parameter, sy.bug_report(redact_paths=...), that did nothing
  • 🟢 Error handling
  • 🟢 State versioning
  • 🟢 Function structure
  • 🟢 Tests: no test needed for removing a parameter that nothing reads

Low level

  • 🟢 Naming
  • 🟢 Code style

Security

No change. The report already contained no paths; this only removes a parameter that suggested a redaction pass ran.

Testing

  • git grep redact_paths finds no other uses in the repo.
  • Ran sy.bug_report(as_dict=True) locally; it returns the full report.
  • pre-commit run --all-files passes.

Asana task

bug_report() accepted redact_paths but never read it, and the report has
no paths to redact. Also drop "paths" from the docstring line that said
the report prints them, so it matches the printed NOTES line.

Closes #9644
@koenvanderveen
koenvanderveen merged commit 220c3f2 into dev Nov 23, 2026
22 checks passed
@koenvanderveen
koenvanderveen deleted the koen/remove-bug-report-redact-paths branch November 23, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sy.bug_report: the redact_paths argument is accepted but never read

1 participant