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

Removal of Unnecessary Operation #1396

Closed

Conversation

ralikio
Copy link
Member

@ralikio ralikio commented Oct 30, 2024

Description

Delete operation is not necessary at this point of binding removal since binding removal should pickup such leftovers.

Related issue(s)

#284

@ralikio ralikio requested a review from a team as a code owner October 30, 2024 09:38
@kyma-bot kyma-bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 30, 2024
@kyma-gopher-bot kyma-gopher-bot enabled auto-merge (squash) October 30, 2024 09:38
@kyma-bot kyma-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 30, 2024
@ralikio ralikio added the kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature label Oct 30, 2024
@kyma-project kyma-project deleted a comment from github-actions bot Oct 30, 2024
@kyma-bot kyma-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 30, 2024
@@ -37,11 +37,6 @@ func (b *UnbindEndpoint) Unbind(ctx context.Context, instanceID, bindingID strin
instance, err := b.instancesStorage.GetByID(instanceID)
switch {
case dberr.IsNotFound(err):
err = b.bindingsStorage.Delete(instanceID, bindingID)
Copy link
Contributor

Choose a reason for hiding this comment

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

This was deliberately introduced to let the job remove orphans.

@ralikio ralikio closed this Oct 30, 2024
auto-merge was automatically disabled October 30, 2024 10:46

Pull request was closed

@ralikio
Copy link
Member Author

ralikio commented Nov 4, 2024

Reopening PR to check if all tests pass.

@ralikio ralikio reopened this Nov 4, 2024
@kyma-gopher-bot kyma-gopher-bot enabled auto-merge (squash) November 4, 2024 08:34
@ralikio ralikio closed this Nov 4, 2024
auto-merge was automatically disabled November 4, 2024 12:46

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants