GitAuto: A performance of a page (/settings/integrations/jira) is too slow. #136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #133
Why the bug occurs
The
/settings/integrations/jira
page experiences slow performance primarily due to pending network requests. Specifically, WebSocket connections remain in aPending
state, preventing the page from fully loading and rendering efficiently. Additionally, some fetch requests have varied response times, contributing to the overall sluggishness of the page.How to reproduce
/settings/integrations/jira
page within the application.101
and remain in aPending
state.How to fix
Optimize WebSocket Connections:
use-websocket.js
anduseIntegrations.ts
to ensure WebSocket connections are correctly established and terminated.Pending
state.Improve Fetch Request Efficiency:
useIntegrations.ts
to identify and eliminate any redundant or unnecessary calls.Introduce Timeout Mechanisms:
Refactor Integration Loading Logic:
app
directory to enhance overall performance.Update Configuration Settings:
next.config.mjs
to optimize the Jira integration page.By addressing these areas, the performance issues on the
/settings/integrations/jira
page can be significantly mitigated, resulting in a smoother and more efficient user experience.Test these changes locally