• 
      

    Allow hosting services to define URLs for the service.

    Review Request #15141 — Created June 26, 2026 and submitted

    Information

    Review Board
    release-9.x

    Reviewers

    Hosting service subclasses have long been able to define URL patterns,
    but these were always scoped under a repository ID. This change adds
    another class attribute for defining URLs that are for the hosting
    service generally.

    Used this from within other changes.

    Summary ID
    Allow hosting services to define URLs for the service.
    Hosting service subclasses have long been able to define URL patterns, but these were always scoped under a repository ID. This change adds another class attribute for defining URLs that are for the hosting service generally. Testing Done: Used this from within other changes.
    lsqonktuunwspxoyxxznqkwtwuzlonks
    Description From Last Updated

    Order should be reversed here.

    chipx86 chipx86

    This feels a bit noisy at this point. Possible cleanup: if patterns := self._hosting_service_url_patterns.pop(service_id, None): hosting_service_urls.remove_patterns(patterns) ...

    chipx86 chipx86
    chipx86
    1. 
        
    2. Show all issues

      Order should be reversed here.

    3. reviewboard/hostingsvcs/base/registry.py (Diff revision 1)
       
       
       
       
       
       
       
       
       
       
      Show all issues

      This feels a bit noisy at this point. Possible cleanup:

      if patterns := self._hosting_service_url_patterns.pop(service_id,
                                                            None):
          hosting_service_urls.remove_patterns(patterns)
      
      ...
      
    4. 
        
    david
    maubin
    1. 
        
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-9.x (efbfb6a)