Orderable search issues in the API and in the kit unpack list creation

Description

During checking OLMIS-6430, I noticed that using the API console, I can't find orderable when I enter the id in the orderable ID field.

Reproduction steps:

  1. Use GET api/orderables and enter some orderable Id e.g. 469c6ed4-573c-4802-bc9e-d118f8c3c068.

  2. It returned a message :

  3. However, one can search by ID when using the Postman, so it's probably a bug in the API Console.

  4. Log into the application as administrator and go to Administration > Products.

  5. Click the "Edit" button next to any product.

  6. Go to the "Kit Unpack List" tab.

  7. Click the "Add Product" button.

  8. Enter any value in the "Search Product" input.

  9. The error from the screenshot occurs, and all products disappear from the modal.

  10. Remove the previously-entered value.

  11. The error re-occurs, and still no products are visible in the modal.

Expected results:

  • It should be possible to search by orderable ID in API Console;

  • It should be possible to search for products in the kit unpack list creation modal;

  • The products shouldn't disappear from the modal after cancelling the search.

  • There should be inputs on the modal accepting name and code values.

 

 

Dev note:

  • We should follow the same patter for filtering as with any other admin screen - have a separate input for all every thing that we search

 

Environment

None

Assignee

Klaudia Pałkowska

Reporter

Joanna Szymańska

Labels

Story Points

3

Time tracking

28h

Components

Sprint

None

Fix versions

Priority

Critical
Configure