core icon indicating copy to clipboard operation
core copied to clipboard

Multilingual content related slows down edit content screen

Open erickgonzalez opened this issue 2 years ago • 2 comments

Describe the bug

When you create content in diff locales and relate that content to any other content. When trying to open the "parent" content it takes longer to open because of the loading of the flags of the locale.

To Reproduce

Steps to reproduce the behavior:

  1. Create 33 languages
  2. Create a child content type (text field only)
  3. Create a parent content type (text field and relationship field to child)
  4. Create a child content with versions in each of the languages
  5. Create parent content and relate to the child.
  6. Save/Publish the parent.
  7. Open again the parent to edit, it takes around 1 sec to open the edit screen.
  8. Create another parent content, just fill the text field.
  9. Open again the parent to edit, it takes around 200ms to open the edit screen.

Expected behavior

Regardless of the number of locales and content versions, shouldn't take so long to open.

Reproducible in 22.03 LTS and demo (22.08). Customer ticket https://dotcms.zendesk.com/agent/tickets/108328

erickgonzalez avatar Sep 01 '22 15:09 erickgonzalez

PRs: #22943 #22956

nollymar avatar Sep 07 '22 21:09 nollymar

Looks good to me. Performance wise the dialog shows up with all the related elements timely. Less than 1 sec or so. Found another issue reported here https://github.com/dotCMS/core/issues/22961 The issue is reproducible on master therefore I am passing this

fabrizzio-dotCMS avatar Sep 12 '22 21:09 fabrizzio-dotCMS

Approved QA - Tested on 22.10_a3659b56_SNAPSHOT // Docker // macOS 12.6 FF v105

josemejias07 avatar Sep 29 '22 16:09 josemejias07