• 
      

    Add Repository.get_default_bug_tracker().

    Review Request #15260 — Created Aug. 31, 2026 and updated

    Information

    Review Board
    release-9.x

    Reviewers

    This new method returns the bug tracker configuration acting as a
    repository's default. When a default_bug_tracker is explicitly
    assigned, it will use that. Otherwise, if there's a single enabled bug
    tracker which applies to the repository, it will fall back to that.

    The result is cached on the instance, since it requires two queries.

    • Ran unit tests.
    • Used in conjunction with other changes.
    Summary ID
    Add Repository.get_default_bug_tracker().
    This new method returns the bug tracker configuration acting as a repository's default. When a `default_bug_tracker` is explicitly assigned, it will use that. Otherwise, if there's a single enabled bug tracker which applies to the repository, it will fall back to that. The result is cached on the instance, since it requires two queries. Testing Done: - Ran unit tests. - Used in conjunction with other changes.
    wksxrzluurrnvtrmwvkvzxlkuozkmyyl
    Description From Last Updated

    line too long (80 > 79 characters) Column: 80 Error code: E501

    reviewbot reviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    david
    Review request changed
    Commits:
    Summary ID
    Add Repository.get_default_bug_tracker().
    This new method returns the bug tracker configuration acting as a repository's default. When a `default_bug_tracker` is explicitly assigned, it will use that. Otherwise, if there's a single enabled bug tracker which applies to the repository, it will fall back to that. The result is cached on the instance, since it requires two queries. Testing Done: - Ran unit tests. - Used in conjunction with other changes.
    wksxrzluurrnvtrmwvkvzxlkuozkmyyl
    Add Repository.get_default_bug_tracker().
    This new method returns the bug tracker configuration acting as a repository's default. When a `default_bug_tracker` is explicitly assigned, it will use that. Otherwise, if there's a single enabled bug tracker which applies to the repository, it will fall back to that. The result is cached on the instance, since it requires two queries. Testing Done: - Ran unit tests. - Used in conjunction with other changes.
    wksxrzluurrnvtrmwvkvzxlkuozkmyyl

    Checks run (2 succeeded)

    flake8 passed.
    JSHint passed.