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

Decoupling changedFiles & conflicts API in PR details & file view #171

Merged
merged 3 commits into from
Mar 7, 2025

Conversation

sinhaviraj
Copy link
Contributor

@sinhaviraj sinhaviraj commented Mar 5, 2025

We found that for larger repos the conflicts API would always time out within 30 seconds and the UI wouldn't load. In order to fix that I have decoupled the changedFiles & conflicts API calls.

Now isConflicted is nomore the property on fileDiffs and is instead stored as an array of conflictedFiles in state. The rendering component would then compare this array with the fileName and if fileName exists in conflictedArray then mark this as a conflicted file.

Loom video explaining the changes - https://www.loom.com/share/097ef30c0301409d95e0b6e12d9e5a63

Loom Video trying the changes on larger repos - https://www.loom.com/share/8681ec2bf2cf4026b3869afdff78c802

@sinhaviraj sinhaviraj requested a review from pastelsky March 5, 2025 15:59
@sinhaviraj sinhaviraj changed the title Decoupling ChangedFiles & Conflicts API Decoupling changedFiles & conflicts API in PR details & file view Mar 5, 2025
@bwieger-atlassian-com
Copy link
Collaborator

@sinhaviraj sinhaviraj merged commit e9f808c into atlassian:main Mar 7, 2025
1 check passed
@sinhaviraj sinhaviraj deleted the vs/fast-AFM-PR branch March 7, 2025 06:12
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.

2 participants