← Back to team overview

launchpad-dev team mailing list archive

Revisiting official_codehosting and usage enums

 

Hello all--

In updating the codebase to use the usage enums proposed a month ago, the following scenario (which I think Martin Pool alluded to) comes up:

1) A product uses a branch on launchpad as its development focus.

2) The branch is itself a mirror of an externally hosted branch.

Previously, the code saw the presence of a development focus and determined that the product did in fact use Launchpad for codehosting. But our criteria for the codehosting_usage enum requires that the branch's type be HOSTED, and in this instance the branch is actually MIRRORED. 

It would seem that in this scenario the product shouldn't be said to use Launchpad for codehosting, but as there was some discussion on this before I thought I might get other  opinions.

//j.c.sackett


Follow ups