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

Laterpay validator config #6974

Merged
merged 3 commits into from
Jan 13, 2017
Merged

Laterpay validator config #6974

merged 3 commits into from
Jan 13, 2017

Conversation

dvoytenko
Copy link
Contributor

@dvoytenko dvoytenko commented Jan 11, 2017

tag_name: "SCRIPT"
spec_name: "amp-access-laterpay extension .js script"
mandatory_parent: "HEAD"
unique_warning: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is new, this shouldn't be a warning. Set as unique: true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

spec_name: "amp-access-laterpay extension .js script"
mandatory_parent: "HEAD"
unique_warning: true
also_requires_tag: "amp-access extension .js script"
Copy link
Contributor

Choose a reason for hiding this comment

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

The markup from #5920 mentions amp-analytics as also being a required script. If so then we should add another also_requires_tag here.
also_requires_tag: "amp-analytics extension .js script"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well. The dependency chain is amp-access-layerpay -> amp-access -> amp-analytics. Should I expand transitive dependencies here? Also, we're trying to remove amp-access -> amp-analytics dependency.

@@ -0,0 +1,71 @@
<!--
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like an exact copy of the one for amp-access. Could this be updated with actual code that would be used in a amp-access-laterpay situation? Perhaps from the markup in #5920?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added couple things, such as amp-access-laterpay script and vendor config. There's not much in terms of requirements here. Also, I imagine we may add a couple more things. One thing, for instance, we could add id=amp-access-laterpay-dialog requirement. Do you think it'd be good to add it in validator?

On the other hand, laterpay vendor config might be hard to enforce since we don't have JSON rules, do we?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for not responding earlier. We currently don't have a mechanism to enforce an attribute across all tags given if another tag exists. It would be possible if the attribute was limited to a single or small set of elements.

error_message: "contents"
}
}
spec_url: "https://www.ampproject.org/docs/reference/extended/amp-access-laterpay.html"
Copy link
Contributor

Choose a reason for hiding this comment

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

This url 404s. When ampproject.org doesn't have an appropriate page we tend to link directly to the github markup that would have similar content to what shows up eventually on ampproject.org. In this instance that should end up being https://github.com/ampproject/amphtml/blob/master/extensions/amp-access-laterpay/amp-access-laterpay.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have that one yet either :) Will be added by #5920 and should be auto-deployed to ampproject.org. I switched to github url for now, since it will be available sooner.

@dvoytenko
Copy link
Contributor Author

@honeybadgerdontcare PTAL.

@dvoytenko dvoytenko merged commit f17c0f5 into ampproject:master Jan 13, 2017
@dvoytenko dvoytenko deleted the laterpay2 branch January 13, 2017 04:57
rpominov pushed a commit to yandex-pcode/amphtml that referenced this pull request Jan 20, 2017
* master: (310 commits)
  Update csa.md to remove non-required parameters (ampproject#6902)
  Add notes about requesting ads ATF and link to demo (ampproject#7037)
  Remove whitelist for lightbox scrollable validator (ampproject#7034)
  Delegate submit events until amp-form is loaded  (ampproject#6929)
  Moves closure sha384 into a new extension amp-crypto-polyfill for lazy load (ampproject#7006)
  Refactor observables in viewer-impl into a map object (ampproject#7004)
  resizing of margins (ampproject#6824)
  Use URL replacer from embed for pixel (ampproject#7029)
  adds support for Gemius analytics (ampproject#6558)
  Avoid duplicating server-layout (ampproject#7021)
  Laterpay validator config (ampproject#6974)
  Validator rollup (ampproject#7023)
  skeleton for amp-tabs (ampproject#7003)
  Upgrade post-css and related packages to latest (ampproject#7020)
  handle unload (ampproject#7001)
  viewer-integr.js -> amp-viewer-integration (ampproject#6989)
  dev().info()->dev().fine() (ampproject#7017)
  Turned on experiment flag (ampproject#6774)
  Unlaunch ios-embed-wrapper for iOS8 to avoid scroll freezing issues (ampproject#7018)
  Add some A4A ad request parameters (ampproject#6643)
  ...
jridgewell pushed a commit to jridgewell/amphtml that referenced this pull request Jan 31, 2017
* Laterpay validator config

* test files

* review fixes
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
* Laterpay validator config

* test files

* review fixes
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.

None yet

3 participants