← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/git-recipe-beta-banner into lp:launchpad

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/git-recipe-beta-banner into lp:launchpad.

Commit message:
Add a beta banner to GitRepository:+index and GitRef:+index for Git recipes.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/git-recipe-beta-banner/+merge/283801

Add a beta banner to GitRepository:+index and GitRef:+index for Git recipes.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/git-recipe-beta-banner into lp:launchpad.
=== modified file 'lib/lp/code/browser/gitref.py'
--- lib/lp/code/browser/gitref.py	2016-01-20 12:21:21 +0000
+++ lib/lp/code/browser/gitref.py	2016-01-25 13:05:29 +0000
@@ -90,6 +90,10 @@
 
 class GitRefView(LaunchpadView, HasSnapsViewMixin):
 
+    related_features = {
+        "code.git.recipes.enabled": False,
+        }
+
     @property
     def label(self):
         return self.context.display_name

=== modified file 'lib/lp/code/browser/gitrepository.py'
--- lib/lp/code/browser/gitrepository.py	2016-01-20 12:21:21 +0000
+++ lib/lp/code/browser/gitrepository.py	2016-01-25 13:05:29 +0000
@@ -278,6 +278,10 @@
 class GitRepositoryView(InformationTypePortletMixin, LaunchpadView,
                         HasSnapsViewMixin):
 
+    related_features = {
+        "code.git.recipes.enabled": False,
+        }
+
     @property
     def page_title(self):
         return self.context.display_name

=== modified file 'lib/lp/services/features/flags.py'
--- lib/lp/services/features/flags.py	2015-05-14 13:57:51 +0000
+++ lib/lp/services/features/flags.py	2016-01-25 13:05:29 +0000
@@ -1,4 +1,4 @@
-# Copyright 2010-2014 Canonical Ltd.  This software is licensed under the
+# Copyright 2010-2016 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
 __all__ = [
@@ -221,6 +221,12 @@
      'disabled',
      'PPA Separate Long Descriptions',
      ''),
+    ('code.git.recipes.enabled',
+     'boolean',
+     'If true, allow creation of new Git-based recipes.',
+     'disabled',
+     'Git recipes',
+     'https://help.launchpad.net/Packaging/SourceBuilds'),
     ])
 
 # The set of all flag names that are documented.


Follow ups