airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Brylinski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2514) Documentation on explaining different input types, methods and their validations required
Date Tue, 05 Sep 2017 18:58:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16154136#comment-16154136
] 

Michal Brylinski commented on AIRAVATA-2514:
--------------------------------------------

One of my production gateways is a simple example of form validation that prevents submitting
either incomplete or incorrect data:

[http://brylinski.cct.lsu.edu/content/ethread-launcher?pass=01MEsVTW]

If you just hit the submit button, the gateway will show two errors:

* Target ID field is required.
* Target sequence field is required.

and the required fields will be highlighted in red.

-----
"Target ID" should be a single word containing 3-10 alphanumerical characters. A user can
type only up to 10 characters. Further, submitting:

"ab" will result in an error "Target ID needs to be at least 3 characters long"

"ab ab ab" will result in an error "Target ID can be maximum 1 word long"
-----
"Target sequence" should be a sequence in FASTA format, single chain 50-999 residues. Inserting:

"AAAAA" will result in an error "This server accepts only protein sequences 50-999 residues
in length. Your sequence has 5 residues." This is because each letter A corresponds to one
amino acid (alanine).

"AABBBBBBBBBBXXXXX" will result in an error "This server accepts only protein sequences 50-999
residues in length. Your sequence has 2 residues." This is because letters "B" and "X" are
invalid - do not code any amino acids.
-----

In general, there should be a set of common validation rules, such as the number of characters,
words, plain text, etc., for simple text, e.g. "Target ID" above. Moreover, there should be
a possibility to add a piece of PHP code to validate domain-specific input data, such as amino
acids, e.g. "Target sequence" above.

Incomplete or incorrect form should not be submitted, instead, a user need to be notified
what the problem is so that s/he can fix it. There should be a possibility to add validation
to any element of the web form.


> Documentation on explaining different input types, methods and their validations required
> -----------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-2514
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2514
>             Project: Airavata
>          Issue Type: Sub-task
>            Reporter: Eroma
>            Assignee: Michal Brylinski
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message