Skip to content
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

[8.14] [Infra][APM] Fix uptime links display condition in Infra and APM (#181425) #181973

Merged
merged 1 commit into from Apr 29, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.14:

Questions ?

Please refer to the Backport tool documentation

…stic#181425)

closes [elastic#178714](elastic#178714)

## Summary

This PR changes where link to legacy uptime is displayed to
conditionally show it according to whether the plugin is enabled or not.

<img width="962" alt="image"
src="https://github.com/elastic/kibana/assets/2767137/e2e659ae-bc2e-49a6-a34b-9434f04b4617">

<img width="962" alt="image"
src="https://github.com/elastic/kibana/assets/2767137/4aa487f5-4a61-4387-a9ed-12c9ed624410">

### How to test

The issue and the fix are the same in serverless and stateful

#### APM
- Run
```
node scripts/synthtrace simple_trace.ts --from=now-15m --to=now --clean --target=http://elastic_serverless:changeme@localhost:9200 --kibana=http://elastic_serverless:changeme@0.0.0.0:5601
```
- Navigate to APM > Traces, click on "Investigate"
- if `xpack.legacy_uptime.enabled: false` in kibana.yml - "Status"
**should** appear
- if `xpack.legacy_uptime.enabled: false` in kibana.yml - "Status"
**should not** appear
- if `xpack.legacy_uptime.enabled: false` and `xpack.uptime.enabled:
true` in kibana.yml - "Status" **should not** appear
- if `observability:enableLegacyUptimeApp` is switched on in Advanced
settings - "Status" **should** appear

#### Infra
- Start a local kibana instance pointing to an oblt cluster
- Navigate to Infrastructure, select `Kubernetes Pod` (other asset
types, except hosts, share the same code) in `Show` dropdown
- if `xpack.legacy_uptime.enabled: false` in kibana.yml - the link
should be **enabled**
- if `xpack.legacy_uptime.enabled: false` in kibana.yml - the link to
uptime should be **disabled**
- if `xpack.legacy_uptime.enabled: false` and `xpack.uptime.enabled:
true` in kibana.yml - the link to uptime should be **disabled**
- if `observability:enableLegacyUptimeApp` is switched on in Advanced
settings - the link to uptime should be **enabled**

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 694acf7)
@kibanamachine kibanamachine enabled auto-merge (squash) April 29, 2024 12:10
@botelastic botelastic bot added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Apr 29, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
synthetics 981 980 -1
uptime 582 583 +1
total -0

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 3.2MB 3.2MB -29.0B
infra 1.5MB 1.5MB +64.0B
uptime 462.5KB 468.2KB +5.7KB
total +5.7KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
synthetics 19.8KB 19.4KB -393.0B
uptime 22.3KB 22.4KB +152.0B
total -241.0B
Unknown metric groups

async chunk count

id before after diff
uptime 15 16 +1

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @crespocarlos

@kibanamachine kibanamachine merged commit a4cb497 into elastic:8.14 Apr 29, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants