ElektraInitiative / PermaplanT

https://www.permaplant.net
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Return 409 conflict when POST /maps with taken name. close #758 #1298

Open horenso opened 5 months ago

horenso commented 5 months ago

Summary

Return 409 conflict when creating a new map with existing name instead of a 500 server error. Also add a simple regression test.

Basics

Checklist

First Time Checklist

Review

horenso commented 5 months ago

jenkins build please

markus2330 commented 5 months ago

Thx for the review!

I suggest to update https://github.com/ElektraInitiative/PermaplanT/issues/758 and add a frontend task or create a left over issue.

It is better to create new issues (I created #1307), extending old ones is often confusing, especially if it involves different assignee.

chr-schr commented 5 months ago

jenkins build please