airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <>
Subject [jira] [Created] (AIRAVATA-2994) Experiment input editors: transformations
Date Thu, 07 Mar 2019 22:53:00 GMT
Marcus Christie created AIRAVATA-2994:

             Summary: Experiment input editors: transformations
                 Key: AIRAVATA-2994
             Project: Airavata
          Issue Type: Sub-task
          Components: Django Portal
            Reporter: Marcus Christie
            Assignee: Marcus Christie

Add the ability to add transformations to input editors through input metadata, validations
(AIRAVATA-2762) and dependencies (AIRAVATA-2761).

 The schema I'm thinking of is
  "editor": {
    "transformations": [
        "type": "regex-replace",
        "value": ["\s+", "", ""]

A list of transformations can be specified. They will be applied in order to the input value
whenever it changes.

The type must be implemented by a Transformation class ([something like how the ValidatorFactory

Example: transform


That is, remove the initial header line and remove all newlines.

Other notes:
* transformations should be applied before validations
* need to add a {{transform(value)}} method to InputDataObjectType. transform() should apply
transformations and return the transformed value. If there are no transformations then transform()
should just return the given value

This message was sent by Atlassian JIRA

View raw message