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

Add DELETE /v3/service_plans/:guid #3620

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

klapkov
Copy link
Contributor

@klapkov klapkov commented Nov 20, 2024

Is there a related GitHub Issue?

#3587

What is this change about?

With this change we are able to delete a service plan

Does this PR introduce a breaking change?

no

Acceptance Steps

Tag your pair, your PM, and/or team

Copy link
Member

@georgethebeatle georgethebeatle left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments. Added to those I think we need to have a very basic e2e test for completeness

logger := logr.FromContextOrDiscard(r.Context()).WithName("handlers.service-plan.delete")

planGUID := routing.URLParam(r, "guid")
if _, err := h.servicePlanRepo.GetPlan(r.Context(), authInfo, planGUID); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Can we skip the getting of the plan and just go on and delete it?

api/handlers/service_plan.go Show resolved Hide resolved
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.

2 participants