Skip to content

Remove the compatible_models from the /v1/apps/{id}/bricks #114

@dido18

Description

@dido18

Describe the problem

The v1/apps/{id}/bricks response must not include the compatible_models.

To reproduce

curl http://localhost:8800/v1/apps/ZXhhbXBsZXM6aW1hZ2UtY2xhc3NpZmljYXRpb24/bricks | jq
  "bricks": [
    {
      "id": "arduino:web_ui",
      "name": "WebUI - HTML",
      "author": "Arduino",
      "category": "ui",
      "status": "installed",
      "require_model": false,
      "compatible_models": null
    },
    {
      "id": "arduino:image_classification",
      "name": "Image Classification",
      "author": "Arduino",
      "category": "video",
      "status": "installed",
      "variables": {
        "CUSTOM_MODEL_PATH": "/home/arduino/.arduino-bricks/ei-models",
        "EI_CLASSIFICATION_MODEL": "/models/ootb/ei/mobilenet-v2-224px.eim"
      },
      "config_variables": [
        {
          "name": "CUSTOM_MODEL_PATH",
          "value": "/home/arduino/.arduino-bricks/ei-models",
          "description": "path to the custom model directory",
          "required": false
        },
        {
          "name": "EI_CLASSIFICATION_MODEL",
          "value": "/models/ootb/ei/mobilenet-v2-224px.eim",
          "description": "path to the model file",
          "required": false
        }
      ],
      "require_model": true,
      "compatible_models": null
    }
  ]
}

Expected behavior

curl http://localhost:8800/v1/apps/ZXhhbXBsZXM6aW1hZ2UtY2xhc3NpZmljYXRpb24/bricks | jq
  "bricks": [
    {
      "id": "arduino:web_ui",
      "name": "WebUI - HTML",
      "author": "Arduino",
      "category": "ui",
      "status": "installed",
      "require_model": false,
    },
    {
      "id": "arduino:image_classification",
      "name": "Image Classification",
      "author": "Arduino",
      "category": "video",
      "status": "installed",
      "variables": {
        "CUSTOM_MODEL_PATH": "/home/arduino/.arduino-bricks/ei-models",
        "EI_CLASSIFICATION_MODEL": "/models/ootb/ei/mobilenet-v2-224px.eim"
      },
      "config_variables": [
        {
          "name": "CUSTOM_MODEL_PATH",
          "value": "/home/arduino/.arduino-bricks/ei-models",
          "description": "path to the custom model directory",
          "required": false
        },
        {
          "name": "EI_CLASSIFICATION_MODEL",
          "value": "/models/ootb/ei/mobilenet-v2-224px.eim",
          "description": "path to the model file",
          "required": false
        }
      ],
      "require_model": true,
    }
  ]

Arduino App CLI version

main

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions