-
Notifications
You must be signed in to change notification settings - Fork 1
/
HydroServer Redesign Part 21.txt
66 lines (34 loc) · 2.01 KB
/
HydroServer Redesign Part 21.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
HydroServer Redesign Part 21
**** Summary ****
- Fix for WDC-1416 - Revise server-side checks for separation of metadata and data uploads
- Introduce a 'ValidationQualifier' property in the validator class to characterize the current process - meta_data or data_values
- In validation processing refer to qualifier value to a.) exclude data values from metadata uploads and b.) exclude metadata from data values uploads
NOTE: The current implementation uploads each file prior to separation processing. If, for example, the user includes a very large data values file as in a metadata upload, the uploader will require a second upload of the file during data values upload
**** HydroServerTools/Controllers/api ****
- RevisedUploadController.cs
- class DebugData - add property: validationQualifier
- method Post()
- Add logic to retrieve 'validationQualifier' from submitted form
- Add validationQualifier argument to ValidateFileContentsAsync(...) call
- method ValidateFileContentsAsync(...)
- Assign validationQualifier argument to validator's ValidationQualifier property
**** HydroServerTools/Validators ****
- CsvValidator.cs
- Add property: ValidationQualifier
- method ValidateFileContents()
- Add logic to reference property value during validation processing
**** HydroServerTools/Views/CSVUpload ****
- DragAndDropFiles.cshtml
- remove some commented out code, update some comments
- jQuery File Upload configuration:
- include 'validationQualifier' (as valued on server during page build) in submitted form data
- SelectUploadType.cshtml
- $(document).ready(...)
- Increase setTimeout delay to 500 milliseconds for smoother screen transitions...
- ValidateFiles.cshtml
- function buildValidationResultsMarkup(...)
- Revise markup creation logic to recognize the following validation errors:
- DataValuesSubmittedAsMetadata
- MetadataSubmittedAsDataValues
*** Test Files ****
- Add some more data values test files