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

Export entity references both as id and as human-readable toString #2295

Merged
merged 15 commits into from
Apr 12, 2024

Conversation

christophscheuing
Copy link
Contributor

closes: #2151

Copy link

Deployed to https://pr-2295.aam-digital.net/

@christophscheuing christophscheuing marked this pull request as ready for review April 4, 2024 18:17
if (columnLabels.has(key + "_readable")) {
const relatedEntitiesIds: string[] = Array.isArray(item[key])
? item[key]
: item[key].split();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why split here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The item[key].split() was meant to build an array containing the string as single value. But [item[key]] is simpler and shorter.

Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!
Works well and looks clean.

@sleidig sleidig merged commit 0abd547 into master Apr 12, 2024
6 of 7 checks passed
@sleidig sleidig deleted the also_export_toString_for_entities_in_download_service branch April 12, 2024 07:43
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.35.0-master.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released on @master managed by CI (semantic-release) label Apr 12, 2024
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.35.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released managed by CI (semantic-release) label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @master managed by CI (semantic-release) released managed by CI (semantic-release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export entity references both as id and as human-readable toString
3 participants