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

[APM] Add memoization to hooks consumed on service inventory page #173973

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Dec 27, 2023

This perf optimisation is needed for improvements made on the Service Inventory page. The memoisations should improve perf of any component currently consuming them.

Related: #127036

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@sorenlouv sorenlouv changed the title [APM] Add memoization needed for service inventory page [APM] Add memoization to hooks used on service inventory page Dec 27, 2023
@sorenlouv sorenlouv changed the title [APM] Add memoization to hooks used on service inventory page [APM] Add memoization to hooks consumed on service inventory page Dec 27, 2023
@sorenlouv sorenlouv marked this pull request as ready for review December 27, 2023 20:09
@sorenlouv sorenlouv requested review from a team as code owners December 27, 2023 20:09
@botelastic botelastic bot added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Jan 2, 2024
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@mykolaharmash mykolaharmash left a comment

Choose a reason for hiding this comment

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

Looks good ✨ Added a small suggestion in the comments.

@sorenlouv sorenlouv enabled auto-merge (squash) January 4, 2024 21:27
@sorenlouv sorenlouv enabled auto-merge (squash) January 4, 2024 21:47
return router.getParams(...args, location, optional);
// it is not possible to statically verify the dependencies when spreading args.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [router, ...args, location, optional]);
Copy link
Member Author

Choose a reason for hiding this comment

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

@dgieselaar I need a review from the knowledge team apparently. Mind taking a look? Thanks

@sorenlouv
Copy link
Member Author

@elastic/obs-ux-management-team Looks like I need a review from you (no idea why really). Thanks!

@sorenlouv sorenlouv force-pushed the memoize-service-inventory branch 2 times, most recently from 3f7de21 to a11e7ca Compare January 12, 2024 12:56
Avoid re-formatting

Fix useBreakpoints

[CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
aiAssistantManagementObservability 65.9KB 65.9KB +22.0B
apm 3.1MB 3.1MB +133.0B
observabilityAIAssistant 151.8KB 151.8KB +22.0B
profiling 378.1KB 378.1KB +22.0B
total +199.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/typed-react-router-config 0 1 +1

Total ESLint disabled count

id before after diff
@kbn/typed-react-router-config 0 1 +1

History

  • 💔 Build #187199 failed a11e7caba696fd62a1d2fbb41ab96c7fbabf7d46
  • 💔 Build #187182 failed 3ffece94dc525c44de23a4a9fc6bb4566da3b419
  • 💛 Build #186287 was flaky 453e6cbeb6aad6b918d38a5f09f5e6573831fd70
  • 💛 Build #186098 was flaky f9cc3973663d5162a7e9b05e8bef2381b7a6b559
  • 💔 Build #186088 failed ce6c563a79a3b482e0a248b84de4b62d70e7c367
  • 💛 Build #185976 was flaky 00384bb701bc1e23b626a422f0128115eb413cfb

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

@sorenlouv sorenlouv merged commit ad5c8ce into elastic:main Jan 12, 2024
21 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 12, 2024
cauemarcondes added a commit that referenced this pull request Jan 30, 2024
Closes: #127036

This adds the ability to easily search for data in tables. The search
will be performed server side if there are more results than initially
returned by Elasticsearch. If all results were returned the search is
performed client side to provide a more snappy experience.
The feature is guarded by a feature flag (disabled by default) and only
available for services, transactions and errors table.

# Transactions


![quick-filtering](https://github.com/elastic/kibana/assets/209966/20684b88-a103-4000-a012-ee6e35479b44)

# Errors


![error3](https://github.com/elastic/kibana/assets/209966/c7f09dd9-24a5-482a-ae72-4c4477f65d3a)


**Dependencies:**

- #173973
- #174746
- #174750

---------

Co-authored-by: Caue Marcondes <caue.marcondes@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
…174490)

Closes: elastic#127036

This adds the ability to easily search for data in tables. The search
will be performed server side if there are more results than initially
returned by Elasticsearch. If all results were returned the search is
performed client side to provide a more snappy experience.
The feature is guarded by a feature flag (disabled by default) and only
available for services, transactions and errors table.

# Transactions


![quick-filtering](https://github.com/elastic/kibana/assets/209966/20684b88-a103-4000-a012-ee6e35479b44)

# Errors


![error3](https://github.com/elastic/kibana/assets/209966/c7f09dd9-24a5-482a-ae72-4c4477f65d3a)


**Dependencies:**

- elastic#173973
- elastic#174746
- elastic#174750

---------

Co-authored-by: Caue Marcondes <caue.marcondes@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
…174490)

Closes: elastic#127036

This adds the ability to easily search for data in tables. The search
will be performed server side if there are more results than initially
returned by Elasticsearch. If all results were returned the search is
performed client side to provide a more snappy experience.
The feature is guarded by a feature flag (disabled by default) and only
available for services, transactions and errors table.

# Transactions


![quick-filtering](https://github.com/elastic/kibana/assets/209966/20684b88-a103-4000-a012-ee6e35479b44)

# Errors


![error3](https://github.com/elastic/kibana/assets/209966/c7f09dd9-24a5-482a-ae72-4c4477f65d3a)


**Dependencies:**

- elastic#173973
- elastic#174746
- elastic#174750

---------

Co-authored-by: Caue Marcondes <caue.marcondes@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@sorenlouv sorenlouv deleted the memoize-service-inventory branch April 12, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:enhancement Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants