[MGNLREST-508] Remove unresolved items (instead of outputting the id as a string) Created: 27/Sep/22  Updated: 27/Sep/22

Status: Open
Project: Magnolia REST Framework
Component/s: delivery
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Pierre Sandrin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia DX-Core 6.2.20
Rest content delivery 2.2.14


Attachments: PNG File Bildschirmfoto 2022-09-27 um 17.42.04.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

When you define a jcrReferenceResolver in a delivery endpoint and the id cannot be resolved, (maybe because it was deleted) the JSON contains the id as a string instead of the Object. (See screenshot)

This is not useful and you have to do a lot of error checking in the consuming client (SPA).

Better would be to remove the item completely or even better to add a property where you can configure how the jcrReferenceResolver should handle unresolvable items.

This would make the life easier for the FE devs and increase their appreciation for Magnolia a lot.

 


Generated at Mon Feb 12 07:00:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.