Feature: Data mapping extension + aligning reference lists#18318
Merged
nielslyngsoe merged 112 commits intov15/devfrom Feb 20, 2025
Merged
Feature: Data mapping extension + aligning reference lists#18318nielslyngsoe merged 112 commits intov15/devfrom
nielslyngsoe merged 112 commits intov15/devfrom
Conversation
Base automatically changed from
v15/feature/display-current-variant-item-name
to
v15/dev
February 18, 2025 18:52
# Conflicts: # src/Umbraco.Web.UI.Client/src/packages/documents/documents/item/document-item-ref.element.ts
Member
There was a problem hiding this comment.
@madsrasmussen I just have one thing that I like you to consider and then I'm happy, I have read all the code and tested the various cases.
nielslyngsoe
approved these changes
Feb 20, 2025
This was referenced Sep 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build on top of #18311 - Review this first
This PR implements a fully dynamic approach to listing references in a document/media workspace supporting the polymorphic response from the server.
Until now, the reference lists have had a hardcoded solution with support for document, media, and member entities. With this PR, we use the entityRefItem extension to render a reference based on the entity type in the data.
The reference endpoint returns a "mixed" response, which can consist of multiple entity types. The endpoint doesn't specify the entity type of an entry but only the type of the response model. To prevent a hardcoded solution, the PR introduces a
dataMappingextension that can map any data based on an identifier in the data.Manifest:
Example: