Skip to content

Commit d6da85a

Browse files
Change default value of useExpandedHeader to false (#247)
1 parent 2f99bde commit d6da85a

File tree

10 files changed

+28
-1022
lines changed

10 files changed

+28
-1022
lines changed

.github/workflows/cypress_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030
TEST_REPO: ${{ inputs.test_repo != '' && inputs.test_repo || 'opensearch-project/opensearch-dashboards-functional-test' }}
3131
TEST_BRANCH: "${{ inputs.test_branch != '' && inputs.test_branch || github.base_ref }}"
3232
FTR_PATH: 'ftr'
33-
START_CMD: 'node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true'
33+
START_CMD: 'node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch --savedObjects.maxImportPayloadBytes=10485760 --server.maxPayloadBytes=1759977 --logging.json=false --data.search.aggs.shardDelay.enabled=true --opensearchDashboards.branding.useExpandedHeader=true'
3434
OPENSEARCH_SNAPSHOT_CMD: 'node ../scripts/opensearch snapshot -E cluster.routing.allocation.disk.threshold_enabled=false'
3535
CYPRESS_BROWSER: 'chromium'
3636
CYPRESS_VISBUILDER_ENABLED: true

CHANGELOG.md

+5-1,003
Large diffs are not rendered by default.

config/opensearch_dashboards.prod.yml

-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ server.ssl.key: "/etc/wazuh-dashboard/certs/dashboard-key.pem"
1010
server.ssl.certificate: "/etc/wazuh-dashboard/certs/dashboard.pem"
1111
opensearch.ssl.certificateAuthorities: ["/etc/wazuh-dashboard/certs/root-ca.pem"]
1212
uiSettings.overrides.defaultRoute: /app/wz-home
13-
14-
opensearchDashboards.branding:
15-
useExpandedHeader: false

docker/config/opensearch_dashboards.dev.security.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
server.host: "0.0.0.0"
22

3-
opensearchDashboards.branding:
4-
useExpandedHeader: false
5-
63
opensearch.hosts: ["https://indexer:9200"]
74
opensearch.ssl.verificationMode: none
85
opensearch.username: "kibanaserver"
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
server.host: "0.0.0.0"
2-
3-
opensearchDashboards.branding:
4-
useExpandedHeader: false

packages/osd-plugin-helpers/src/integration_tests/build.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@ it('builds a generated plugin into a viable archive', async () => {
101101
info running @osd/optimizer
102102
│ info initialized, 0 bundles cached
103103
│ info starting worker [1 bundle]
104+
│ warn worker stderr Browserslist: caniuse-lite is outdated. Please run:
105+
│ warn worker stderr npx update-browserslist-db@latest
106+
│ warn worker stderr Why you should do it regularly: https://github.com/browserslist/update-db#readme
104107
│ succ 1 bundles compiled successfully after <time>
105108
info copying assets from \`public/assets\` to build
106109
info copying server source into the build and converting with babel
110+
Browserslist: caniuse-lite is outdated. Please run:
111+
npx update-browserslist-db@latest
112+
Why you should do it regularly: https://github.com/browserslist/update-db#readme
107113
info running yarn to install dependencies
108114
info compressing plugin into [fooTestPlugin-1.0.0.zip]
109115
info cleaning up compression temporary artifacts"
@@ -189,9 +195,15 @@ it('builds a non-semver generated plugin into a viable archive', async () => {
189195
info running @osd/optimizer
190196
│ info initialized, 0 bundles cached
191197
│ info starting worker [1 bundle]
198+
│ warn worker stderr Browserslist: caniuse-lite is outdated. Please run:
199+
│ warn worker stderr npx update-browserslist-db@latest
200+
│ warn worker stderr Why you should do it regularly: https://github.com/browserslist/update-db#readme
192201
│ succ 1 bundles compiled successfully after <time>
193202
info copying assets from \`public/assets\` to build
194203
info copying server source into the build and converting with babel
204+
Browserslist: caniuse-lite is outdated. Please run:
205+
npx update-browserslist-db@latest
206+
Why you should do it regularly: https://github.com/browserslist/update-db#readme
195207
info running yarn to install dependencies
196208
info compressing plugin into [fooTestPlugin-1.0.0.x.zip]
197209
info cleaning up compression temporary artifacts"

src/core/server/opensearch_dashboards_config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const config = {
8383
defaultValue: 'Wazuh',
8484
}),
8585
useExpandedHeader: schema.boolean({
86-
defaultValue: true,
86+
defaultValue: false,
8787
}),
8888
}),
8989
survey: schema.object({

src/core/server/rendering/__snapshots__/rendering_service.test.ts.snap

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/legacy/server/config/schema.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export default () =>
246246
}),
247247
faviconUrl: Joi.any().default('/'),
248248
applicationTitle: Joi.any().default(''),
249-
useExpandedHeader: Joi.boolean().default(true),
249+
useExpandedHeader: Joi.boolean().default(false),
250250
}),
251251
survey: Joi.object({
252252
url: Joi.any().default('/'),

test/common/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default function () {
7979
`--opensearchDashboards.branding.mark.defaultUrl=https://opensearch.org/assets/brand/SVG/Mark/opensearch_mark_default.svg`,
8080
`--opensearchDashboards.branding.mark.darkModeUrl=https://opensearch.org/assets/brand/SVG/Mark/opensearch_mark_darkmode.svg`,
8181
`--opensearchDashboards.branding.applicationTitle=OpenSearch`,
82+
`--opensearchDashboards.branding.useExpandedHeader=true`,
8283
],
8384
},
8485
services,

0 commit comments

Comments
 (0)