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

Delete issues #3983

Merged
merged 1 commit into from
Mar 31, 2022
Merged

Delete issues #3983

merged 1 commit into from
Mar 31, 2022

Conversation

shawkins
Copy link
Contributor

Description

Addressing various delete issues from #3982

  • adding deleteList methods that provide more information about exactly what has been deleted
  • clarified the javadocs of existing delete methods
  • have delete() of a list return false when an item can't be deleted
  • added these changes to the resourceList interfaces - it was easiest to remove what had already been deprecated

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

Copy link

@XComp XComp left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my comments, @shawkins . I only looked at the list deletion code I described in #3982 . It fixes the overall issue. I have a few comments, though. Please have a look below.

@shawkins
Copy link
Contributor Author

@XComp this pr will change based upon the comments #3982

@shawkins
Copy link
Contributor Author

@manusa here's what this looks like with keeping the boolean return.

@shawkins
Copy link
Contributor Author

After chatting with @manusa we'll update to returning void for now, and capture a new issue for implementing collection delete against the api server (should be a small change) with the eventual goal of processing the return from single item and collection delete to return a list of objects or ids.

@shawkins
Copy link
Contributor Author

The big issue with changing to void rather than boolean is fixing up all of the tests - there are a couple hundred places where we are checking for that response. I'll separate that off as a different issue.

@shawkins shawkins force-pushed the delete branch 2 times, most recently from 6fbc52a to 581c6f8 Compare March 28, 2022 15:57
@sonarcloud
Copy link

sonarcloud bot commented Mar 28, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

37.5% 37.5% Coverage
0.0% 0.0% Duplication

@manusa manusa added this to the 6.0.0 milestone Mar 31, 2022
@manusa manusa merged commit 6266644 into fabric8io:master Mar 31, 2022
@shawkins shawkins mentioned this pull request Apr 1, 2022
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.

4 participants