Skip to content

Commit

Permalink
Merge pull request #13 from duckduckgo/shane/fix-email-data
Browse files Browse the repository at this point in the history
fix(extension): only require a single field for email data
  • Loading branch information
shakyShane authored Nov 30, 2022
2 parents 4e2ce56 + b648f06 commit 7312aea
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 27 deletions.
5 changes: 1 addition & 4 deletions build/app/public/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -28357,10 +28357,7 @@ var extensionMessageGetPrivacyDashboardDataSchema = _zod.z.object({
exports.extensionMessageGetPrivacyDashboardDataSchema = extensionMessageGetPrivacyDashboardDataSchema;

var emailProtectionUserDataSchema = _zod.z.object({
cohort: _zod.z.string(),
nextAlias: _zod.z.string(),
token: _zod.z.string(),
userName: _zod.z.string()
nextAlias: _zod.z.string()
});

exports.emailProtectionUserDataSchema = emailProtectionUserDataSchema;
Expand Down
6 changes: 0 additions & 6 deletions integration-tests/browser.spec-int.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ const test = baseTest.extend({
},
requestData: { requests: [] },
emailProtectionUserData: {
cohort: 'private_beta_dax',
nextAlias: '123456_next',
token: '123456',
userName: 'daxtheduck',
},
})
await page.goto(HTML)
Expand Down Expand Up @@ -221,10 +218,7 @@ test.describe('special page (cta)', () => {
},
requestData: { requests: [] },
emailProtectionUserData: {
cohort: 'private_beta_dax',
nextAlias: '123456_next',
token: '123456',
userName: 'daxtheduck',
},
})
await page.goto(HTML)
Expand Down
5 changes: 1 addition & 4 deletions schema/__generated__/schema.parsers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions schema/__generated__/schema.types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions schema/get-privacy-dashboard-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,10 @@
"emailProtectionUserData": {
"additionalProperties": false,
"type": "object",
"required": ["cohort", "nextAlias", "token", "userName"],
"required": ["nextAlias"],
"properties": {
"cohort": {
"type": "string"
},
"nextAlias": {
"type": "string"
},
"token": {
"type": "string"
},
"userName": {
"type": "string"
}
}
},
Expand Down

0 comments on commit 7312aea

Please sign in to comment.