• 
      

    Add new properties to BaseBugTracker and subclasses.

    Review Request #15258 — Created Aug. 31, 2026 and submitted

    Information

    Review Board
    release-9.x

    Reviewers

    This change adds several new properties to the bug-tracker service
    implementations:

    • bug_tracker_label is used as the default field label for trackers on that
      service (e.g. a GitHub repo will show "GitHub Issues:" instead of
      "Bugs:")
    • supports_bug_info is a flag that will allow us to more efficiently
      check if a hosting service includes the get_bug_info() method.
    • supports_bug_search is a new flag to indicate whether a bug tracker
      backend supports interactive searching for bugs.
    • bugs_in_repo is a flag to indicate that a service's tracker is bound
      to its repository (e.g. GitHub Issues). For services where this is the
      case, the tracker is added individually for each repo instead of
      having a central config that can link to multiple repositories.

    Ran unit tests.

    Summary ID
    Add new properties to BaseBugTracker and subclasses.
    This change adds several new properties to the bug-tracker service implementations: - bug_tracker_label` is used as the default field label for trackers on that service (e.g. a GitHub repo will show "GitHub Issues:" instead of "Bugs:") - `supports_bug_info` is a flag that will allow us to more efficiently check if a hosting service includes the `get_bug_info()` method. - `supports_bug_search` is a new flag to indicate whether a bug tracker backend supports interactive searching for bugs. - `bugs_in_repo` is a flag to indicate that a service's tracker is bound to its repository (e.g. GitHub Issues). For services where this is the case, the tracker is added individually for each repo instead of having a central config that can link to multiple repositories. Testing Done: Ran unit tests.
    psxzukwyzltknkyvtllssyuyxzpmyrxn
    Description From Last Updated

    Typo in bugs_in_repo section in the description: "a service's tracker in bound ..." -> is.

    maubin maubin

    We don't actually replace the isinstance(bug_tracker, BaseBugTracker) check in BugInfoboxView.get() with supports_bug_info in this change, we should do that.

    maubin maubin

    Looks like this attribute was supposed to be added to BaseHostingService instead of here? In this change you set it …

    maubin maubin

    Looks like this attribute was supposed to be added to BaseHostingService, since we're using it to check whether a hosting …

    maubin maubin

    I don't see a search_bugs method here or in any of the other Bug Tracker changes you have up.

    maubin maubin
    david
    maubin
    1. 
        
    2. Show all issues

      Typo in bugs_in_repo section in the description: "a service's tracker in bound ..." -> is.

    3. Show all issues

      We don't actually replace the isinstance(bug_tracker, BaseBugTracker) check in BugInfoboxView.get() with supports_bug_info in this change, we should do that.

    4. reviewboard/hostingsvcs/base/bug_tracker.py (Diff revision 1)
       
       
       
       
       
       
       
       
       
       
      Show all issues

      Looks like this attribute was supposed to be added to BaseHostingService instead of here? In this change you set it on all of the hosting services that aren't subclasses of BaseBugTracker.

      1. This one I'm going to keep where it is. For now I'll add it commented-out to services that don't implement that, with a TODO (and just undo the change for dead services like fedorahosted and google code).

    5. reviewboard/hostingsvcs/base/bug_tracker.py (Diff revision 1)
       
       
       
       
       
       
       
       
       
      Show all issues

      Looks like this attribute was supposed to be added to BaseHostingService, since we're using it to check whether a hosting service is also a bug tracker. Otherwise it doesn't really make sense to have this attribute, we'd still need to be doing a hasattr(service, 'supports_bug_info') sort of check.

    6. Show all issues

      I don't see a search_bugs method here or in any of the other Bug Tracker changes you have up.

      1. This is coming in a later change.

    7. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-9.x (67fabf1)