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

Let LocalFile.internalDelete return IStatus instead of boolean #560

Conversation

fedejeanne
Copy link
Contributor

@fedejeanne fedejeanne commented Jul 4, 2023

This PR will help identifying the underlying error that's causing #275 by replacing the vague MultiStatus returned by LocalFile::delete with a more describing IStatus created inside internalDelete.

@fedejeanne fedejeanne force-pushed the 275-LocalFile.internalDelete-returns-IStatus branch from 0c82f99 to 6f76904 Compare July 4, 2023 08:26
@fedejeanne fedejeanne marked this pull request as ready for review July 4, 2023 08:26
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

Test Results

       42 files  ±0         42 suites  ±0   55m 50s ⏱️ +5s
  3 754 tests ±0    3 749 ✔️  - 1    4 💤 ±0  1 +1 
11 265 runs  ±0  11 234 ✔️  - 1  30 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit bbf7392. ± Comparison against base commit 1422671.

♻️ This comment has been updated with latest results.

Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Looks good, that's a reasonable enhancement.
Just a few suggestions for minor code improvements.

And can you please resolve the conflicts.

By returning an IStatus instead of a boolean, the method can better tell
callers what went wrong when deleting. The idea is to replace the
MultiStatus returned by the "delete" method with a more describing
status.
@fedejeanne fedejeanne force-pushed the 275-LocalFile.internalDelete-returns-IStatus branch from 6f76904 to bbf7392 Compare July 17, 2023 06:05
@fedejeanne
Copy link
Contributor Author

Thank you @HannesWell for the suggestions!
I added your changes and also solved the conflicts.

Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you.

@HannesWell HannesWell merged commit 386a326 into eclipse-platform:master Jul 17, 2023
12 of 14 checks passed
@fedejeanne fedejeanne deleted the 275-LocalFile.internalDelete-returns-IStatus branch July 18, 2023 07:10
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.

None yet

2 participants