Skip to content
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

Merged

Conversation

keithwrightbos
Copy link
Contributor

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.

@@ -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');
Copy link
Contributor

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];
Copy link
Contributor

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(
Copy link
Contributor

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 @@
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keithwrightbos keithwrightbos merged commit 0a7e981 into ampproject:master Jun 5, 2018
@keithwrightbos keithwrightbos deleted the dblclk_ff_config_cleanup branch June 5, 2018 14:03
AmazonPublisherServices pushed a commit to AmazonPublisherServices/amphtml that referenced this pull request Jun 5, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants