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

Improve loading speed #7099

Open
wants to merge 29 commits into
base: 4.10.0
Choose a base branch
from

Conversation

guidomodarelli
Copy link
Contributor

@guidomodarelli guidomodarelli commented Oct 15, 2024

Description

Improve loading speed

Issues Resolved

Closes #7084

Evidence

/check-stored-api

BEFORE

Average of 620 ms

image

AFTER

Average of 578 ms

image

/check-api

BEFORE

Average of 739,5 ms

image

AFTER
Average of 674 ms

image

Test

  1. Open DevTools, navigate to the Application tab, and click on "Clear site data".

    image

  2. Right-click the reload page button, then select "Empty Cache and Hard Reload."

    image

  3. Repeat these steps:

    Peek.2024-10-15.13-59.mp4

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@guidomodarelli guidomodarelli self-assigned this Oct 15, 2024
@guidomodarelli guidomodarelli linked an issue Oct 15, 2024 that may be closed by this pull request
…ant variable assignment.- Remove commented out code for checking API parameters.- Simplify logic for handling missing API data
Copy link
Contributor

Wazuh Core plugin code coverage (Jest) test % values
Statements 45.5% ( 400 / 879 )
Branches 41.09% ( 157 / 382 )
Functions 43.87% ( 136 / 310 )
Lines 45.69% ( 398 / 871 )

Copy link
Contributor

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.44% ( 172 / 225 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.44% ( 172 / 225 )

Copy link
Contributor

Main plugin code coverage (Jest) test % values
Statements 14.12% ( 4178 / 29587 )
Branches 9.26% ( 1780 / 19216 )
Functions 13.8% ( 986 / 7140 )
Lines 14.31% ( 4075 / 28473 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve loading speed
1 participant