-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a users selects a file, the default uri also gets logged #11
Comments
This issue is appearing in all the tests if we have set the default value to URI then both values (iut-uri and iut-file) are logged in to log.xml. The teamengine is responsible to set the form result not the ets so we need to update the teamengine and set null value to URI in case of the document is uploaded. |
Proposed implementation for fix:
|
Merge PR opengeospatial/teamengine#355 before this. |
It makes sense to validate the input and as most ets have the possibility to pass an URL or file this can be done in the teamengine code. But I don't think it is necessary to fix the ids of the form inputs. Instead the values could be passed to the method 'validate'. Furthermore the name 'validate' should be more concrete, e.g. 'validateIutInputs'.
I think this is the most important step. But I think this should not be done in the validate function (when the user clicks start), but when the user has uploaded a file. |
Without ID filed how we can identify the filed by using values whether it is iut field or another field, it could be anything for e.g. schema URL or anything. We need ID or Name filed to clear the iut filed on the basis of file upload. |
@keshav-nangare Sure, the ids are required to identify the form fields. But they should not be fix and stated in the teamengine. Instead pass the value to the teamengine code or pass the id to the teamengine code and retrieve the value with getElementById( passedID ). |
I have updated the validation method to
Also I have created the new method |
@keshav-nangare We discussed this issue again and decided to remove the example from the input field. Furthermore, please check if both (URL and file) are available when the user starts the test run. |
Updated the form validation and moved the example above the input box and removed the default URL. |
Example from the log.xml. key="uri" should be null, if not is hard to know which one was ultimately tested.
The text was updated successfully, but these errors were encountered: