Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: load all dashboard-related chunks #965

Merged
merged 1 commit into from
Oct 31, 2023
Merged

chore: load all dashboard-related chunks #965

merged 1 commit into from
Oct 31, 2023

Conversation

dkwon17
Copy link
Contributor

@dkwon17 dkwon17 commented Oct 27, 2023

What does this PR do?

Loads all dashboard UI chunks when accessing the dashboard. This will prevent the user from seeing this error: eclipse-che/che#22230

When comparing to lazy loading, there is a 0.09mb of difference in terms of resource transfer size when loading: {CHE-HOST}/dashboard/#/create-workspace
Lazy loading (left): 3.04mb
No lazy loading (right): 3.15mb
Screenshot from 2023-10-27 13-04-06

What issues does this PR fix or reference?

eclipse-che/che#22230

Is it tested? How?

  1. Go to {CHE-HOST}/dashboard/#/create-workspace
  2. In a new tab, log out of the dashboard
  3. Go back to the first tab (ie from step 1) and on the left-hand side, click, 'Workspaces'.
  4. There should be no Error: Loading CSS chunk (...) failed. error
lazyload.webm

Release Notes

Docs PR

@che-bot
Copy link
Contributor

che-bot commented Oct 27, 2023

Click here to review and test in web IDE: Contribute

@dkwon17 dkwon17 marked this pull request as draft October 27, 2023 16:08
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #965 (a698fb9) into main (ce115df) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #965   +/-   ##
=======================================
  Coverage   84.70%   84.70%           
=======================================
  Files         363      363           
  Lines       37503    37503           
  Branches     2444     2440    -4     
=======================================
  Hits        31768    31768           
  Misses       5707     5707           
  Partials       28       28           
Flag Coverage Δ
unittests 84.70% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/dashboard-frontend/src/Routes/index.tsx 90.90% <100.00%> (ø)

@github-actions
Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-965

@dkwon17 dkwon17 marked this pull request as ready for review October 27, 2023 21:39
@openshift-ci
Copy link

openshift-ci bot commented Oct 31, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, dkwon17, ibuziuk

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ibuziuk ibuziuk merged commit a8820af into main Oct 31, 2023
12 checks passed
@ibuziuk ibuziuk deleted the remove-lazy-load branch October 31, 2023 09:17
@devstudio-release
Copy link

Build 3.10 :: dashboard_3.10/8: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: dashboard_3.x/380: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: dashboard_3.x/380: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5141 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.10 :: update-digests_3.10/69: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.10 :: dashboard_3.10/8: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.10/75 triggered

@devstudio-release
Copy link

@dmytro-ndp dmytro-ndp self-requested a review October 31, 2023 10:30
@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was no error message Error: Loading CSS chunk 922 failed. when I followed test scenario from PR description with Eclipse Che Next dashboard deployed from quay.io/eclipse/che-dashboard:pr-965 container image:
screencast-bpconcjcammlapcogcnnelfmaeghhagj-2023.10.31-12_37_29.webm

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: sync-to-downstream_3.x/5142: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/5004 triggered; /job/DS_CI/job/dsc_3.x triggered;

@devstudio-release
Copy link

Build 3.11 :: operator-bundle_3.x/2240: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5142 triggered

@devstudio-release
Copy link

Build 3.11 :: copyIIBsToQuay/2040: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: update-digests_3.x/4757: SUCCESS

Detected new images: rebuild operator-bundle
* dashboard; /DS_CI/operator-bundle_3.x/2240 triggered

@devstudio-release
Copy link

Build 3.11 :: dsc_3.x/1506: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.10 :: sync-to-downstream_3.10/77: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.10/76 triggered; /job/DS_CI/job/dsc_3.10 triggered;

@devstudio-release
Copy link

Build 3.10 :: operator-bundle_3.10/25: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.10/77 triggered

@devstudio-release
Copy link

Build 3.10 :: copyIIBsToQuay/2041: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.10 :: dsc_3.10/16: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.10 :: update-digests_3.10/69: SUCCESS

Detected new images: rebuild operator-bundle
* dashboard; /DS_CI/operator-bundle_3.10/25 triggered

@devstudio-release
Copy link

Build 3.11 :: copyIIBsToQuay/2040: SUCCESS

3.11
arches = x86_64, s390x, ppc64le;
  * LATEST DS OPERATOR BUNDLE = <a href=https://quay.io/repository/devspaces/devspaces-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devspaces-operator-bundle:3.11-15
  * LATEST DWO OPERATOR BUNDLE = <a href=https://quay.io/repository/devworkspace/devworkspace-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devworkspace-operator-bundle:0.21-7
+ x86_64-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.11-v4.14-611735-533291-x86_64
  + quay.io/devspaces/iib:3.11-v4.14-x86_64
  + quay.io/devspaces/iib:next-v4.14-x86_64
  + quay.io/devspaces/iib:3.11-v4.13-611727-533286-x86_64
  + quay.io/devspaces/iib:3.11-v4.12-611725-533281-x86_64
  + quay.io/devspaces/iib:3.11-v4.11-611719-533277-x86_64
  + quay.io/devspaces/iib:3.11-v4.11-x86_64
  + quay.io/devspaces/iib:next-v4.11-x86_64
+ s390x-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.11-v4.14-611735-533291-s390x
  + quay.io/devspaces/iib:3.11-v4.14-s390x
  + quay.io/devspaces/iib:next-v4.14-s390x
  + quay.io/devspaces/iib:3.11-v4.13-611727-533286-s390x
  + quay.io/devspaces/iib:3.11-v4.13-s390x
  + quay.io/devspaces/iib:next-v4.13-s390x
  + quay.io/devspaces/iib:3.11-v4.12-611725-533281-s390x
  + quay.io/devspaces/iib:3.11-v4.11-612074-533277-s390x
  + quay.io/devspaces/iib:3.11-v4.11-s390x
  + quay.io/devspaces/iib:next-v4.11-s390x
+ ppc64le-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.11-v4.14-611735-533291-ppc64le
  + quay.io/devspaces/iib:3.11-v4.14-ppc64le
  + quay.io/devspaces/iib:next-v4.14-ppc64le
  + quay.io/devspaces/iib:3.11-v4.13-611727-533286-ppc64le
  + quay.io/devspaces/iib:3.11-v4.13-ppc64le
  + quay.io/devspaces/iib:next-v4.13-ppc64le
  + quay.io/devspaces/iib:3.11-v4.12-611725-533281-ppc64le
  + quay.io/devspaces/iib:3.11-v4.11-612074-533277-ppc64le
  + quay.io/devspaces/iib:3.11-v4.11-ppc64le
  + quay.io/devspaces/iib:next-v4.11-ppc64le

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants