-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHydroServer Redesign Part 22.txt
84 lines (64 loc) · 2.9 KB
/
HydroServer Redesign Part 22.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
HydroServer Redesign Part 22
**** Summary ****
- Major changes in Standard Upload UI workflow
- Reduce page count to two
- Page 1: File upload, validation and database loading with
unique styled progress bars for each
- Page 2: Upload Summary page, largely unchanged from previous implementation
- Implementation of promise-based, asynchronous 'worker' modules for file validation and database loading status reporting
**** HydroServerTools ****
- HydroServerTools.csproj
- New files:
- Validators\IvalidationComplete.cs
- Scripts\custom\workerMonitor.js
- Scripts\custom\workers\workerDbLoadStatus.js
- Scripts\custom\workers\workerCsvVlaidationResults.js
- Views\CSUpload\DragAndDropFilesRevised.cshtml
**** HydroServerTools/App_Start ****
- WebApiConfig.cs
- new API routes: file validation results, db load status and db load status for file
**** HydroServerTools/Controllers ****
- CSVUploadController.cs
- r: "DragAndDropFiles" w: "DragAndDropFilesRevised"
**** HydroServerTools/Controllers/api ****
- RevisedUploadController.cs
- add class: dbLoadStatus
- On REST interface methods - replace MVC Http attributes with System.Web.Http attributes
to avoad 'method does not accept GET' errors
- New methods for new API routes
- Revise signatures of miscellaneous methods
**** HydroServerTools/Scripts/Custom ****
- new files:
- worker Monitor.js - JavaScript 'class' for promise-based message exchange with workers
- /workers/workerCsvValidationResults.js - worker code for validation results retrieval from server
- /workers/workerCsvDbLoadStatus.js - worker code for db load status retrieval from server
**** HydroServerTools/Utilities ****
- DbLoadContext.cs
- Class: dbLoadContext
- Add enumDbLoadState
- Comment out initializing constructor - never called
- Add property: DbLoadState
- ValidationContext.cs
- Class: ValidationContext<TValidator> - TValidator inherit from IValidationComplete
**** HydroServerTools/Validators ****
- New interface file: IValidationComplete.cs
- CsvValidator.cs
- Class: CsvValidationResults
- derive from IValidationComplete
- Class: CsvValidator
- derive from IValidationComplete
- add private static Dictionary: validationTypesToFriendlyNames
- Miscellaneous changes in indentation/spacing
- Miscellaneous changes to error messages
- ValidationResult.cs
- Class: ValidationResult<TValidator>
- derive from IValidationComplete
**** HydroServerTools/Views/CSVUpload ****
- new file:
- DragAndDropFilesRevised.cshtml - revised Standard Upload UI workflow
- DragAndDropFiles.cshtml
- No longer used in Production
- Updated for testing purposes with some worker-based file validation code
- ValidateFiles.cshtml
- No longer used in Production
- Updated for testing purposes with some worker-based db load status code