mozilla / mozilla/bugbug

Add bug_map as a cached property for LandingsRiskReportGenerator

Open
#5,053 1 comment 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.