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
✨Apester Media (extension): Added meta tags extraction #17305
✨Apester Media (extension): Added meta tags extraction #17305
Conversation
… title for better contextual matching
This pull request introduces 1 alert when merging 1833d22 into 9cee51b - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging 3832deb into 9cee51b - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging 875bcc8 into 9cee51b - view on LGTM.com new alerts:
Comment posted by LGTM.com |
Hi @aghassemi, We extract part of it's content to in order to improve our automatic contextual matching (which is the common implementation of the Apester units). In addition I've updated the Apester loader and fixed an issue where we didn't remove the component when there was no content. Thanks! |
This pull request introduces 1 alert when merging 23725e5 into 9cee51b - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging ff3ad24 into 9c05a22 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
Codecov Report
@@ Coverage Diff @@
## master #17305 +/- ##
==========================================
+ Coverage 77.44% 77.44% +<.01%
==========================================
Files 565 565
Lines 41422 41472 +50
==========================================
+ Hits 32079 32118 +39
- Misses 9343 9354 +11
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging b3a8c80 into f381235 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging c01fdd6 into 86ae732 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging 48253b5 into 7259114 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging c1bfb60 into 7259114 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging ced2e70 into 7259114 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging 488892e into 4e59eb5 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert when merging 9682bb3 into 59bd094 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
build-system/tasks/karma.conf.js
Outdated
@@ -228,7 +228,7 @@ module.exports = { | |||
timeout: process.env.TRAVIS ? 10000 : 2000, | |||
}, | |||
captureConsole: true, | |||
verboseLogging: false, | |||
verboseLogging: true, |
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.
revert
@@ -137,7 +140,7 @@ class AmpApesterMedia extends AMP.BaseElement { | |||
(this.random_ = this.element.getAttribute( | |||
'data-apester-channel-token' | |||
)), | |||
'Either the data-apester-media-id or the data-apester-channel-token ' + | |||
'Either the data-apester-media-id or the data-apester-channel-token' + |
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.
add space at the end of sentence (broken concatenation)
* @return {!Array<string>} | ||
*/ | ||
export function extratctTitle(root) { | ||
const scriptTags = root.querySelectorAll( |
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.
You can use toArray
from type.js
here and then no longer need to do Array.prototype.map
… to types/toArray
…phtml into feature/contextual-random-unit
Hi @aghassemi, Thanks for reviewing! Could you please review it again? |
@OmriKeret merged. |
Added the ability to extract article keywords & title
Due to increasing number of adapters of the AMP framework among publishers (as a complete desktop + mobile solution)we added the ability to extract article's meta keyword and title