Depth parameter not working with `?locale=all`
Link to reproduction
https://github.com/fsyntax/payload/tree/locale-depth
Describe the Bug
The depth parameter doesnt seem to have any impact when fetching collections with locale=all.
To Reproduce
- Create two simple Pages
- Create a Hero Block inside one of the pages and add a button in an array field for both locales and link it to the second page
- Now visit
http://localhost:3000/api/page/1?locale=de&draft=true&depth=1-heroButtons[0].link.valuecontains i.e._status - Then visit
http://localhost:3000/api/page/1?locale=all&draft=true&depth=1-heroButtons.de/en[0].link.valueonly contains the page ID anymore, regardless of the given depth value
Payload Version
2.9.0
Adapters and Plugins
db-postgres, bundler-webpack
Just for references: #2980 and #2987
I'm facing the same issue, are there any news on this ?
I am also having this exact issue with relationships not being populate when using locale=all. I must choose between making multiple calls to the database to fill in the missing data or loading each locale individually. Thanks for updating us!
@fsyntax I wasn't able to reproduce this. Do you still have a repo with an example?
Any news on this? We also face this issue in the latest (stable) Version 2.30.4.
Its a showstopper for us.
Easy reproducable as described in the inital issue description (just set locale=all)
Hey @fsyntax - could you check if this issue is still reproducible in v3? If so, please update this thread or open a new issue referencing this one.
We’ll be closing out older v2 issues soon as we transition our focus solely to v3 and future releases. Thanks!
@fsyntax Closing this now per my comment above. Please feel free to open a new issue referencing this one if you are able to reproduce this in v3.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.