Skip to content

♻️ Conformance check allowlist#28778

Merged
kristoferbaxter merged 7 commits intoampproject:masterfrom
kristoferbaxter:conformance-allowlist
Jun 10, 2020
Merged

♻️ Conformance check allowlist#28778
kristoferbaxter merged 7 commits intoampproject:masterfrom
kristoferbaxter:conformance-allowlist

Conversation

@kristoferbaxter
Copy link
Contributor

Enforce usage of allowlist instead of other terms.

@kristoferbaxter kristoferbaxter requested review from caroqliu and rsimha and removed request for rsimha June 9, 2020 19:44
@amp-owners-bot
Copy link

amp-owners-bot bot commented Jun 9, 2020

Hey @jeffkaufman! These files were changed:

extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js

Hey @gmajoulet, @newmuis, @Enriqe! These files were changed:

extensions/amp-story/0.1/amp-story-consent.js
extensions/amp-story/0.1/amp-story-grid-layer.js
extensions/amp-story/0.1/amp-story.js
extensions/amp-story/0.1/origin-allowlist.js
extensions/amp-story/0.1/test/test-amp-story-consent.js
extensions/amp-story/0.1/test/test-amp-story.js
extensions/amp-story/0.1/test/test-origin-allowlist.js
extensions/amp-story/1.0/amp-story-access.js
extensions/amp-story/1.0/amp-story-consent.js
extensions/amp-story/1.0/amp-story-grid-layer.js
extensions/amp-story/1.0/amp-story-store-service.js
extensions/amp-story/1.0/amp-story.js
extensions/amp-story/1.0/test/test-amp-story-access.js
extensions/amp-story/1.0/test/test-amp-story-consent.js
extensions/amp-story/1.0/test/test-amp-story-store-service.js
extensions/amp-story/1.0/test/test-amp-story.js
extensions/amp-story/validator-amp-story.protoascii

Hey @ampproject/wg-caching! These files were changed:

validator/engine/htmlparser.js
validator/engine/validator.js
validator/engine/validator_test.js
validator/java/src/main/java/dev/amp/validator/utils/TagSpecUtils.java
validator/java/src/main/proto/validator.proto
validator/testdata/feature_tests/ads.html
validator/testdata/feature_tests/ads.out
validator/testdata/feature_tests/mandatory_dimensions.html
validator/testdata/feature_tests/mandatory_dimensions.out
validator/testdata/feature_tests/no_custom_js.html
validator/testdata/feature_tests/no_custom_js.out
validator/validator-css.protoascii
validator/validator-main.protoascii
validator/validator.pb.go
validator/validator.proto

Copy link
Contributor

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

Everything else LGTM.

/** @const @enum {string} */
export const Action = {
ADD_TO_ACTIONS_WHITELIST: 'addToActionsWhitelist',
ADD_TO_ACTIONS_ALLOWLIST: 'addToActionsAllowlist',
Copy link
Contributor

Choose a reason for hiding this comment

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

Changes to this file need @ampproject/wg-stories approval. I can't verify if this enum string is leaked to external code, or if this is truly internal.

Copy link
Contributor Author

@kristoferbaxter kristoferbaxter Jun 9, 2020

Choose a reason for hiding this comment

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

Adding a @ampproject/wg-stories member (@gmajoulet) to review.

@kristoferbaxter kristoferbaxter requested a review from gmajoulet June 9, 2020 20:31
Copy link
Contributor

@caroqliu caroqliu left a comment

Choose a reason for hiding this comment

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

LGTM, but needs a global replace for "a allowlist" to "an allowlist"

urlReplacements = {
expandUrlAsync: window.sandbox.stub(),
collectUnwhitelistedVarsSync: window.sandbox.stub(),
collectUnallowlistedVarsSync: window.sandbox.stub(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't have to be addressed now but it's worth noting there is some inconsistency throughout with regards to "unallowlisted" versus "nonallowlisted"

@lgtm-com
Copy link

lgtm-com bot commented Jun 9, 2020

This pull request introduces 1 alert when merging c1df0ad into 2121908 - view on LGTM.com

new alerts:

  • 1 for Syntax error

Copy link
Contributor

@gmajoulet gmajoulet left a comment

Choose a reason for hiding this comment

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

Story code LGTM.


The AMP-Consent extension provides publishers the ability to collect and store a user's consent through a UI control, while also providing the ability to block other AMP components based on the user's consent. See [here for documentation](https://github.com/ampproject/amphtml/blob/master/extensions/amp-consent/amp-consent.md).

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and below: merge conflicts

Copy link
Member

@calebcordry calebcordry left a comment

Choose a reason for hiding this comment

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

Ads LGTM.

*/
expandSyncIfAllowList_(href, allowList) {
return allowList
expandSyncIfAllowedList_(href, allowlist) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think we are using allowlisted elsewhere.


/** @const {!Object<string, boolean>} */
const WHITELISTED_RPOPS = {
const ALLOWLISTED_RPOPS = {
Copy link
Member

@samouri samouri Jun 10, 2020

Choose a reason for hiding this comment

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

ahhhhh RPOPSSSSSSSSSS --> PROPS

sorry for the driveby but this typo had me chuckling 😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's amazing, absolutely didnt notice.

@kristoferbaxter kristoferbaxter merged commit feb792f into ampproject:master Jun 10, 2020
@kristoferbaxter kristoferbaxter deleted the conformance-allowlist branch June 10, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.