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

Code on third level not visible #240

Closed m-mohr closed 2 years ago

m-mohr commented 2 years ago

If you copy the following graph into the web editor:

{
  "process_graph": {
    "1": {
      "process_id": "apply_dimension",
      "arguments": {
        "dimension": "t",
        "process": {
          "process_graph": {
            "1": {
              "process_id": "array_apply",
              "arguments": {
                "context": {
                  "from_parameter": "data"
                },
                "data": {
                  "from_parameter": "data"
                },
                "process": {
                  "process_graph": {
                    "1": {
                      "process_id": "array_element",
                      "arguments": {
                        "index": {
                          "from_node": "4"
                        },
                        "data": {
                          "from_parameter": "context"
                        }
                      }
                    },
                    "3": {
                      "process_id": "array_element",
                      "arguments": {
                        "index": {
                          "from_node": "6"
                        },
                        "data": {
                          "from_parameter": "context"
                        }
                      }
                    },
                    "4": {
                      "process_id": "subtract",
                      "arguments": {
                        "x": {
                          "from_parameter": "index"
                        },
                        "y": 1
                      }
                    },
                    "6": {
                      "process_id": "add",
                      "arguments": {
                        "x": {
                          "from_parameter": "index"
                        },
                        "y": 1
                      }
                    },
                    "7": {
                      "process_id": "lt",
                      "arguments": {
                        "x": {
                          "from_node": "4"
                        },
                        "y": 0
                      }
                    },
                    "9": {
                      "process_id": "count",
                      "arguments": {
                        "data": {
                          "from_parameter": "context"
                        },
                        "condition": true
                      }
                    },
                    "10": {
                      "process_id": "gte",
                      "arguments": {
                        "x": {
                          "from_node": "6"
                        },
                        "y": {
                          "from_node": "9"
                        }
                      }
                    },
                    "11": {
                      "process_id": "if",
                      "arguments": {
                        "value": {
                          "from_node": "10"
                        },
                        "accept": {
                          "from_node": "3"
                        }
                      }
                    },
                    "12": {
                      "process_id": "if",
                      "arguments": {
                        "value": {
                          "from_node": "7"
                        },
                        "accept": {
                          "from_node": "1"
                        }
                      }
                    },
                    "16": {
                      "process_id": "array_create",
                      "arguments": {
                        "data": [
                          {
                            "from_node": "12"
                          },
                          {
                            "from_parameter": "x"
                          },
                          {
                            "from_node": "11"
                          }
                        ],
                        "repeat": 1
                      }
                    },
                    "17": {
                      "process_id": "mean",
                      "arguments": {
                        "data": {
                          "from_node": "16"
                        }
                      },
                      "result": true
                    }
                  }
                }
              },
              "result": true
            }
          }
        },
        "data": {
          "from_parameter": "data"
        }
      },
      "result": true
    }
  },
  "parameters": [
    {
      "schema": {
        "type": "object",
        "subtype": "raster-cube",
        "title": "Raster data cube",
        "description": "A raster data cube, an image collection stored at the back-end. Different back-ends have different internal representations for this data structure."
      },
      "name": "data"
    }
  ]
}

and navigate down to array_apply and then open the code for "process", it doesn't show any code. The CodeMirror instance is empty:

image