[MGNLUI-6484] EditorProperty i18n key is not generated properly Created: 23/Dec/20  Updated: 25/May/21

Status: Open
Project: Magnolia UI
Component/s: framework
Affects Version/s: 6.2.5, 6.2.6, 6.2.7, 6.2.8, 6.2.9
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Quach Hao Thien Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-12-23-17-06-20-478.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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Steps to reproduce

 Key for EditorProperty is missing subapp, e.g:

 

stories.yaml
subApps:
  detail:
    form:
      properties:
        title:
          $type: textField

i18n key generated for the label of title field: stories.title.label

Expected results

i18n key generated for the label of title field should include:

stories.detail.title.label

stories.detail.form.title.label

Actual results

i18n key is missing parents

Workaround

Development notes

Debug on EditorPropertyDefinitionKeyGenerator, and we can see that the parentNames after processed is not as we expect


Generated at Mon Feb 12 09:36:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.