Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Improve API error responses #3882

Merged
merged 9 commits into from
May 28, 2024
Merged

Improve API error responses #3882

merged 9 commits into from
May 28, 2024

Conversation

PetarTodorovv
Copy link
Collaborator

@PetarTodorovv PetarTodorovv commented May 17, 2024

Description
Improve the error response when deleting tenant scoped formation template without providing the tenant header. Currently, we return internal server error which is not very useful/informative. This PR changes that and we return "tenant is required" error.

Changes proposed in this pull request:

  • Add checks in the delete repo method for internal server error and return tenant is required error if tenant is not provided
  • Unit test adaptations

Related issue(s)

  • ...

Pull Request status

  • Implementation
  • Unit tests
  • Integration tests
  • chart/compass/values.yaml is updated
  • Mocks are regenerated, using the automated script

@PetarTodorovv PetarTodorovv added the 👋 request review Review required label May 17, 2024
@PetarTodorovv PetarTodorovv self-assigned this May 17, 2024
@PetarTodorovv PetarTodorovv requested review from a team as code owners May 17, 2024 08:00
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. 🦖 team-raptor Team Raptor Label do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels May 17, 2024
@kyma-bot kyma-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 17, 2024
la4ezar
la4ezar previously approved these changes May 20, 2024
@kyma-bot kyma-bot added lgtm Looks good to me! approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 20, 2024
@kyma-bot kyma-bot removed the lgtm Looks good to me! label May 21, 2024
@kyma-bot kyma-bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label May 28, 2024
@kyma-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: la4ezar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kyma-bot kyma-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2024
@PetarTodorovv PetarTodorovv removed the 👋 request review Review required label May 28, 2024
@ognyvrac ognyvrac removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 28, 2024
@kyma-bot kyma-bot merged commit 83ccf23 into main May 28, 2024
8 checks passed
@PetarTodorovv PetarTodorovv deleted the fix-ft-delete-error branch May 29, 2024 06:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/M Denotes a PR that changes 30-99 lines, ignoring generated files. 🦖 team-raptor Team Raptor Label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants