[MAGNOLIA-6805] JcrConfigurationSource: untie the definition raw view computation from the N2B conversion Created: 07/Oct/16  Updated: 27/Oct/16

Status: Open
Project: Magnolia
Component/s: None
Affects Version/s: 5.4.9
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-6743 Aggregate problems during Node2Bean c... Closed
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   

This implies ditching the JcrConfigurationSource.RawViewProducingNode2BeanTransformer. There are several reasons for that:

  • it is complicated to both use the ToBeanTransformer API provided by N2B processor and pass a custom N2B transformer to it (helper API will be present for that in the mean time)
  • if N2B transformation fails for some reason - the raw view might be incomplete
  • It is complex - there're several workarounds and overall some fuzzy logic in that class. It would be much simpler to walk the node tree separately from N2B transformation and compute the raw view directly from the JCR data (some possible concerns though might include type clashes)

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