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

GitAuto: A performance of a page (/settings/integrations/jira) is too slow. #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gitauto-for-dev[bot]
Copy link

Resolves #133

Why the bug occurs

The /settings/integrations/jira page experiences slow performance primarily due to a high number of network requests and certain requests taking an excessive amount of time to complete. Specifically, requests like get-installed-repos are identified as potential bottlenecks contributing to the overall delay in page load times.

How to reproduce

  1. Navigate to the /settings/integrations/jira page within the application.
  2. Open the browser's developer console and navigate to the Network tab.
  3. Observe the number of network requests made and the time each request takes to complete.
  4. Note the total page load time, which currently stands at approximately 15.43 seconds.

How to fix

  1. Optimize Network Requests:

    • Reduce the Number of Requests: Analyze the necessity of each request and eliminate any redundant or unnecessary calls.
    • Batch Requests: Where possible, batch multiple requests into a single call to minimize the overhead.
    • Implement Caching: Utilize caching strategies for data that does not change frequently to reduce the need for repeated requests.
  2. Improve Slow Requests:

    • Optimize get-installed-repos Endpoint: Investigate and enhance the performance of the get-installed-repos API endpoint to ensure faster response times.
    • Asynchronous Loading: Load non-critical data asynchronously to prevent blocking the rendering of essential components.
  3. Code Refactoring:

    • Review and refactor the components responsible for initiating the high number of requests, potentially found in the components or utils directories.
    • Ensure that components are not making duplicate requests due to re-renders or improper state management.
  4. Performance Monitoring:

    • Implement performance monitoring tools to continuously track and identify any future performance regressions on the /settings/integrations/jira page.

By addressing the excessive and slow network requests, the overall performance of the Jira integrations settings page can be significantly improved, resulting in a better user experience.

Test these changes locally

git checkout -b gitauto-wes/issue-133-20241214-153044
git pull origin gitauto-wes/issue-133-20241214-153044

Copy link

vercel bot commented Dec 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitauto-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2024 6:33am

Copy link

gitauto.ai%2F

Before (main) After (this branch)

Copy link

gitauto.ai%2Fblog

Before (main) After (this branch)

Copy link

gitauto.ai%2Fsettings%2Fintegrations%2Fjira

Before (main) After (this branch)

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.

0 participants