Update the fake hosting services mapping to use hosting service IDs.

Review Request #14344 — Created Feb. 13, 2025 and submitted

Information

Review Board
release-7.x

Reviewers

The repository creation form advertises Power Pack's hosting services,
using fake versions of the hosting services for display. To do this, we
have a mapping of hosting service class paths to fake hosting services.

Power Pack 7 will update the class path for the Bitbucket Server hosting
service. This change updates the fake hosting services mapping to account
for this, otherwise a duplicate entry for Bitbucket Server would appear
in the hosting services choices when creating a repository. Instead of
using class paths in the mapping we use hosting service IDs, which will
show the right hosting services regardless of the Power Pack version,
and regardless of whether any more of their class paths change in the
future.

  • Ran unit tests.
  • Saw that there was no longer a duplicate entry in the hosting services
    choices.
  • Tested with Power Pack 5 and 6.
Summary ID
Update the fake hosting services mapping to use hosting service IDs.
The repository creation form advertises Power Pack's hosting services, using fake versions of the hosting services for display. To do this, we have a mapping of hosting service class paths to fake hosting services. Power Pack 6 updates the class path for the Bitbucket Server hosting service. This change updates the fake hosting services mapping to account for this, otherwise a duplicate entry for Bitbucket Server would appear in the hosting services choices when creating a repository. Instead of using class paths in the mapping we use hosting service IDs, which will show the right hosting services regardless of the Power Pack version, and regardless of whether any more of their class paths change in the future.
2db8b71ce80d3230e3b3c03bd1a3e1e1a9d82d54
david
  1. What happens if you have an older version of Power Pack installed?

    1. Good point.

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