Skip to content

Commit 83d598d

Browse files
[9.2] [ObsUx][Hosts]Add missing "There are hosts available in another schema" message (#241275) (#241323)
# Backport This will backport the following commits from `main` to `9.2`: - [[ObsUx][Hosts]Add missing "There are hosts available in another schema" message (#241275)](#241275) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Miriam","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-30T15:37:55Z","message":"[ObsUx][Hosts]Add missing \"There are hosts available in another schema\" message (#241275)\n\nCloses https://github.com/elastic/kibana/issues/239691\n\n## Summary\n\nWhen someone runs a query in the Hosts UI, if there are hosts available\nin another schema, there should be wording to tell them to switch the\nschema.\n\nBEFORE\n\n<img width=\"1218\" height=\"571\" alt=\"Screenshot 2025-10-30 at 12 13 08\"\nsrc=\"https://github.com/user-attachments/assets/c3eead5a-e66e-45ed-b7da-4f03af449a75\"\n/>\n\n\nAFTER\n\n<img width=\"1218\" height=\"571\" alt=\"Screenshot 2025-10-30 at 11 57 08\"\nsrc=\"https://github.com/user-attachments/assets/0aade972-565e-48a6-93c9-5b15fc759478\"\n/>","sha":"b663900c2359de6b9bc9653c7a0c4d7e5e1c1d5e","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-infra_services","backport:version","v9.3.0","v9.2.1"],"title":"[ObsUx][Hosts]Add missing \"There are hosts available in another schema\" message","number":241275,"url":"https://github.com/elastic/kibana/pull/241275","mergeCommit":{"message":"[ObsUx][Hosts]Add missing \"There are hosts available in another schema\" message (#241275)\n\nCloses https://github.com/elastic/kibana/issues/239691\n\n## Summary\n\nWhen someone runs a query in the Hosts UI, if there are hosts available\nin another schema, there should be wording to tell them to switch the\nschema.\n\nBEFORE\n\n<img width=\"1218\" height=\"571\" alt=\"Screenshot 2025-10-30 at 12 13 08\"\nsrc=\"https://github.com/user-attachments/assets/c3eead5a-e66e-45ed-b7da-4f03af449a75\"\n/>\n\n\nAFTER\n\n<img width=\"1218\" height=\"571\" alt=\"Screenshot 2025-10-30 at 11 57 08\"\nsrc=\"https://github.com/user-attachments/assets/0aade972-565e-48a6-93c9-5b15fc759478\"\n/>","sha":"b663900c2359de6b9bc9653c7a0c4d7e5e1c1d5e"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/241275","number":241275,"mergeCommit":{"message":"[ObsUx][Hosts]Add missing \"There are hosts available in another schema\" message (#241275)\n\nCloses https://github.com/elastic/kibana/issues/239691\n\n## Summary\n\nWhen someone runs a query in the Hosts UI, if there are hosts available\nin another schema, there should be wording to tell them to switch the\nschema.\n\nBEFORE\n\n<img width=\"1218\" height=\"571\" alt=\"Screenshot 2025-10-30 at 12 13 08\"\nsrc=\"https://github.com/user-attachments/assets/c3eead5a-e66e-45ed-b7da-4f03af449a75\"\n/>\n\n\nAFTER\n\n<img width=\"1218\" height=\"571\" alt=\"Screenshot 2025-10-30 at 11 57 08\"\nsrc=\"https://github.com/user-attachments/assets/0aade972-565e-48a6-93c9-5b15fc759478\"\n/>","sha":"b663900c2359de6b9bc9653c7a0c4d7e5e1c1d5e"}},{"branch":"9.2","label":"v9.2.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Miriam <[email protected]>
1 parent db6538b commit 83d598d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/solutions/observability/plugins/infra/public/components/schema_selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export const SchemaSelector = ({
238238
})}
239239
css={{ minWidth: isHostsView ? '400px' : '300px' }}
240240
helpText={
241-
options.length > 1 &&
241+
(options.length > 1 || (options.length === 1 && isInvalid)) &&
242242
i18n.translate('xpack.infra.schemaSelector.select.helpText', {
243243
defaultMessage: 'There are hosts available in another schema',
244244
})

0 commit comments

Comments
 (0)