-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
this.pathInSet(path, modifiedAgainstCache) | ||
), | ||
...modifiedAgainstCache | ||
]) | ||
} | ||
|
||
private setModifiedAndNotInCache( | ||
private setComplexStatuses( |
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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
Code Climate has analyzed commit da51c1e and detected 1 issue on this pull request. Here's the issue category breakdown:
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. |
Fixes #1646.
Screenshots (project in same state as issue)
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):