Skip to content

"Listable" tools don't work if they're not in the "list-menu" #264

Description

@trev-dev

Take for example the following setup:

{
  "tools": [
    {
      "order": "4",
      "within": false,
      "command": {
        "within": true,
        "select": true
      },
      "type": "query",
      "instance": "5333--childcare-by-name",
      "enabled": true,
      "title": "Search By Facility Name",
      "position": "shortcut",
      "showTitle": true,
      "icon": "travel_explore"
    }
  ],
  "layer": {
    "queryies": [
      {
        "id": "childcare-by-name",
        "title": "Search By Facility Name",
        "description": "Find a child care facility by name",
        "parameters": [
          {
            "id": "facility-name",
            "title": "Query",
            "type": "input"
          }
        ],
        "predicate": {
          "operator": "and",
          "arguments": [
            {
              "operator": "contains",
              "arguments": [
                {
                  "operand": "attribute",
                  "name": "OCCUPANT_NAME"
                },
                {
                  "operand": "parameter",
                  "id": "facility-name"
                }
              ]
            }
          ]
        }
      }
    ]
  }
}

Let's pretend that I don't want this query in the list-menu, but I want it to be able to list features. The resulting query can get results, but the interface claims there are no features. If I change the position to list-menu, the results appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions