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

Mark files in deleted diff and not in cache status as not in cache #1650

Merged
merged 2 commits into from
May 4, 2022

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented May 4, 2022

Fixes #1646.

Screenshots (project in same state as issue)

image

image

Note: For the time being I have left the children of "not in cache" folders undecorated as the data provided is not granular enough. This should be solved by the new dvc data:status command's output (and our subsequent rewrite of this subsystem):

image

@mattseddon mattseddon added the bug Something isn't working label May 4, 2022
@mattseddon mattseddon self-assigned this May 4, 2022
this.pathInSet(path, modifiedAgainstCache)
),
...modifiedAgainstCache
])
}

private setModifiedAndNotInCache(
private setComplexStatuses(
Copy link

Choose a reason for hiding this comment

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

Function setComplexStatuses has 31 lines of code (exceeds 30 allowed). Consider refactoring.

@@ -371,5 +371,187 @@ describe('RepositoryState', () => {
untracked: emptySet
})
})

it('should display all tracked paths as not in cache when the project is first opened (before pull)', () => {
const diff = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[F] This is the data provided from our demo project when it is in the state shown in the screenshots

@mattseddon mattseddon marked this pull request as ready for review May 4, 2022 11:27
@mattseddon mattseddon requested review from shcheklein and a team May 4, 2022 11:28
@codeclimate
Copy link

codeclimate bot commented May 4, 2022

Code Climate has analyzed commit da51c1e and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

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 96.7% (0.0% change).

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File decorated as deleted wrongly
3 participants