Tripletex / Tripletex/tripletex-api2

isCustomer set to false after PUT /customer/{id}

Open
#45 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
49
Forks
47
Avg merge
1h 1m
Merged PRs (30d)
1

Description

There seems to be some hidden validation going on when updating customers via the API.

Steps to reproduce:

  1. In Tripletex web client, change existing customer to type "Kunde/leverandør" and click SAVE.
  2. PUT to /customer/{id} endpoint with or without any changes to customer attributes.
  3. Reload customer in web client and see that customer type has changed to "Leverandør".

Expected behaviour:

  1. Customer type should remain the same after calling PUT /customer/{id}, not change to "Leverandør".

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported PUT /customer/{id} sequence after setting an existing customer to “Kunde/leverandør” in the Tripletex web client. Trace the API entry point for this update and verify that the customer type remains unchanged after a PUT with and without attribute changes.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.