-
Notifications
You must be signed in to change notification settings - Fork 45
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
feat: add support for Newspack Guest Contributor in HPP blocks #1934
Conversation
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'm not sure why it's happening, but when I have ElasticSearch enabled for HPP and Carousel blocks the posts aren't getting fetched for me on the front-end. It works as expected in the editor:
But the front-end shows 0 posts for both blocks. I confirmed that the query args are the same in both contexts, and I only have a single Guest Contributor user who's assigned to a single post (but these were created/assigned many weeks ago, so they should be indexed for ElasticSearch by now). Paging @miguelpeixe who worked on the ES integration in case it's obvious to you.
Looks like requests in the admin are not offloaded to ES. I'm struggling to test this. @miguelpeixe could you have a look? |
@dkoo To be fair, this PR does not touch the Query for posts. It only touches the query for authors in the Authors filter input... |
I may have misunderstood the issue. It works in the editor but on the front-end. If you have ES enabled for Newspack Blocks that might be a new uncovered incompatibility. We should flag that in Asana for further exploration. |
The ES incompatibility might be in |
They are not CAP authors. It's just another user role. But they are regular wp users |
afaik queries are not offloaded to ES in the admin, only in the front end |
@dkoo can you have a look again, without the ES integration? I've updated this branch with the latest trunk, there were some fixes there. Things work ok on my end. I'll work on another PR to make sure that the queries that have the SQL statement filtered will not be offloaded to ES. EDIT: actually it was a one liner so I added in 1d1b168 - depends on https://github.com/Automattic/newspack-manager/pull/301 |
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.
Working now with https://github.com/Automattic/newspack-manager/pull/301!
@leogermani looks like we need to account for the new query param in the unit tests |
Fixed |
Hey @leogermani, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
# [4.5.0-alpha.1](v4.4.0...v4.5.0-alpha.1) (2024-11-29) ### Bug Fixes * also search for coauthor posts by term slug ([#1954](#1954)) ([49357ff](49357ff)) * **ras-acc:** correct spacing issue around saved credit cards ([#1980](#1980)) ([52a5c57](52a5c57)) * **ras-acc:** fix display issues with Additional Fields ([#1979](#1979)) ([b9390ef](b9390ef)) * **ras-acc:** remove space caused by empty divs ([#1978](#1978)) ([8cb6ead](8cb6ead)) ### Features * add Bluesky support to the Author Profile, List blocks ([#1969](#1969)) ([d26a7e4](d26a7e4)) * add support for Newspack Guest Contributor in HPP blocks ([#1934](#1934)) ([c16849e](c16849e)) * merge RAS-ACC work into trunk ([#1977](#1977)) ([2eeaa89](2eeaa89))
🎉 This PR is included in version 4.5.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [4.5.0](v4.4.0...v4.5.0) (2024-12-09) ### Bug Fixes * also search for coauthor posts by term slug ([#1954](#1954)) ([49357ff](49357ff)) * **modal-checkout:** allow all gateway assets ([#1988](#1988)) ([e371e30](e371e30)) * **modal-checkout:** handle paypal ([#1985](#1985)) ([9bb2b8c](9bb2b8c)) * **ras-acc:** correct spacing issue around saved credit cards ([#1980](#1980)) ([52a5c57](52a5c57)) * **ras-acc:** fix display issues with Additional Fields ([#1979](#1979)) ([b9390ef](b9390ef)) * **ras-acc:** remove space caused by empty divs ([#1978](#1978)) ([8cb6ead](8cb6ead)) * remove reCaptcha for WooCommere code from modal checkout ([#1984](#1984)) ([8e250eb](8e250eb)) ### Features * add Bluesky support to the Author Profile, List blocks ([#1969](#1969)) ([d26a7e4](d26a7e4)) * add CSS class to variation buttons for tracking ([#1989](#1989)) ([910e6b1](910e6b1)) * add support for Newspack Guest Contributor in HPP blocks ([#1934](#1934)) ([c16849e](c16849e)) * merge RAS-ACC work into trunk ([#1977](#1977)) ([2eeaa89](2eeaa89))
🎉 This PR is included in version 4.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Adds support for the Newspack's Guest Contributor role in the Homepage posts and Carousel blocks
How to test the changes in this Pull Request:
Other information: