Wesley Barroso Lopes
Wesley Barroso Lopes
This PR fix yet another problem that occurs today. Today, if you create a listing block without filling in the search criteria and save, it will return the contents of...
> the folder content items now receive more brain data, there's an extra request on all folder contents. @tiberiuichim current templates work fine with basic metadata. Then we can change...
I saw a problem with this implementation. When we are going to add new content, the [initialPath](https://github.com/plone/volto/blob/0f459fed33d72826696c1aae5bb40f220485acb4/src/components/manage/Blocks/Listing/withQuerystringResults.jsx#L33) will be the current folder, since the content we are adding has not...
@pnicolli It seems the issue has been fixed, but not for all situations. See @mliebischer' comment: https://github.com/plone/volto/issues/3839#issuecomment-2637410384 I think the way it is here would fix those problems. So I...
> @wesleybl would you please resolve the conflicts and push? Thank you! @stevepiercy I fixed the conflicts and updated the branch. I also fixed https://github.com/plone/volto/pull/3866#issuecomment-1428193405 by testing inside `useDeepCompareEffect`.
@stevepiercy @sneridagh @pnicolli I updated the branch and fixed the tests. It's ready for review.
> All breaking changes must have an entry in the [Upgrade Guide](https://6.docs.plone.org/volto/upgrade-guide/index.html), per https://6.docs.plone.org/volto/contributing/index.html#document-breaking-changes I still have doubts about whether this is a breaking change. The way of doing search...
> I see the urge to not break the current behaviour: Show contained items, if no criteria given. @ksuess this behavior has not changed. Only the way of doing the...
See the behavior with this PR. I will change it to bugfix. [recording (1).webm](https://github.com/user-attachments/assets/32fa8bbc-6b96-4eaa-867c-b683e5d5006f)
@sneridagh @tiberiuichim @pnicolli Can I change these changes to bugfix instead of breacking? The way to do the search has changed but the end result is the same.