Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Sync facebook-pixel-hunt data with latest from study-remote-settings #250

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe("loadFirestore", () => {

expect(userStudyDocs.docs.length).toBe(1);

expect(userStudyDocs.docs[0].data()).toEqual(studies.exampleStudy1);
expect(userStudyDocs.docs[0].data()).toEqual(studies.facebookPixelHunt);
});
});

Expand Down
39 changes: 26 additions & 13 deletions functions/src/studies.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
export const studies = {
exampleStudy1: {
name: "Rally Test",
icons: {},
facebookPixelHunt: {
name: "Facebook Pixel Hunt",
icons: {
"32": "https://addons.mozilla.org/user-media/addon_icons/2732/2732005-32.png",
"64": "https://addons.mozilla.org/user-media/addon_icons/2732/2732005-64.png",
"128": "https://addons.mozilla.org/user-media/addon_icons/2732/2732005-128.png"
},
authors: {
name: "Rally Devs",
name: "Mozilla Rally and the Markup",
},
version: "0.0.1",
addonId: "abc123",
studyId: "exampleStudy1",
downloadLink: "http://example.com",
endDate: "2021-10-27",
version: "0.2.0",
firefoxAddonId: "facebook-pixel-hunt@rally.mozilla.org",
chromeExtensionId: "pbeklachfkbjddmglcccopmknmpfchdm",
studyId: "facebookPixelHunt",
downloadLink: "https://chrome.google.com/webstore/detail/facebook-pixel-hunt/pbeklachfkbjddmglcccopmknmpfchdm",
endDate: "2022-07-13",
studyEnded: false,
studyPaused: false,
description: "Test",
studyDetailsLink: "http://example.com",
dataCollectionDetails: ["Nothing"],
tags: ["test"],
description: "According to its own policy, Facebook may collect information about you across the web even if you don\u2019t have a Facebook account. One way Facebook performs this tracking is through a network of \u201Cpixels\u201D that may be installed on many of the sites you visit. By joining this study, you will help Rally and The Markup investigate and report on where Facebook is tracking you and what kind of information they are collecting.",
studyDetailsLink: "https://rally.mozilla.org/current-studies/facebook-pixel-hunt/index.html",
dataCollectionDetails: [
"The data sent to Facebook through Facebook Pixels",
"The URLs of the web pages you browse",
"The time you spend browsing pages",
"The presence of Facebook login cookies in your browser",
"A study survey that the user completes"
],
tags: [
"social media"
],
},
};
2 changes: 1 addition & 1 deletion tests/integration/extension/src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Rally, RunStates } from "@mozilla/rally-sdk";

const enableDevMode = false;
const rallySite = "http://localhost:5000";
const studyId = "exampleStudy1";
const studyId = "facebookPixelHunt";

// TODO load from JSON file in /config/
const firebaseConfig = {
Expand Down