-
Notifications
You must be signed in to change notification settings - Fork 1
/
HydroServer Redesign Part 5.txt
185 lines (72 loc) · 3.05 KB
/
HydroServer Redesign Part 5.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
HydroServer Redesign Part 5
**** Summary ****
- Additions in the following areas:
- Encoding utility class
- Select Upload Type view
- DB Table Counts Web API route
- Modified Drag And Drop view
- Restore original MethodsRepository calls
- Add IRepository method
**** .vs ****
- Visual Studio 2017 adds some directories and storage.ide
**** HydroServerTools ****
- HydroServerTools.csproj
- new files:
- Utilities\EncodingContext.cs
- Views\CSVUpload\SelectUploadType.cshtml
**** HydroServerTools/App_Start ****
- WebApiConfig.cs
- Add RevisedUploadController route: api/revisedupload/post/requestdbtablecounts
**** HydroServerTools/Controllers ****
- CSVUploadController.cs
- method RevisedUploadData(...) - add new/revised view references
- HomeController.cs
- method Index() - Add TempData "message" value
- method ClearTablesHandler(...) - restore original MethodsRepository calls
**** HydroServerTools/Controllers/api ****
- RevisedUploadController.cs
- New HttpPost method: RequestDbTableCounts()
- Post Method:
- Revise form data handling to retrieve 'File names and types'
- File 'chunk' processing - restore ealier contentStream.CopyToAsync calls to avoid encoding issues
- DeleteFile(...) - revise file delete processing
- Method ValidateFileContentsAsync(...)
- include contentType string in arguments
- Validated file processing - add stream flush
- UploadController.cs
- Restore original MethodsRepository calls...
**** HydroServerTools/Scripts/Custom ****
- UploadHelper.js
- file upload 'done' - add a delay to startUploadMonitor() call
**** HydroServerTools/Utilities ****
- New file: EncodingContext.cs
- FileContext.cs
- Revise to handle 'file names and types'
- RepositoryContext.cs
- method LoadDB(...) - add FileStream flush() call
**** HydroServerTools/Validators ****
- CsvValidator.cs
- class CsvValidationResults - Remove method: SomeHeadersValid()
- class CsvValidator
- Revise logic to handle 'content type'
- method ValidateFileContents() - add logic to distingush between required and optional headers
**** HydroServerTools/Views/CSVUpload ****
- DragAndDropFiles.cshtml
- Revise header to reference TempData["qualifier"]
- Fileupload 'submit' - capture file name and type from file objects for upload
- New file: SelectUploadType.cshtml
**** HydroServerTools/Views/Home ****
- Index.cshtml
- Add buttons: 'Full CSV File Upload' and 'Basic CSV File Upload'
**** HydroServerToolsBusinessObjects ****
- Ressources.cs - add string CSV_FILES_HYDROSERVER
**** HydroServerToolsBusinessObjects/ModelMaps ****
- GenericMap.cs
- Add methods: GetRequiredPropertyNames() and GetOptionalPropertyNames()
**** HydroServerToolsRepository/HydroServerToolsRepository ****
- IRepository.cs
- new interface definition: IRepository
- Repository.cs
- Implement IRepository method(s)
**** Test CSV Files ****
- Changes to Martin's files