-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Infra UI] Serverless 'Open in Logs' link within Host fly-out is broken #171082
Comments
Hey @felixbarny, I think you mentioned to me that this 'open in logs' functionality needs to be disabled in the logs embeddable? Is that right? Raising this issue as in production it is broken. @smith @jennypavlova FYI probably part of the epic on serverless Infra UI |
Thanks @kuisathaverat |
@roshan-elastic we should probably ping @elastic/obs-ux-logs-team . The aforementioned places are using the node logs locator to create the link URL |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
@crespocarlos We lately enabled infra in serverless, but at the same time the stream UI is disabled there. Which is being used by the locators. The logic in the locator was to navigate to Stream UI if infra is enabled since it was assumed that Stream UI is going to be there, otherwise navigate to Log explorer. But now with having Infra enabled but Stream disabled its failing as it can't find the route. |
Thanks, @mohamedhamed-ahmed. In serverless, shouldn't the locator navigate to the new Logs Explorer? Please correct me if I'm wrong, but I think the Logs Stream UI won't join serverless. |
@crespocarlos IIRC the logic was a bit different.
Will double check this with the team again. |
@mohamedhamed-ahmed did you have the chance to check the logic? |
@crespocarlos Yes, the issue is mainly because the Stream UI is now disabled in serverless, but at the same time the locator registration is still happening here. The quickest solution would be to conditionally register these locators depending on the |
…ss (#172137) Fixes #171082 ## Summary The PR wraps the [LogsLocator](https://github.com/elastic/kibana/blob/f59ac2916d02d643310dd44a8f80b7a9cc61f608/x-pack/plugins/infra/common/locators/logs_locator.ts#L18C27-L18C27) and [NodeLogsLocator](https://github.com/elastic/kibana/blob/f59ac2916d02d643310dd44a8f80b7a9cc61f608/x-pack/plugins/infra/common/locators/node_logs_locator.ts#L16) of **infra** plugin inside corresponding locators in **logs_shared** plugin while including the fallback logic to navigate to Logs Explorer when Steam UI isn't available. Previously, it was assumed that Steam UI will always be available as long as Infra UI is available, but **infra** plugin introduced a new feature flag `logsUIEnabled` which when `false` won't enable the `/stream/` route in Serverless. The added locators in **logs_shared** will now check whether locators redirecting to `/steam/` are available, otherwise they'll redirect to Logs Explorer, thus the new locators are abstracting this decision in their definition. This abstraction was already being done in **apm** plugin, which has also been refactored to use the newly added **logs_shared** locators. Links in Serverless: https://github.com/elastic/kibana/assets/2748376/16e5747a-546e-44b3-87e3-95428945cf63
…ss (elastic#172137) Fixes elastic#171082 ## Summary The PR wraps the [LogsLocator](https://github.com/elastic/kibana/blob/f59ac2916d02d643310dd44a8f80b7a9cc61f608/x-pack/plugins/infra/common/locators/logs_locator.ts#L18C27-L18C27) and [NodeLogsLocator](https://github.com/elastic/kibana/blob/f59ac2916d02d643310dd44a8f80b7a9cc61f608/x-pack/plugins/infra/common/locators/node_logs_locator.ts#L16) of **infra** plugin inside corresponding locators in **logs_shared** plugin while including the fallback logic to navigate to Logs Explorer when Steam UI isn't available. Previously, it was assumed that Steam UI will always be available as long as Infra UI is available, but **infra** plugin introduced a new feature flag `logsUIEnabled` which when `false` won't enable the `/stream/` route in Serverless. The added locators in **logs_shared** will now check whether locators redirecting to `/steam/` are available, otherwise they'll redirect to Logs Explorer, thus the new locators are abstracting this decision in their definition. This abstraction was already being done in **apm** plugin, which has also been refactored to use the newly added **logs_shared** locators. Links in Serverless: https://github.com/elastic/kibana/assets/2748376/16e5747a-546e-44b3-87e3-95428945cf63
Description
This link in serverless is broken:
Opening Logs in serverless
The link takes you through to this page
The text was updated successfully, but these errors were encountered: