Repository: mozmeao/snippets-service

Issue:
Make 'Activity Stream' the default start page option for new snippets
Activity stream is the new cool kid on the block. Let's make all the new snippets default to that Startpage instead of the current Versions 2,3,4.

![image](https://user-images.githubusercontent.com/584352/35226325-9ef91d50-ff93-11e7-9624-edf3027db261.png)



Discussion:

Resolving patch:
diff --git a/snippets/base/migrations/0029_auto_20180426_0605.py b/snippets/base/migrations/0029_auto_20180426_0605.py
new file mode 100644
--- /dev/null
+++ b/snippets/base/migrations/0029_auto_20180426_0605.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.12 on 2018-04-26 06:05
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('base', '0028_auto_20180426_1021'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='snippet',
+            name='on_startpage_2',
+            field=models.BooleanField(default=False, verbose_name=b'Version 2'),
+        ),
+        migrations.AlterField(
+            model_name='snippet',
+            name='on_startpage_3',
+            field=models.BooleanField(default=False, verbose_name=b'Version 3'),
+        ),
+        migrations.AlterField(
+            model_name='snippet',
+            name='on_startpage_4',
+            field=models.BooleanField(default=False, verbose_name=b'Version 4'),
+        ),
+        migrations.AlterField(
+            model_name='snippet',
+            name='on_startpage_5',
+            field=models.BooleanField(default=True, verbose_name=b'Activity Stream'),
+        ),
+    ]
diff --git a/snippets/base/models.py b/snippets/base/models.py
--- a/snippets/base/models.py
+++ b/snippets/base/models.py
@@ -421,10 +421,10 @@ class Snippet(SnippetBaseModel):
     on_esr = models.BooleanField(default=False, verbose_name='Enterprise')
 
     on_startpage_1 = models.BooleanField(default=False, verbose_name='Version 1')
-    on_startpage_2 = models.BooleanField(default=True, verbose_name='Version 2')
-    on_startpage_3 = models.BooleanField(default=True, verbose_name='Version 3')
-    on_startpage_4 = models.BooleanField(default=True, verbose_name='Version 4')
-    on_startpage_5 = models.BooleanField(default=False, verbose_name='Activity Stream')
+    on_startpage_2 = models.BooleanField(default=False, verbose_name='Version 2')
+    on_startpage_3 = models.BooleanField(default=False, verbose_name='Version 3')
+    on_startpage_4 = models.BooleanField(default=False, verbose_name='Version 4')
+    on_startpage_5 = models.BooleanField(default=True, verbose_name='Activity Stream')
 
     weight = models.IntegerField(
         'Prevalence', choices=SNIPPET_WEIGHTS, default=100,


Test patch:
diff --git a/snippets/base/tests/test_managers.py b/snippets/base/tests/test_managers.py
--- a/snippets/base/tests/test_managers.py
+++ b/snippets/base/tests/test_managers.py
@@ -55,7 +55,7 @@ def test_filter_by_available(self):
 
 class SnippetManagerTests(TestCase):
     def _build_client(self, **client_attrs):
-        params = {'startpage_version': '4',
+        params = {'startpage_version': '5',
                   'name': 'Firefox',
                   'version': '23.0a1',
                   'appbuildid': '20130510041606',