-
Notifications
You must be signed in to change notification settings - Fork 219
Fix an endless loop when using product grid blocks inside product descriptions #6471
Fix an endless loop when using product grid blocks inside product descriptions #6471
Conversation
Size Change: +3.17 kB (0%) Total Size: 865 kB
ℹ️ View Unchanged
|
Thanks for the review, @albarin! I'm holding off on merging this PR based on this comment, in case we need to make any additional changes here. |
Had a quick look at this and thinking - if we remove the post id from the query, should we re-add the post from I think the way it works with the change is it would exclude such post and it would be missing from results even if it was requested explicitly with |
You're right, @tomasztunik!
That makes sense to me, did you investigate how that could be done? While I believe it's a great idea, I think we should keep in mind we are fixing a bug for an unsupported edge case, so I would be wary to spend too much time on this if the solution is not straight-forward. |
Didn't really look into the implementation - I agree that this fix is still better than the app crashing. We might want to open up a follow-up issue to track the side-effect of this fix where we could continue the conversation if we should seek to cover this edge case. |
The e2e failure with the wrong number of products returned for the filter by price is unrelated? seems odd failure for a flaky test? |
Hmmm, that's weird. Tests are passing for me locally, and I see the same test is failing in another unrelated PR (#6505), so I would say it's unrelated. Also, I don't think filter blocks make use of |
Hey @Aljullu - I was LMAFK last week - I'll make sure to reply to your comment today/tomorrow and possibly add one more commit to bring the "parent". |
@Aljullu all good - no need for a revision check 👉 #6454 (comment) |
Works-around #6416 in the frontend.
Inspired by #6454.
Testing
Automated Tests
User Facing Testing
functions.php
of your theme):WooCommerce Visibility
Changelog