c0c0n3 / kitt4sme.live

On a mission to bring AI to the shop floor: https://kitt4sme.eu/
MIT License
1 stars 28 forks source link

[Datasheets] Fix the UUID in order to have compatibility between Datasheets, Platform Configurator and Adaptive Questionnaire #347

Closed karikolehmainen closed 11 months ago

karikolehmainen commented 1 year ago

@vcutrona

vcutrona commented 1 year ago

As agreed during the last technical meeting with the coordinator, I focused on the user on-boarding part of the flow, which is the most critical for the next demo.

Testing setup

OS Ubuntu 22.04.3 LTS Browser Firefox 117.0.1 (Mozilla Firefox Snap for Ubuntu) Adaptive Questionnaire (AQ) version: 1.6.6 Platform Configurator (PC) version: 0.5.0

Issues to report

Additional context

For details about the request payload as sent by the PC to RAMP, check the 'KitSetDTO' payload at https://kitt4sme.collab-cloud.eu/platform-configurator/docs

karikolehmainen commented 1 year ago

Findings from the demo flow:

vcutrona commented 1 year ago

@karikolehmainen about the PC error: the given datasheet does not match the current schema; indeed, the key information.component_uuid is missing from the json (and thus, it is impossible to create the payload to send to RAMP, which requires the tool uuid). As I suggested in my previous comment, we need to fix some entries in the database (which possibly have been inserted by using an old version of the datasheets application), otherwise the PC will skip all of them if not providing the required properties (the exception is caught and the datasheet is discarded)

karikolehmainen commented 11 months ago

Schema is now fixed in datasheets backend. API is added to retrieve datasheets with valid RAMP UUID's also new datasheets must have valid UUID when created so issue should not arise again. (two out of 15 datasheets currently do not have valid UUID as the components have not been added to martketplace)