payload icon indicating copy to clipboard operation
payload copied to clipboard

Depth parameter not working with `?locale=all`

Open fsyntax opened this issue 2 years ago • 5 comments

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

  1. Create two simple Pages
  2. 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
  3. Now visit http://localhost:3000/api/page/1?locale=de&draft=true&depth=1 - heroButtons[0].link.value contains i.e. _status
  4. Then visit http://localhost:3000/api/page/1?locale=all&draft=true&depth=1 - heroButtons.de/en[0].link.value only contains the page ID anymore, regardless of the given depth value

Payload Version

2.9.0

Adapters and Plugins

db-postgres, bundler-webpack

fsyntax avatar Feb 02 '24 08:02 fsyntax

Just for references: #2980 and #2987

fsyntax avatar Feb 14 '24 09:02 fsyntax

I'm facing the same issue, are there any news on this ?

Davidvision avatar Mar 20 '24 16:03 Davidvision

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!

webmestre-to avatar Apr 03 '24 22:04 webmestre-to

@fsyntax I wasn't able to reproduce this. Do you still have a repo with an example?

kendelljoseph avatar Oct 30 '24 18:10 kendelljoseph

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)

micru avatar Nov 12 '24 18:11 micru

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!

PatrikKozak avatar Nov 07 '25 17:11 PatrikKozak

@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.

PatrikKozak avatar Nov 14 '25 17:11 PatrikKozak

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Nov 22 '25 05:11 github-actions[bot]