thoth-station / user-api

Web Service exposing Thoth functions to the RESTful worlds
https://thoth-station.github.io/
GNU General Public License v3.0
8 stars 18 forks source link

GET api ​/container-images expecting list of images in container_images , instead it's in parameters dict #1780

Closed shreekarSS closed 2 years ago

shreekarSS commented 2 years ago

Describe the bug

Expecting list of images in container_images , instead it's in parameters dict { "container_images": [], "parameters": { "cuda_version": "11.1", "image_name": null, "library_name": "/lib64/ld-2.28.so", "os_name": "ubi", "os_version": "9", "package_name": "tensorflow", "page": 0, "per_page": 25, "python_version": "3.9", "rpm_package_name": "ghc-srpm-macros-1.4.2-7.el8.noarch", "symbol": "GLIBC_2.2.5" } }

To Reproduce Steps to reproduce the behavior:

  1. Try https://khemenu.thoth-station.ninja/api/v1/ui/#/Container%20Images/list_thoth_container_images

Expected behavior API should list of images in container_images dict

harshad16 commented 2 years ago

Based on the issue it seems like we are lacking data on the DB for python 3.9 for ubi9

however for the other patterns we do have solutions here:

curl -X 'GET' \
  'https://khemenu.thoth-station.ninja/api/v1/container-images?page=0&per_page=25&os_name=ubi&os_version=8&python_version=3.8' \
  -H 'accept: application/json'
harshad16 commented 2 years ago

The issue here is on empty result, instead of 404 data not found, api is sending the 200 error code.

harshad16 commented 2 years ago

We are missing the 404 error description for this function:

goern commented 2 years ago

what is the status on this?

shreekarSS commented 2 years ago

what is the status on this?

PR is yet get merged