Bug 1927311 - Performance: Console makes unnecessary requests for en-US messages on load
Summary: Performance: Console makes unnecessary requests for en-US messages on load
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.z
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On: 1927310
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-10 13:55 UTC by OpenShift BugZilla Robot
Modified: 2021-04-05 13:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Improve console load performance by avoiding unnecessary network requests that 404 when the user's locale is set to en-US.
Clone Of:
Environment:
Last Closed: 2021-04-05 13:55:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8128 0 None open [release-4.7] Bug 1927311: avoid 404 errors attempting to load en-US 2021-02-20 09:00:37 UTC
Red Hat Product Errata RHSA-2021:1005 0 None None None 2021-04-05 13:56:09 UTC

Description OpenShift BugZilla Robot 2021-02-10 13:55:36 UTC
+++ This bug was initially created as a clone of Bug #1927310 +++

Console supports English messages using the `en` language only. We don't have separate messages for locales like `en-US` and `en-GB`. Currently, the way i18next is configured, console tries to get the `en-US` messages first, which causes dozens of 404 network requests. It doesn't result in any user-visible errors, but it slows down console load, particularly since browser limit how many requests can be made in parallel. This can slow down console load by more than a second in some cases.

We should configure i18next to use the language-only when requesting a namespace to avoid the unnecessary requests.

Comment 5 Yadan Pei 2021-03-29 08:13:25 UTC
No locales/en-US request message now on console loads, verified on 4.7.0-0.nightly-2021-03-27-082615

Comment 7 errata-xmlrpc 2021-04-05 13:55:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.5 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1005


Note You need to log in before you can comment on or make changes to this bug.