Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Customer price model is created despite of incomplete request body #137

Open
adamczykba opened this issue Aug 7, 2019 · 0 comments
Open
Labels

Comments

@adamczykba
Copy link
Contributor

adamczykba commented Aug 7, 2019

Describe the bug
When defining the customer price model for the first time, it is updated despite of the error being thrown due to incomplete PUT request body.

To Reproduce
Steps to reproduce the behavior:

  1. Send PUT request to /services/[service_id]/pricemodel/customer/[customer_id] without all required parameters in the request body
  2. Observe error message in the response
  3. Check the price model for the service for given customer

Expected behavior
Price model for customer was not updated

Observed behavior
Price model for customer is created despite of error (its values are copied from previously defined pricemodel for the service)

Screenshots
obraz
obraz
obraz

Additional context
N/A

@adamczykba adamczykba added the bug label Aug 7, 2019
@kowalczyka kowalczyka changed the title Customer Price model record is created despite of incomplete request body Customer price model is created despite of incomplete request body Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant