QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
8 stars 1 forks source link

New site form broken #2143

Closed atruskie closed 1 week ago

atruskie commented 1 week ago

Describe the bug

Making a new site fails

To Reproduce Steps to reproduce the behavior:

  1. Go to a project page
  2. Click on new site, followed by choosing no for the more than one sensor question
  3. Fill out the forma and submit
  4. See error

Expected behavior

The submission works

Screenshots

image

Additional context

This error is caused by the fact that the project_ids array in the payload does not match the project_id route parameter.

This was an unintentional braking change introduced in https://github.com/QutEcoacoustics/baw-server/commit/0617d048fdca57ff4adb5a30a4dd6c72d6d3b827 which made the parameter requirements stricter.

This also affects the new point form (which is also a site beneath the covers).