Skip to content

Commit ad594fb

Browse files
kavillaKawika Avilla
and
Kawika Avilla
authored
[Site] add OSD results (opensearch-project#711)
* [Site] add OSD results Signed-off-by: Kawika Avilla <[email protected]> * fix linter Signed-off-by: Kawika Avilla <[email protected]> --------- Signed-off-by: Kawika Avilla <[email protected]> Signed-off-by: Kawika Avilla <[email protected]> Co-authored-by: Kawika Avilla <[email protected]>
1 parent aadc599 commit ad594fb

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

site/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ <h2>Plugins:</h2>
136136
<table>
137137
<tr>
138138
<td id="pluginButtonsTd">
139+
<button id="opensearchDashboardsButton" onclick="getPluginLinks('opensearch-dashboards')">
140+
OpenSearch Dashboards
141+
</button>
139142
<button id="alertingDashboardsButton" onclick="getPluginLinks('alerting-dashboards-plugin')">
140143
alertingDashboards
141144
</button>

site/js/dashboard.js

+33-4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,30 @@ const defaults = {
1717
};
1818

1919
const plugins = {
20+
'opensearch-dashboards': {
21+
name: 'OpenSearch-Dashboards',
22+
default: {
23+
videos: [
24+
'apps/vis_builder/basic.spec.js',
25+
'apps/vis_builder/dashboard.spec.js',
26+
'apps/vis_builder/experimental.spec.js',
27+
'apps/vis_builder/vis_types/area.spec.js',
28+
'apps/vis_builder/vis_types/bar.spec.js',
29+
'apps/vis_builder/vis_types/line.spec.js',
30+
'apps/vis_builder/vis_types/metric.spec.js',
31+
'apps/vis_builder/vis_types/table.spec.js',
32+
'apps/vis_type_table/basic.spec.js',
33+
'apps/vis_type_table/data.spec.js',
34+
'apps/vis_type_table/embed.spec.js',
35+
'apps/vis_type_table/options.spec.js',
36+
'apps/vis_type_table/split.spec.js',
37+
'apps/datasource-management-plugin/1_create_datasource.spec.js',
38+
'apps/datasource-management-plugin/2_datasource_table.spec.js',
39+
'apps/datasource-management-plugin/3_update_datasource.spec.js',
40+
'dashboard_sanity_test_spec.js',
41+
],
42+
},
43+
},
2044
'alerting-dashboards-plugin': {
2145
name: 'alertingDashboards',
2246
default: {
@@ -286,6 +310,10 @@ function getPluginLinks(plugin) {
286310

287311
var pluginLinksList = document.getElementById('pluginLinksList');
288312
const pluginObject = plugins[plugin];
313+
const coreBaseUrl =
314+
pluginObject.name === 'OpenSearch-Dashboards'
315+
? 'core-opensearch-dashboards'
316+
: 'plugins';
289317

290318
const pluginUrl =
291319
'https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/' +
@@ -294,7 +322,8 @@ function getPluginLinks(plugin) {
294322
`${platform}/` +
295323
`${arch}/` +
296324
`${type}/` +
297-
'builds/opensearch-dashboards/plugins/' +
325+
'builds/opensearch-dashboards/' +
326+
`${coreBaseUrl}` +
298327
`${pluginObject.name}-${version}.zip`;
299328

300329
var githubManifestLink = document.createElement('a');
@@ -346,14 +375,14 @@ function getPluginLinks(plugin) {
346375
}/` +
347376
`${securityEnabled ? 'with-security' : 'without-security'}` +
348377
`${enableLegacyTestsResults() ? 'test-results' : ''}`;
349-
const screenshotBaseUrl = `${s3BaseUrl}/cypress-screenshots/plugins/${plugin}/$SPEC_FILE/$FULL_TEST_FAILURE.png`;
350-
const videosBaseUrl = `${s3BaseUrl}/cypress-videos/plugins/${plugin}`;
378+
const screenshotBaseUrl = `${s3BaseUrl}/cypress-screenshots/${coreBaseUrl}/${plugin}/$SPEC_FILE/$FULL_TEST_FAILURE.png`;
379+
const videosBaseUrl = `${s3BaseUrl}/cypress-videos/${coreBaseUrl}/${plugin}`;
351380

352381
document.getElementById(
353382
'baseScreenshotUrlBefore'
354383
).innerHTML = `/tmp/$RANDOM/${
355384
enableLegacyTestsResults() ? 'functionalTestDashboards' : pluginObject.name
356-
}/cypress/screenshots/plugins/${plugin}/$SPEC_FILE/$FULL_TEST_FAILURE.png`;
385+
}/cypress/screenshots/${coreBaseUrl}/${plugin}/$SPEC_FILE/$FULL_TEST_FAILURE.png`;
357386
document.getElementById('baseScreenshotUrlAfter').innerHTML =
358387
screenshotBaseUrl;
359388

site/styles.css

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ body {
108108
border-radius: 6px;
109109
box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 3px 0 inset;
110110
border: 2px solid rgba(27, 31, 35, 0.15);
111+
overflow-y: scroll;
111112
}
112113

113114
#pluginLinksDiv button {

0 commit comments

Comments
 (0)