Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

Adding property filter adds parameter to child process #258

Closed m-mohr closed 1 year ago

m-mohr commented 2 years ago

Adding a filter for eo:cloud_cover to the load_collection process adds a "parameter", which is not required:

What we get:


        "properties": {
          "eo:cloud_cover": {
            "process_graph": {
              "1": {
                "process_id": "lte",
                "arguments": {
                  "x": {
                    "from_parameter": "value"
                  },
                  "y": 25
                },
                "result": true
              }
            },
            "parameters": [
              {
                "description": "The property value to be checked against.",
                "name": "value",
                "schema": {
                  "description": "Any data type."
                }
              }
            ]
          }
        },

How it should be:


        "properties": {
          "eo:cloud_cover": {
            "process_graph": {
              "1": {
                "process_id": "lte",
                "arguments": {
                  "x": {
                    "from_parameter": "value"
                  },
                  "y": 25
                },
                "result": true
              }
            }
          }
        },