New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubleclick remove fast fetch upgrade predicate #15804
Doubleclick remove fast fetch upgrade predicate #15804
Conversation
@@ -638,7 +638,7 @@ describe('amp-a4a', () => { | |||
describe('illegal render mode value', () => { | |||
let devErrLogSpy; | |||
beforeEach(() => { | |||
devErrLogSpy = sandbox.spy(dev(), 'error'); | |||
devErrLogSpy = sandbox.stub(dev(), 'error'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devErrLogStub
// SRA | ||
'7': DOUBLECLICK_EXPERIMENT_FEATURE.SRA_CONTROL, | ||
'8': DOUBLECLICK_EXPERIMENT_FEATURE.SRA, | ||
}[urlExperimentId]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not crazy about this, I think adding an extra line for readability is nicer.
} | ||
|
||
/** @override */ | ||
buildCallback() { | ||
super.buildCallback(); | ||
const warnDeprecation = feature => user().warn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all this warn deprecation stuff would be nicer in its own method and then just call that, rather than cluttering buildCallback with stuff that doesn't have any importance there really.
@@ -1,216 +0,0 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* initial commit * initial commit * fix compile error * fix experiment to url mapping * fix tests * remove ampdoc requirement * complete test fixes * revert changes to traffic-experiments * fix type check error * PR feedback * fix test failure
Part of delayed fetch deprecation cleanup, remove doubleclick-a4a-config.js as all slots are not Fast Fetch eligible. Also clean up older experiments and unused code paths.