-
Notifications
You must be signed in to change notification settings - Fork 0
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
MWPW-151250: Implemented filtering cards by partner level #14
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## stage #14 +/- ##
==========================================
- Coverage 85.28% 83.73% -1.55%
==========================================
Files 8 8
Lines 2460 2509 +49
==========================================
+ Hits 2098 2101 +3
- Misses 362 408 +46 ☔ View full report in Codecov by Sentry. |
eds/components/PartnerCards.js
Outdated
try { | ||
let cookies = document.cookie.split(';').map(cookie => cookie.trim()); | ||
let partnerDataCookie = cookies.find(cookie => cookie.startsWith('partner_data=')); | ||
if (!partnerDataCookie) return ''; |
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 we need a public tag to handle this case, but I did not create it yet...
…s; added portal and component specific collectionTags
Resolves: MWPW-151250 and MWPW-151916
***Example with collection tags authored ('public' tag for complexQuery will be added whether the cooke is set or not; if the cookie is set, an additional tag for complexQuery, depending on the cookie/level, will be added. For collectionsTags, the portal specific tag (caas:adobe-partners/spp), component specific tag (caas:adobe-partners/collections/news), and all authored tags should be added):
Before:
https://stage--dx-partners--adobecom.hlx.page/solutionpartners/drafts/dragana/partner-news-collection-tags
After:
https://mwpw-151250-partner-lvl-cards--dx-partners--adobecom.hlx.page/solutionpartners/drafts/dragana/partner-news-collection-tags
***Without collection tags authored:
Before:
https://stage--dx-partners--adobecom.hlx.page/solutionpartners/drafts/dragana/partner-news
After:
https://mwpw-151250-partner-lvl-cards--dx-partners--adobecom.hlx.page/solutionpartners/drafts/dragana/partner-news
***Example of the page with an incorrect portal (complexQuery will not be added, and for collectionTags if not authored caas:adobe-partners/${portal} will not be added:
Before: https://stage--dx-partners--adobecom.hlx.page/SPP/drafts/dragana/partner-news
After: https://mwpw-151250-partner-lvl-cards--dx-partners--adobecom.hlx.page/SPP/drafts/dragana/partner-news
Keep in mind that partner_data cookie needs to be set manually for now.