Fix Bug 1500451 - Add local dump for sites-classification bucket on Remote Settings r=leplatrem
authorRicky Rosario <rickyrosario@gmail.com>
Mon, 22 Oct 2018 19:33:48 +0300
changeset 490654 105be1518d2ead905311d1ae9d47f4633e0a3539
parent 490653 4fbd733460be88a0a587ec5a4d10945bf2df9e8c
child 490655 58d5a882493d491780115ebfe6c561866fc07dda
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersleplatrem
bugs1500451
milestone64.0a1
Fix Bug 1500451 - Add local dump for sites-classification bucket on Remote Settings r=leplatrem Summary: MozReview-Commit-ID: JER4SDm6YV3 Reviewers: leplatrem Reviewed By: leplatrem Bug #: 1500451 Differential Revision: https://phabricator.services.mozilla.com/D9261
services/settings/dumps/main/moz.build
services/settings/dumps/main/sites-classification.json
--- a/services/settings/dumps/main/moz.build
+++ b/services/settings/dumps/main/moz.build
@@ -1,12 +1,13 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 FINAL_TARGET_FILES.defaults.settings.main += [
     'example.json',
     'language-dictionaries.json',
     'onboarding.json',
+    'sites-classification.json',
 ]
 
 if CONFIG['MOZ_BUILD_APP'] == 'browser':
     DIST_SUBDIR = 'browser'
new file mode 100644
--- /dev/null
+++ b/services/settings/dumps/main/sites-classification.json
@@ -0,0 +1,271 @@
+{
+  "data": [
+    {
+      "type": "search-engine-mozilla-tag",
+      "weight": 4,
+      "criteria": [
+        {
+          "sld": "google",
+          "params": [
+            {
+              "key": "client",
+              "prefix": "firefox"
+            }
+          ]
+        },
+        {
+          "params": [
+            {
+              "key": "t",
+              "prefix": "ff"
+            }
+          ],
+          "hostname": "duckduckgo.com"
+        },
+        {
+          "params": [
+            {
+              "key": "tn",
+              "prefix": "monline_dg"
+            }
+          ],
+          "hostname": "baidu.com"
+        },
+        {
+          "params": [
+            {
+              "key": "pc",
+              "prefix": "MOZ"
+            }
+          ],
+          "hostname": "bing.com"
+        },
+        {
+          "params": [
+            {
+              "key": "pc",
+              "prefix": "MZ"
+            }
+          ],
+          "hostname": "bing.com"
+        }
+      ],
+      "id": "351864eb-eca8-4c84-b036-b847d046c864",
+      "last_modified": 1539907365852
+    },
+    {
+      "type": "search-engine-other-tag",
+      "weight": 3,
+      "criteria": [
+        {
+          "sld": "google",
+          "params": [
+            {
+              "key": "client"
+            }
+          ]
+        },
+        {
+          "params": [
+            {
+              "key": "t"
+            }
+          ],
+          "hostname": "duckduckgo.com"
+        },
+        {
+          "params": [
+            {
+              "key": "tn"
+            }
+          ],
+          "hostname": "baidu.com"
+        },
+        {
+          "params": [
+            {
+              "key": "pc"
+            }
+          ],
+          "hostname": "bing.com"
+        },
+        {
+          "params": [
+            {
+              "key": "fr"
+            }
+          ],
+          "hostname": "search.yahoo.com"
+        },
+        {
+          "params": [
+            {
+              "key": "hsimp"
+            }
+          ],
+          "hostname": "search.yahoo.com"
+        }
+      ],
+      "id": "9a3ed0f2-4207-4d03-8bed-6c38242dbdbd",
+      "last_modified": 1539907352029
+    },
+    {
+      "type": "search-engine",
+      "weight": 2,
+      "criteria": [
+        {
+          "sld": "google"
+        },
+        {
+          "hostname": "duckduckgo.com"
+        },
+        {
+          "hostname": "baidu.com"
+        },
+        {
+          "hostname": "bing.com"
+        },
+        {
+          "hostname": "search.yahoo.com"
+        },
+        {
+          "sld": "yandex"
+        }
+      ],
+      "id": "c32a3278-e9ba-4090-8269-49d262fdea04",
+      "last_modified": 1539907334747
+    },
+    {
+      "type": "news-portal",
+      "weight": 1,
+      "criteria": [
+        {
+          "sld": "yahoo"
+        },
+        {
+          "hostname": "msn.com"
+        },
+        {
+          "hostname": "digg.com"
+        },
+        {
+          "hostname": "aol.com"
+        },
+        {
+          "hostname": "cnn.com"
+        },
+        {
+          "hostname": "bbc.com"
+        },
+        {
+          "hostname": "bbc.co.uk"
+        },
+        {
+          "hostname": "nytimes.com"
+        },
+        {
+          "hostname": "qq.com"
+        },
+        {
+          "hostname": "sohu.com"
+        }
+      ],
+      "id": "12743b39-7f79-4620-bc37-a87b8ab2ba46",
+      "last_modified": 1539907318995
+    },
+    {
+      "type": "social-media",
+      "weight": 1,
+      "criteria": [
+        {
+          "hostname": "facebook.com"
+        },
+        {
+          "hostname": "twitter.com"
+        },
+        {
+          "hostname": "instagram.com"
+        },
+        {
+          "hostname": "reddit.com"
+        },
+        {
+          "hostname": "myspace.com"
+        },
+        {
+          "hostname": "linkedin.com"
+        },
+        {
+          "hostname": "pinterest.com"
+        },
+        {
+          "hostname": "quora.com"
+        },
+        {
+          "hostname": "tuenti.com"
+        },
+        {
+          "hostname": "tumblr.com"
+        },
+        {
+          "hostname": "untappd.com"
+        },
+        {
+          "hostname": "yammer.com"
+        },
+        {
+          "hostname": "slack.com"
+        },
+        {
+          "hostname": "youtube.com"
+        },
+        {
+          "hostname": "vk.com"
+        },
+        {
+          "hostname": "twitch.tv"
+        }
+      ],
+      "id": "bdde6edd-83a5-4c34-b302-4810e9d10d04",
+      "last_modified": 1539907302037
+    },
+    {
+      "type": "ecommerce",
+      "weight": 1,
+      "criteria": [
+        {
+          "sld": "amazon"
+        },
+        {
+          "sld": "ebay"
+        },
+        {
+          "hostname": "alibaba.com"
+        },
+        {
+          "hostname": "walmart.com"
+        },
+        {
+          "hostname": "taobao.com"
+        },
+        {
+          "hostname": "tmall.com"
+        },
+        {
+          "hostname": "flipkart.com"
+        },
+        {
+          "hostname": "snapdeal.com"
+        },
+        {
+          "hostname": "bestbuy.com"
+        },
+        {
+          "hostname": "jabong.com"
+        }
+      ],
+      "id": "48ec9db9-0de1-49aa-9b82-1a2372dce31e",
+      "last_modified": 1539907283705
+    }
+  ]
+}