[MGNLUI-6724] Forms are always created for all languages Created: 28/May/21  Updated: 22/Sep/21  Resolved: 14/Jul/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.8
Fix Version/s: 6.2.11

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Done Votes: 0
Labels: performance
Remaining Estimate: Not Specified
Time Spent: 3.75h
Original Estimate: Not Specified

Issue Links:
causality
is causing MGNLPN-564 Preview As Visitor unusable if JVM de... Closed
is causing MGNLUI-6857 Cannot update only non-i18n fields Closed
is causing MGNLUI-6880 Cannot save dialogs in another langua... Closed
relation
is related to MAGNOLIA-7993 Improve throughput and performance un... Selected
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Date of First Response:
Epic Link: UI framework implementation
Sprint: UI FW 32
Story Points: 3

 Description   

Steps to reproduce

  1.  Define 50 languages in a site
  2.  Open a dialog in that site (e.g. a page properties dialog)

Expected results

  1. The dialog opening is as fast as I'd have one language per site as I want to edit just one or few languages, not all of them.

Actual results

  1. It takes a visibly long time to open the dialog.

Workaround

There doesn't seems to be a viable workaround except reducing number of languages.

Patch for M6.2.9

<dependency>
  <groupId>info.magnolia.ui</groupId>
  <artifactId>magnolia-ui-framework</artifactId>
  <version>6.2.9-MGNLUI-6724</version>
</dependency>

Development notes

The form fields are created in 50 variations in memory.

  • we can create it just for the current language
  • add next variation on language switch
  • what about validation, do we need to/should we validate untouched languages?


 Comments   
Comment by Roman Kovařík [ 15/Jul/21 ]

For release notes:

Forms in the new framework are not created eagerly for all available locales anymore but wait for user's switch to another language to improve performance.

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