aboutsummaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
Diffstat (limited to 'report')
-rw-r--r--report/deliverable-3/main.synctex.gzbin84024 -> 85283 bytes
-rw-r--r--report/deliverable-3/main.tex1
-rw-r--r--report/deliverable-3/main.toc2
-rw-r--r--report/deliverable-3/texts/conclusion.tex8
-rw-r--r--report/deliverable-3/texts/contributions.tex7
-rw-r--r--report/deliverable-3/texts/files.tex10
-rw-r--r--report/deliverable-3/texts/scrum.tex2
-rw-r--r--report/deliverable-3/texts/work.tex2
8 files changed, 22 insertions, 10 deletions
diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz
index c8c75be..d6fcc0f 100644
--- a/report/deliverable-3/main.synctex.gz
+++ b/report/deliverable-3/main.synctex.gz
Binary files differ
diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex
index 0e78ea1..b7bb1b5 100644
--- a/report/deliverable-3/main.tex
+++ b/report/deliverable-3/main.tex
@@ -32,6 +32,7 @@
\input{texts/testing}
\input{texts/process-management}
\input{texts/conclusion}
+ \input{texts/contributions}
\appendix
\newpage
diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc
index 573b497..757c3a2 100644
--- a/report/deliverable-3/main.toc
+++ b/report/deliverable-3/main.toc
@@ -15,7 +15,7 @@
\contentsline {subsection}{\numberline {5.1}Directory Structure}{6}
\contentsline {subsection}{\numberline {5.2}File Upload}{6}
\contentsline {subsection}{\numberline {5.3}File Download}{6}
-\contentsline {section}{\numberline {6}Testing}{6}
+\contentsline {section}{\numberline {6}Testing}{7}
\contentsline {subsection}{\numberline {6.1}Integration Testing}{7}
\contentsline {subsubsection}{\numberline {6.1.1}CORS}{7}
\contentsline {section}{\numberline {7}Process Management and Deployment}{7}
diff --git a/report/deliverable-3/texts/conclusion.tex b/report/deliverable-3/texts/conclusion.tex
index 0e40979..33c018a 100644
--- a/report/deliverable-3/texts/conclusion.tex
+++ b/report/deliverable-3/texts/conclusion.tex
@@ -1,5 +1,7 @@
\section{Conclusion}
-As a group a lot of progress was made for this submission, we were proactive in setting out goals for ourselves and feel we are now well on track to produce an outstanding final hand in. Our continued use of scrum has helped keep workload consistent and effective right through to this submission and we hope to continue in this way. Scrum is essential in our progress as it helps to manage time and organise the team work and so this process will be used for the duration of the project. Having now combined our work with the HCI group we are looking forward to working with teams focused on machine learning to tie together all 3 sections of the application to create the desired system set out by the project owner.
+As a group, we are very pleased with the process and outcome of this group project. Our final product consists of substantial contributions from all our team members. It was tested and integrated with the systems produced by ML and HCI groups, completes all of the tasks initially identified and the development relied heavily on our use of scrum.
-\subsection{Next Tasks}
-Viewing the system as a whole, substantial progress has been made in completing each required task whilst also managing time for each task appropriately. Looking further ahead, our next objectives will surround performance enhancing, further testing and finally completing the integration process with the rest of the system. The process for these will include a large amount of analysis on the working server, which include finding delays between certain requests and responses, measuring time taken for converting files and testing for bugs after integration. Another important aspect is the security of the application, and preventing bugs from leading to exploits which can be used for malicious use. This is particularly important within the medical industry as data confidentiality and integrity are apart of practitioners' policy. One method of testing for this task would be penetration testing, using a suite of tools to attack the application, which would determine any vulnerabilities that exist. \ No newline at end of file
+For the final deadline we successfully combined all parts of the system into one final server, completing any remaining tasks which included file management, file conversion and testing. Our system was integrated both with our assigned ML and HCI groups, as well as with other groups, thus ensuring the compatibility of our contribution to the whole pathology system.
+
+\subsection{Future Development}
+...
diff --git a/report/deliverable-3/texts/contributions.tex b/report/deliverable-3/texts/contributions.tex
new file mode 100644
index 0000000..bc448bb
--- /dev/null
+++ b/report/deliverable-3/texts/contributions.tex
@@ -0,0 +1,7 @@
+\section{Individual Contributions}
+\subsection{Tom Harley}
+\subsection{Josh Lee}
+\subsection{Calum Duff}
+\subsection{Johannes Weck}
+Throughout the development of our back-end server, I was responsible for thorough testing, which involved writing unit tests with mocha and chai, running integration tests through Postman as well as identifying and fixing bugs. During the last sprint I worked closely with Hafeez using pair-programming to resolve a range of issues flagged by the tests. Furthermore, I worked with Tom and Callum finalizing server-side file-management.
+\subsection{Hafeez Abdul-Rehaman}
diff --git a/report/deliverable-3/texts/files.tex b/report/deliverable-3/texts/files.tex
index f6a407a..d77fc30 100644
--- a/report/deliverable-3/texts/files.tex
+++ b/report/deliverable-3/texts/files.tex
@@ -3,15 +3,17 @@ File handling was one of the last unimplemented parts of our server. Integration
\subsection{Directory Structure}
File storage on the server-side consists of two parts - storage of physical data on the file-system and storage of meta-data in the database.
-The directory structure inside projects consists on a purely conceptual level in the database, as directories are stored entirely as entities in postgres. On the file-system, files are stored in the folder ``files'' which contains a folder named after the project which contains folders named after the file-uuid. This last folder contains all the `views of that file as well as the original upload. The ``raw'' view contains the original data. If tabular data is uploaded, the server recognises this and will start conversion into the ``tabular '' view.
+The directory structure inside projects consists on a purely conceptual level in the database, as directories are stored entirely as entities in postgres. On the file-system, files are stored in the folder ``files'' which contains a folder named after the project which contains folders named after the file-uuid. This last folder contains all the `views of that file as well as the original upload. The ``raw'' view contains the original data. If tabular data is uploaded, for example, the server recognises this and will start conversion into the ``tabular '' view.
-The directory structure, although not obvious to users viewing files through a file-viewer on the server, is always enforced to connecting clients.
+The conceptual directory structure, although not obvious to system admins viewing files through a file-viewer on the server, is always enforced to clients connecting to the server endpoint.
\subsection{File Upload}
When uploading files to the server, a POST request may be issued to *endpoint* ensuring that the headers *headers* are set. Once this request arrives at the server the node library `multer' automatically saves the data to a temporary directory called ``files-temp''.
-Next a precondition function is called which parses the path from the request and attempts to find the file given the directory structure. Any part of the path that does not yet exist is created. At this stage the desired action is determined, as we allow for the copying, deleting, moving, truncating, overwriting and writing from an offset. Furthermore large files may be chunked, thus data is added incrementally to the file. The final chunk has the `final' parameter set to true, thus indicating that file-upload is complete.
+Next a function is called which parses the path from the request and attempts to find the file given the directory structure. Any part of the path that does not yet exist is created. At this stage the desired action is determined, as we allow for the copying, deleting, moving, truncating, overwriting and writing from an offset. Furthermore large files may be chunked, thus data is added incrementally to the file. The final chunk has the `final' parameter set to true, thus indicating that file-upload is complete.
-Once the file status is set to `final', which is done when the corresponding parameter is set on file-upload, file conversion is initiated. File conversion runs asynchronously separate from the node server. Once file conversion is done, the file status in the database will change to `ready'.
+Once the file status is set to `final', which is done when the corresponding parameter is set on file-upload, file conversion is initiated. File conversion runs asynchronously separate from the node server. Once file conversion is done, the file status in the database will change to `ready'. The file status may be reviewed by retrieving file meta-data.
\subsection{File Download}
+
+To download files or file meta-data, a GET request may be issued to *endpoint* with parameters *params*.
diff --git a/report/deliverable-3/texts/scrum.tex b/report/deliverable-3/texts/scrum.tex
index 88c4663..8e2006c 100644
--- a/report/deliverable-3/texts/scrum.tex
+++ b/report/deliverable-3/texts/scrum.tex
@@ -9,4 +9,4 @@ Group work, especially pair-programming was very important to bring the individu
\end{figure}
The short time period of 3 weeks meant that we decided to have only 1 sprint and no more role-rotations until the final deadline. During these 3 weeks we met up often to discuss individual task assignments, asses our sprint progress and work on tasks jointly. Although the tasks identified from the initial specifications were not completed to their entirety as discussed earlier, all feasible work was completed in time and progress was made throughout the time period of the sprint.
\subsection{Scrum board}
-Unfortunately our previous scrum board was demolished during the srping break, which meant that all user stories had to be redrawn. Appendix \ref{app:board} contains the state of the scrum board at 3 different states - the start of the sprint, the middle and near the deadline. A whiteboard in the John Honey main computer lab was used in order to maintain consistency. \ No newline at end of file
+Unfortunately our previous scrum board was demolished during the srping break, which meant that all user stories had to be redrawn. Appendix \ref{app:board} contains the state of the scrum board at 3 different times - the start of the sprint, the middle and near the deadline. A whiteboard in the John Honey main computer lab was used in order to maintain consistency. \ No newline at end of file
diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex
index 6d8d9af..77b6dba 100644
--- a/report/deliverable-3/texts/work.tex
+++ b/report/deliverable-3/texts/work.tex
@@ -5,7 +5,7 @@ Looking back on the tasks set out from the initial specifications we are very sa
\item[Web-based application] We used NodeJS and typescript to deploy our server to the school host servers, where it is accessible both from within and outside the university network.
\item[Conceptual structures for file, project and user management] The data models for these items developed into very sophisticated objects - containing hierarchies, permission groups, project contributors and much more. A mode of user authentication is provided using oauth tokens.
\item[Files may be uploaded to specific projects] Files can only be associated to a specific project. Folder hierarchies are stored on the database, while data is stored in the file-system.
-\item[Files upload should be agnostic of file type] The server does not discriminate files based on type. All files have associated meta-data stored in a database, which contains information like file-type.
+\item[Files upload should be agnostic of file type] The server does not discriminate files based on type. All files have associated meta-data stored in a database, which contains information like file-type. On the server, files and directories are identified by their uuid and filestypes are divided into the categories `tabular', `image' and `generic'.
\item[Allow conversion of images and tabular data] Our current system allows fluent transition between czi input files and tiled png output *todo*. Tabular data is handled in csv format, giving the server a good understanding of the data.
\item[Robustness to user input] A reasonable attempt was made to catch out invalid input and close collaboration with the HCI groups ensured a distribution of responsibility for the preservation of dependencies and cleaning of user input.
\item[Ensure compatibility between groups] A common api was decided by the student body to ensure seamless communication between systems. As part of our testing we integrated with several other HCI and ML groups.