Coder Social home page Coder Social logo

Comments (11)

BionIT avatar BionIT commented on August 25, 2024

checkout a commit older than this PR would resolve thus narrow down to this PR #5652

from opensearch-dashboards.

BionIT avatar BionIT commented on August 25, 2024

Different from the screen recording in the PR #6703

The dashboard in future playground won't display anything

from opensearch-dashboards.

BionIT avatar BionIT commented on August 25, 2024

Found issue still happening, thus re-opened

from opensearch-dashboards.

joshuarrrr avatar joshuarrrr commented on August 25, 2024

@BionIT Can you provide some repro details? If I visit https://future.playground.opensearch.org, this is what I see
Screenshot 2024-05-02 at 5 40 48 PM

from opensearch-dashboards.

BionIT avatar BionIT commented on August 25, 2024

Yep, @joshuarrrr this is after switching to an older commit than the PR which introduced the bug, otherwise, we see empty page. Please check future playground for the empty page and error now.

from opensearch-dashboards.

joshuarrrr avatar joshuarrrr commented on August 25, 2024

I just need more info to be able to debug it, so if there was a version that included #6703 and #5652, that would be really helpful, because it doesn't repro running locally. I can also provide some additional context:

The issue is likely not in /bootstrap.js (source: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/legacy/ui/ui_render/bootstrap/bootstrap.js.hbs ), despite that being the failure point. To start up correctly, that application requires /startup.js ( source: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/legacy/ui/ui_render/bootstrap/startup.js.hbs )to successfully load and execute first. You can see in the console that startup.js failed on an unexpected token on L15: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/legacy/ui/ui_render/bootstrap/startup.js.hbs#L15

That means that there's likely an issue with this block of code:

const configDarkMode =
!authEnabled || request.auth.isAuthenticated
? await uiSettings.get('theme:darkMode')
: uiSettings.getOverrideOrDefault('theme:darkMode');

which wasn't edited, but moved in #5652

from opensearch-dashboards.

ananzh avatar ananzh commented on August 25, 2024

@BionIT same question here, is there a way to reproduce locally or could you help to add some repro steps?

from opensearch-dashboards.

BionIT avatar BionIT commented on August 25, 2024

To repro:

  • add the commit, see empty page and error in future playground
  • remove the commit, OSD bootstraps correctly in playground

I don't have bandwidth to look further, and I wonder if the change would behave different when it is in container?

from opensearch-dashboards.

kavilla avatar kavilla commented on August 25, 2024

i think cache issue. that supercedes the cache buster for plugins.

2.13 navigate to playground/app/plugin
HTML dom gets loaded with only reference to script bootstrap
HTML dom downloads new bootstrap script due to cache busting mechanism
bootstrap statically sets that window osdThemeTag

2.14 navigate to playground/app/plugin
HTML dom gets loaded from cache since visiting again. but it only has the reference to bootstrap, and does not include startup.js
HTML dom downloads new bootstrap script due to cache busting mechanism
bootstrap expected startup.js to be downloaded and ran to set that global window value. get undefined exception

expected:
HTML dom gets loaded with both startup and bootstrap.

tbh i'm not sure if this normal issue or something special about docker's caching optimization. we could consider just adding a default value to that osdThemeTag in bootstrap if window.osdThemeTag is undefined. @joshuarrrr @ananzh.

from opensearch-dashboards.

kavilla avatar kavilla commented on August 25, 2024

reverted in 2.14 in 2.x as @joshuarrrr is addressing existing issue that got exposed by this work but not from this work.

from opensearch-dashboards.

BionIT avatar BionIT commented on August 25, 2024

@joshuarrrr Do we still target this fix for 2.15 or 2.16?

from opensearch-dashboards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.