-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Logs UI] Allow editing of non-resolving log views #210633
[Logs UI] Allow editing of non-resolving log views #210633
Conversation
|
||
// If we didn't remove the item from the cache here the subsequent call to | ||
// create would not have any effect | ||
dataViewsService.clearInstanceCache(dataViewId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discovered this problem while testing 🤷♂️
} | ||
}; | ||
|
||
const LogsSettingsPageContent = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just split the components for better readablility.
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
@weltenwort should this be merged into 8.17 and 8.18 too? |
I think that would make sense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and the UI now reports correctly the errors, thanks for this fix!
I left some minor comments but nothing blocking, maybe let's just wait for a check on the error copies and then is good to go.
<EuiCallOut title={logIndicesMissingTitle} color="warning" iconType="warning"> | ||
{logViewStatus.reason === 'noShardsFound' ? ( | ||
<FormattedMessage | ||
id="xpack.infra.sourceConfiguration.logIndicesMissingMessage.noShardsFound" | ||
defaultMessage="No shards found for the specified indices." | ||
/> | ||
) : logViewStatus.reason === 'noIndicesFound' ? ( | ||
<FormattedMessage | ||
id="xpack.infra.sourceConfiguration.logIndicesMissingMessage.noIndicesFound" | ||
defaultMessage="No indices found for the specified pattern." | ||
/> | ||
) : logViewStatus.reason === 'remoteClusterNotFound' ? ( | ||
<FormattedMessage | ||
id="xpack.infra.sourceConfiguration.logIndicesMissingMessage.remoteClusterNotFound" | ||
defaultMessage="At least one remote cluster was not found." | ||
/> | ||
) : null} | ||
</EuiCallOut> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll defer to @mdbirnstiehl any suggestion on these copies 😄
...ons/observability/plugins/infra/public/pages/logs/settings/source_configuration_settings.tsx
Outdated
Show resolved
Hide resolved
...ons/observability/plugins/infra/public/pages/logs/settings/source_configuration_settings.tsx
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
cc @weltenwort |
This changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely. (cherry picked from commit 41cd657)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
This changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely. (cherry picked from commit 41cd657) # Conflicts: # x-pack/plugins/observability_solution/infra/public/pages/logs/settings/indices_configuration_panel.tsx
…211236) # Backport This will backport the following commits from `8.x` to `8.18`: - [[Logs UI] Allow editing of non-resolving log views (#210633)](#210633) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Felix Stürmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-14T14:55:17Z","message":"[Logs UI] Allow editing of non-resolving log views (#210633)\n\nThis changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely.","sha":"41cd657811bd1c00ac15860268c018d4d80085ac","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Logs UI","backport:skip","Team:obs-ux-logs","v8.18.0","v8.17.3"],"title":"[Logs UI] Allow editing of non-resolving log views","number":210633,"url":"https://github.com/elastic/kibana/pull/210633","mergeCommit":{"message":"[Logs UI] Allow editing of non-resolving log views (#210633)\n\nThis changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely.","sha":"41cd657811bd1c00ac15860268c018d4d80085ac"}},"sourceBranch":"8.x","suggestedTargetBranches":["8.18","8.17"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…211242) # Backport This will backport the following commits from `8.x` to `8.17`: - [[Logs UI] Allow editing of non-resolving log views (#210633)](#210633) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Felix Stürmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-14T14:55:17Z","message":"[Logs UI] Allow editing of non-resolving log views (#210633)\n\nThis changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely.","sha":"41cd657811bd1c00ac15860268c018d4d80085ac","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Logs UI","backport:skip","Team:obs-ux-logs","v8.18.0","v8.17.3"],"title":"[Logs UI] Allow editing of non-resolving log views","number":210633,"url":"https://github.com/elastic/kibana/pull/210633","mergeCommit":{"message":"[Logs UI] Allow editing of non-resolving log views (#210633)\n\nThis changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely.","sha":"41cd657811bd1c00ac15860268c018d4d80085ac"}},"sourceBranch":"8.x","suggestedTargetBranches":["8.18","8.17"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
📝 Summary
This changes the settings page of the Logs UI such that it allows editing of log view settings even if the resolution or status check failed. This allows recovery from various situations that were previously only recoverable by resetting the log view completely.
🎨 Previews
🕵️♀️ Review notes