[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 |
||
| Attachments: |
|
| 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.
|