Add filter to return exported results #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR
returnsitems from actinia module toparameters(as it really is a template placeholder value which needs to be filled, even though in the end an output is created)returnsarray for actinia modulesreturnsto both/modulesand/actinia_modulesendpointsreturns=exportis specified, it looks up export statements in the process chain template and adds them to the results arrayreturns=persistentwill be added in the future to add all parameters which have the'gisprompt.age' == 'new', value from GRASS GIS. This won't work out-of-the-box because only the GRASS GIS modules which have a placeholder in the template are requested for self-description yet.Example of new self description for default actinia module
slope_aspect{ "categories": [ "actinia-module", "global-template" ], "description": "Calculates slope and aspect of elevation map.", "id": "slope_aspect", "parameters": [ { "default": "FCELL", "description": "Type of output aspect and slope maps. Storage type for resultant raster map. [generated from r.slope.aspect_precision]", "name": "datatype", "optional": true, "schema": { "enum": [ "CELL", "FCELL", "DCELL" ], "type": "string" } }, { "description": "Name for output slope raster map. [generated from r.slope.aspect_slope]", "name": "name_of_output_slope", "optional": true, "schema": { "subtype": "cell", "type": "string" } }, { "description": "Name for output aspect raster map. [generated from r.slope.aspect_aspect]", "name": "name_of_output_aspect", "optional": true, "schema": { "subtype": "cell", "type": "string" } } ], "projects": [], "returns": [ { "description": [ "Exported result from exporter r.slope.aspect aspect parameter" ], "name": "{{ name_of_output_aspect }}", "schema": { "subtype": "GTiff", "type": "raster" } }, { "description": [ "Exported result from exporter exporter raster parameter" ], "name": "{{ name_of_output_slope }}", "schema": { "subtype": "GTiff", "type": "raster" } } ] }Example of new self description for default actinia module
point_in_polygon{ "categories": [ "actinia-module", "global-template" ], "description": "Imports point and polygon and checks if point is in polygon.", "id": "point_in_polygon", "parameters": [ { "description": "The input source that may be a landsat scene name, a sentinel2 scene name, a postGIS database string, or an URL that points to an accessible raster or vector file [generated from import_descr_source]", "name": "url_to_geojson_point", "optional": true, "schema": { "type": "string" } } ], "projects": [ "nc_spm_08" ], "returns": [ { "description": [ "Exported result from exporter exporter map parameter" ], "name": "point", "schema": { "subtype": "GeoJSON", "type": "vector" } } ] }