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

Service Content/View Optimizations #2383

Merged
merged 3 commits into from
Mar 11, 2025

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Mar 10, 2025

Description

Service content and service view page called the following functions handleServicesRequest() and handleServiceViewRequest(). Both of these functions utilized handleServiceMapRequest() to determine connected services and metrics.
Services content and services view had an additional call directly to handleServiceMapRequest() for generating the service map displayed at the bottom of the page. By removing these calls and passing setServiceMap into handleServicesRequest() and handleServiceViewRequest() we are able to remove 2 unnecessary queries from both pages.

Before (Service Content: 5 queries, Service View: 7 queries)

Before.mov

After (Service Content: 3 queries, Service View: 5 queries)

After.mov

This change also reduces the calls made in application analytics
Before (Services: 5 queries, Flyout: 11 queries)

Before.mov

After (Services: 3 queries, Flyout: 7 queries)

After.mov

Issues Resolved

#2334 - Service Content/View Optimizations

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@TackAdam TackAdam marked this pull request as ready for review March 11, 2025 18:01
@TackAdam TackAdam merged commit f23c699 into opensearch-project:main Mar 11, 2025
18 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 11, 2025
* Service Content/View Optimizations

Signed-off-by: Adam Tackett <[email protected]>

* remove console error, address comments on promise

Signed-off-by: Adam Tackett <[email protected]>

---------

Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit f23c699)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
paulstn pushed a commit that referenced this pull request Mar 12, 2025
* Service Content/View Optimizations



* remove console error, address comments on promise



---------



(cherry picked from commit f23c699)

Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants