ji-devs / ji-cloud

Other
12 stars 17 forks source link

Module indexes off by 1 in `PATCH` request #3216

Open RickyLB opened 2 years ago

RickyLB commented 2 years ago

What:

In a coverless Jig, moving a module to the very top of the list does not save the placement.

Endpoint:

https://api.sandbox.jigzi.org/v1/module/draft/{module_id}

Minimum Index Request Body:

{jigId: "{jig_id}", body: null, index: 1, isComplete: null}

Change requested:

Currently, when moving an index to the top of the list, the minimum index is 1. Changing the minimum to 0 should fix this issue.

MendyBerger commented 2 years ago

Note: only happens when there's no cover