Add bug_map as a cached property for LandingsRiskReportGenerator
Open
Nobody has claimed this yet.
good-first-bug
- Dominant language
- Python
- Stars
- 570
- Forks
- 351
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 65
Description
As a follow-up, what do you think about adding bug_map as a cached property (i.e.,
@cached_property)? In that way, we do not need to pass it with the function calls.
Originally posted by @suhaibmujahid in https://github.com/mozilla/bugbug/pull/5052#discussion_r2111405600
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a file or test. Find LandingsRiskReportGenerator and inspect how bug_map is currently passed through its calls; the change is complete when bug_map is provided by a cached property instead of being passed into those calls, with relevant tests still passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100