Merge lp:~thumper/launchpad/recipe-feature-flag into lp:launchpad
Proposed by
Tim Penhey
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Robert Collins | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 12410 | ||||||||
Proposed branch: | lp:~thumper/launchpad/recipe-feature-flag | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
321 lines (+44/-54) 12 files modified
lib/lp/code/browser/branch.py (+2/-5) lib/lp/code/browser/sourcepackagerecipe.py (+6/-6) lib/lp/code/browser/sourcepackagerecipelisting.py (+3/-2) lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+13/-1) lib/lp/code/interfaces/sourcepackagerecipe.py (+5/-12) lib/lp/code/model/sourcepackagerecipe.py (+0/-3) lib/lp/code/model/tests/test_sourcepackagerecipe.py (+0/-20) lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt (+6/-1) lib/lp/code/templates/branch-index.pt (+1/-1) lib/lp/code/templates/branch-recipes.pt (+2/-1) lib/lp/code/templates/branchmergequeue-listing.pt (+2/-2) lib/lp/services/features/flags.py (+4/-0) |
||||||||
To merge this branch: | bzr merge lp:~thumper/launchpad/recipe-feature-flag | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Booth (community) | code* | Approve | |
Robert Collins (community) | Approve | ||
Martin Pool (community) | Needs Fixing | ||
Review via email: mp+50092@code.launchpad.net |
Commit message
[r=lifeless,
Description of the change
Use feature flags exclusively for controlling recipes.
Generally replaced the recipes_enabled method with a direct check
of the feature flag.
There is no point checking now in requestBuild.
lib/lp/
- the link is only shown on the template if the feature flag is set
so no need to check it twice
To post a comment you must log in.
Just one thing about this in the context of wgrant's work: the way you're using this with just 'if getFeatureFlag()' is just going to go off Python's cast of the value to boolean, ie any non-empty string counts as true. <https:/ /bugs.launchpad .net/launchpad/ +bug/719182> So I wouldn't describe them as true/false for now.
While you're changing it, would you like to the existing flag to code.recipes. enabled for consistency? You would have to ask the losas to duplicate the existing rules.