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

[ECO][Inventory v2] Remove the landing page to enable the entity model #205534

Conversation

jennypavlova
Copy link
Member

@jennypavlova jennypavlova commented Jan 3, 2025

Closes #203095
Closes #204263

Summary

This PR removes the page for the enabling functionality and welcome screen. After the migration to v2 API we don't need to enable it anymore as we are not using transforms

Before:

image

image

After:

The same without the extra step to enable the entities and the welcome screen:

  • No data:
    image

  • With data:
    image

Testing

  • In a local environment enable the entities feature flag ( it should be a clean env as the entities should not be enabled before ):
image

@jennypavlova jennypavlova self-assigned this Jan 3, 2025
@jennypavlova jennypavlova added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jan 3, 2025
@jennypavlova jennypavlova marked this pull request as ready for review January 3, 2025 18:37
@jennypavlova jennypavlova requested a review from a team as a code owner January 3, 2025 18:37
@elasticmachine
Copy link
Contributor

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

useEuiTheme,
COLOR_MODES_STANDARD,
} from '@elastic/eui';
import inventoryLight from '../../assets/entities_inventory_light.png';
Copy link
Contributor

@kpatticha kpatticha Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove these images since they're not being used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Removed here :)

Copy link
Contributor

@kpatticha kpatticha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM. I didn't test it locally due to the blocked PR."

Copy link
Contributor

@rmyz rmyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jennypavlova jennypavlova enabled auto-merge (squash) January 8, 2025 15:02
Copy link
Contributor

@rmyz rmyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working fine

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #21 / Observability AI Assistant API tests complete/functions/summarize.spec.ts when calling summarize function persists entry in knowledge base

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
inventory 236 229 -7

Async chunks

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

id before after diff
inventory 231.5KB 224.9KB -6.5KB

Page load bundle

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

id before after diff
inventory 13.0KB 12.8KB -144.0B
Unknown metric groups

miscellaneous assets size

id before after diff
inventory 1.1MB 761.8KB -351.7KB

History

cc @jennypavlova

@jennypavlova jennypavlova merged commit d6e28f7 into elastic:main Jan 8, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12677676603

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 8, 2025
elastic#205534)

Closes elastic#203095
Closes elastic#204263

## Summary

This PR removes the page for the enabling functionality and welcome
screen. After the migration to v2 API we don't need to enable it anymore
as we are not using transforms

### Before:

![image](https://github.com/user-attachments/assets/0c8d5841-9189-4551-a1be-87801cfcf57d)

![image](https://github.com/user-attachments/assets/75a73dd8-6b16-452b-abcf-41e1fcca6645)

### After:
The same without the extra step to enable the entities and the welcome
screen:
- No data:

![image](https://github.com/user-attachments/assets/dbfdf501-36e7-4b6f-a8b6-ed0a6748ab62)

- With data:

![image](https://github.com/user-attachments/assets/0bbb2983-4e0a-477c-ac11-d2256b5ff854)

## Testing

- In a local environment enable the entities feature flag ( it should be
a clean env as the entities should not be enabled before ):
<img width="1911" alt="image"
src="https://github.com/user-attachments/assets/75d6f77d-5039-41ca-80ca-34c3bf99844e"
/>

- Go to Inventory
- Check before and after ingesting data
- Synthtrace: `node scripts/synthtrace logs_traces_hosts.ts` - ~⚠️ this
case can't be checked before
elastic#203452 is merged~ -
elastic#203452 is merged 🎉

(cherry picked from commit d6e28f7)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 8, 2025
…y model (#205534) (#205958)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ECO][Inventory v2] Remove the landing page to enable the entity
model (#205534)](#205534)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"jennypavlova","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-08T19:30:17Z","message":"[ECO][Inventory
v2] Remove the landing page to enable the entity model
(#205534)\n\nCloses #203095\r\nCloses
https://github.com/elastic/kibana/issues/204263\r\n\r\n\r\n##
Summary\r\n\r\nThis PR removes the page for the enabling functionality
and welcome\r\nscreen. After the migration to v2 API we don't need to
enable it anymore\r\nas we are not using transforms\r\n\r\n### Before:
\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/0c8d5841-9189-4551-a1be-87801cfcf57d)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/75a73dd8-6b16-452b-abcf-41e1fcca6645)\r\n\r\n###
After: \r\nThe same without the extra step to enable the entities and
the welcome\r\nscreen:\r\n- No data:
\r\n\r\n![image](https://github.com/user-attachments/assets/dbfdf501-36e7-4b6f-a8b6-ed0a6748ab62)\r\n\r\n-
With
data:\r\n\r\n![image](https://github.com/user-attachments/assets/0bbb2983-4e0a-477c-ac11-d2256b5ff854)\r\n\r\n##
Testing\r\n\r\n- In a local environment enable the entities feature flag
( it should be\r\na clean env as the entities should not be enabled
before ):\r\n<img width=\"1911\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/75d6f77d-5039-41ca-80ca-34c3bf99844e\"\r\n/>\r\n\r\n-
Go to Inventory \r\n- Check before and after ingesting data\r\n-
Synthtrace: `node scripts/synthtrace logs_traces_hosts.ts` - ~⚠️
this\r\ncase can't be checked
before\r\nhttps://github.com//pull/203452 is merged~
-\r\nhttps://github.com//pull/203452 is merged
🎉","sha":"d6e28f766ac5363b4a6888871a2813538a4ee367","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-infra_services"],"title":"[ECO][Inventory
v2] Remove the landing page to enable the entity
model","number":205534,"url":"https://github.com/elastic/kibana/pull/205534","mergeCommit":{"message":"[ECO][Inventory
v2] Remove the landing page to enable the entity model
(#205534)\n\nCloses #203095\r\nCloses
https://github.com/elastic/kibana/issues/204263\r\n\r\n\r\n##
Summary\r\n\r\nThis PR removes the page for the enabling functionality
and welcome\r\nscreen. After the migration to v2 API we don't need to
enable it anymore\r\nas we are not using transforms\r\n\r\n### Before:
\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/0c8d5841-9189-4551-a1be-87801cfcf57d)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/75a73dd8-6b16-452b-abcf-41e1fcca6645)\r\n\r\n###
After: \r\nThe same without the extra step to enable the entities and
the welcome\r\nscreen:\r\n- No data:
\r\n\r\n![image](https://github.com/user-attachments/assets/dbfdf501-36e7-4b6f-a8b6-ed0a6748ab62)\r\n\r\n-
With
data:\r\n\r\n![image](https://github.com/user-attachments/assets/0bbb2983-4e0a-477c-ac11-d2256b5ff854)\r\n\r\n##
Testing\r\n\r\n- In a local environment enable the entities feature flag
( it should be\r\na clean env as the entities should not be enabled
before ):\r\n<img width=\"1911\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/75d6f77d-5039-41ca-80ca-34c3bf99844e\"\r\n/>\r\n\r\n-
Go to Inventory \r\n- Check before and after ingesting data\r\n-
Synthtrace: `node scripts/synthtrace logs_traces_hosts.ts` - ~⚠️
this\r\ncase can't be checked
before\r\nhttps://github.com//pull/203452 is merged~
-\r\nhttps://github.com//pull/203452 is merged
🎉","sha":"d6e28f766ac5363b4a6888871a2813538a4ee367"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205534","number":205534,"mergeCommit":{"message":"[ECO][Inventory
v2] Remove the landing page to enable the entity model
(#205534)\n\nCloses #203095\r\nCloses
https://github.com/elastic/kibana/issues/204263\r\n\r\n\r\n##
Summary\r\n\r\nThis PR removes the page for the enabling functionality
and welcome\r\nscreen. After the migration to v2 API we don't need to
enable it anymore\r\nas we are not using transforms\r\n\r\n### Before:
\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/0c8d5841-9189-4551-a1be-87801cfcf57d)\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/75a73dd8-6b16-452b-abcf-41e1fcca6645)\r\n\r\n###
After: \r\nThe same without the extra step to enable the entities and
the welcome\r\nscreen:\r\n- No data:
\r\n\r\n![image](https://github.com/user-attachments/assets/dbfdf501-36e7-4b6f-a8b6-ed0a6748ab62)\r\n\r\n-
With
data:\r\n\r\n![image](https://github.com/user-attachments/assets/0bbb2983-4e0a-477c-ac11-d2256b5ff854)\r\n\r\n##
Testing\r\n\r\n- In a local environment enable the entities feature flag
( it should be\r\na clean env as the entities should not be enabled
before ):\r\n<img width=\"1911\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/75d6f77d-5039-41ca-80ca-34c3bf99844e\"\r\n/>\r\n\r\n-
Go to Inventory \r\n- Check before and after ingesting data\r\n-
Synthtrace: `node scripts/synthtrace logs_traces_hosts.ts` - ~⚠️
this\r\ncase can't be checked
before\r\nhttps://github.com//pull/203452 is merged~
-\r\nhttps://github.com//pull/203452 is merged
🎉","sha":"d6e28f766ac5363b4a6888871a2813538a4ee367"}}]}] BACKPORT-->

Co-authored-by: jennypavlova <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
elastic#205534)

Closes elastic#203095
Closes elastic#204263


## Summary

This PR removes the page for the enabling functionality and welcome
screen. After the migration to v2 API we don't need to enable it anymore
as we are not using transforms

### Before: 


![image](https://github.com/user-attachments/assets/0c8d5841-9189-4551-a1be-87801cfcf57d)


![image](https://github.com/user-attachments/assets/75a73dd8-6b16-452b-abcf-41e1fcca6645)

### After: 
The same without the extra step to enable the entities and the welcome
screen:
- No data: 

![image](https://github.com/user-attachments/assets/dbfdf501-36e7-4b6f-a8b6-ed0a6748ab62)

- With data:

![image](https://github.com/user-attachments/assets/0bbb2983-4e0a-477c-ac11-d2256b5ff854)

## Testing

- In a local environment enable the entities feature flag ( it should be
a clean env as the entities should not be enabled before ):
<img width="1911" alt="image"
src="https://github.com/user-attachments/assets/75d6f77d-5039-41ca-80ca-34c3bf99844e"
/>

- Go to Inventory 
- Check before and after ingesting data
- Synthtrace: `node scripts/synthtrace logs_traces_hosts.ts` - ~⚠️ this
case can't be checked before
elastic#203452 is merged~ -
elastic#203452 is merged 🎉
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.18.0 v9.0.0
Projects
None yet
5 participants