Comments (11)
checkout a commit older than this PR would resolve thus narrow down to this PR #5652
from opensearch-dashboards.
Different from the screen recording in the PR #6703
The dashboard in future playground won't display anything
from opensearch-dashboards.
Found issue still happening, thus re-opened
from opensearch-dashboards.
@BionIT Can you provide some repro details? If I visit https://future.playground.opensearch.org, this is what I see
from opensearch-dashboards.
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.
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:
OpenSearch-Dashboards/src/legacy/ui/ui_render/ui_render_mixin.js
Lines 174 to 177 in b5121d3
which wasn't edited, but moved in #5652
from opensearch-dashboards.
@BionIT same question here, is there a way to reproduce locally or could you help to add some repro steps?
from opensearch-dashboards.
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.
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.
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.
@joshuarrrr Do we still target this fix for 2.15 or 2.16?
from opensearch-dashboards.
Related Issues (20)
- [Workspace] Add useCaseEnabled in advanced settings
- CVE-2024-37890 (High) detected in ws-7.5.7.tgz, ws-8.5.0.tgz
- As part of the exporting and importing saved objects there should be an option to specify a mapping for old -> new index UIDs.
- [RFC][Build] extra plugins and sourcing functionality in OSD that is not available in non-min artifact OpenSearch Core HOT 7
- [Meta] Seamless Transition of Legacy Visualizations to VisBuilder HOT 1
- [Meta][VisBuilder] VisBuilder 2.0: Transition to use a single, unified visualization library and allow migration
- Hide Charts in discover
- [BUG] Overriding field type in index pattern not working as it should HOT 5
- [AUTOCUT] Distribution Build Failed for OpenSearch-Dashboards-2.16.0 HOT 1
- [Navigation-next] Add a new component to display group enabled navigation.
- [Workspace] Support global workspace
- [BUG] The line chart might clip or fail to display points at the top of the range HOT 1
- [FEATURE] Support Version Decoupling in Index Patterns Dashboards Plugin HOT 1
- [Workspace] Capabilities service add dashboard admin flag
- [BUG] Plugins cannot use `@osd/babel-preset/node_preset`
- [RFC] ScatterPlots in OSD Visualize HOT 1
- [BUG] Observability / Metrics / Source No index to be selected HOT 1
- [RFC] Dynamic Configuration Service HOT 11
- [BUG][Discover-Next] SQL and PPL bugs when integrating with MDS
- [BUG][Discover-Next] Invalid security token error when using query assist with MDS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensearch-dashboards.