mozilla / mozilla/bugbug

Consider using a consistent type for diff_id throughout the PhabricatorPatch class

Open
#5,304 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
570
Forks
351
Avg merge
2d 13h
Merged PRs (30d)
65

Description

Consider using a consistent type for diff_id throughout the class. Currently it accepts both str and int but the diff_id property always returns int, which could cause confusion.

Originally posted by @Copilot in https://github.com/mozilla/bugbug/pull/5303#discussion_r2400596679

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the PhabricatorPatch class and trace how diff_id is accepted and returned. Review the discussion in pull request 5303, then add or update focused tests so diff_id uses one consistent type throughout the class.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.