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

Further reduce the number of calls to Git #4163

Merged
merged 1 commit into from
Jun 22, 2023
Merged

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Jun 22, 2023

Related to #4111

This PR further reduce the number of calls that we make to Git. It does this by moving the git branch parsing logic out of the GitReader class and into the ExperimentsModel.

This is some prework for the issue/fix detailed here.

Edit: Adding a fix for the issue may not be required.

this.dvcRoot
)
])
const allBranches = await this.internalCommands.executeCommand<string[]>(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[F] I realised that this did not make sense when digging further into the underlying calls/logic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have picked this up earlier.

@mattseddon mattseddon marked this pull request as ready for review June 22, 2023 00:49
@mattseddon mattseddon enabled auto-merge (squash) June 22, 2023 19:34
@codeclimate
Copy link

codeclimate bot commented Jun 22, 2023

Code Climate has analyzed commit 6c5f1ef and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.2% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 1b9e554 into main Jun 22, 2023
3 checks passed
@mattseddon mattseddon deleted the reduce-number-git-calls branch June 22, 2023 19:49
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.

2 participants