Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Conversation

@ForNeVeR
Copy link
Collaborator

@ForNeVeR ForNeVeR commented Apr 23, 2020

Closes #330.

This PR modifies the behavior of delete operation for both classic and reactive clients, and makes them to behave the same: they won't throw any exceptions on delete, but will return three collections:

  • files actually deleted
  • files that weren't found
  • any other error messages (should be asserted by caller to be empty)

With these changes, it's now possible to distinguish the situations when there was a delete error, and the situations when the client wasn't able to found a TFVC item we're about to delete.

In the latter case, it means the item was probably explicitly ignored by the user, so we could let IDEA to proceed with the item delete operation, and shouldn't handle this item via the TFVC client.

Another big change included into this PR is the reactive client test addition: from now on, the reactive client backend will be tested by our test suite, too.

Also, to enable the tests, I had to fix a small bug in our fork of TFS SDK, and update its version to 14.135.1.

@ForNeVeR ForNeVeR self-assigned this Apr 23, 2020
@ForNeVeR ForNeVeR force-pushed the bugfix/330.delete-ignored-files branch 19 times, most recently from 85a6a0c to 16021f9 Compare April 25, 2020 14:52
…330)

Reactive client will now behave the same as the classic one.
This helps us to make decisions based on the real situation client has
encountered: if the paths in question are marked as "not found", it
may mean that the paths are ignored and we have to delete them via external means.
Forbid telemetry, forbid keychain access.
@ForNeVeR ForNeVeR force-pushed the bugfix/330.delete-ignored-files branch from 16021f9 to 80e48ed Compare April 25, 2020 15:37
@ForNeVeR ForNeVeR requested a review from mfilippov April 25, 2020 15:55
@ForNeVeR ForNeVeR removed their assignment Apr 25, 2020
@ForNeVeR ForNeVeR marked this pull request as ready for review April 25, 2020 15:55
Copy link
Collaborator

@mfilippov mfilippov left a comment

Choose a reason for hiding this comment

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

LGTM

@mfilippov mfilippov merged commit c26ee54 into master Apr 27, 2020
@ForNeVeR ForNeVeR deleted the bugfix/330.delete-ignored-files branch April 30, 2020 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refreshing a TFVC repository's history throws errors and disables the plugin on restart

3 participants