Skip to content
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

CSV export of presentation values don't work since v9.12.0 - n:1 relation #14344

Closed
Lukas-Sachse opened this issue Jul 9, 2022 · 3 comments
Closed
Labels

Comments

@Lukas-Sachse
Copy link

Describe the Bug

I am using the CSV export for presentation values...
bug_csv_0

with these relational values ( "veranstaltung" and "veranstaltung.titel") from a n:1 relation:
bug_csv_1

Version 9.14.1:

bug_csv_2_9 14 1

Version 9.13.0:

bug_csv_3_9 13 0

Version 9.12.2:

bug_csv_3_9 12 2

Version 9.11.1:

bug_csv_4_9 11 1

To Reproduce

  1. Create a n:1 relation with display of relational values
  2. Use the "quick CSV export for presentation values"
  3. take a look at the exported values and compare with the presentation values
  4. try different versions of directus and repeat step 2 and 3

In v9.11.1 it should work as expected. In all versions since 9.12.0 it doesn't work anymore.

Errors Shown

No response

What version of Directus are you using?

9.14.1

What version of Node.js are you using?

16.13.0

What database are you using?

Postgres 13

What browser are you using?

Vivaldi (Chromium)

How are you deploying Directus?

Local, PaaS (Render - Web Service)

@abernh
Copy link
Contributor

abernh commented Sep 30, 2022

This problem still exists in 9.18.1 running on Directus Standard Cloud.

In my case I am missing the values for 2 fields with set relative display values

  • n:1 relation field - collection_b.name
  • file field - {{filename_download}}  (  {{filesize}}  )

This is also not a permission issue as this is happening for admin roles as well.

abernh added a commit to abernh/directus that referenced this issue Sep 30, 2022
…on state level

was only on view component before and therefore aliased values were displayed
in table layout but missing on export to CSV

rel: directus#14344
@rijkvanzanten
Copy link
Member

Linear: ENG-232

@hanneskuettner
Copy link
Contributor

hanneskuettner commented May 7, 2024

This seems to have been fixed in the mean-time and doesn't surface anymore in Directus v10.10.7. Following the reproduction of setting up one collection with a M2O relation, selecting the related column and a field of the related value they all show up in the exported CSV exported through the quick export button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

5 participants