From 52a9e062113bab3583a8393f024048f3c4301929 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 20 Apr 2018 17:12:29 +0100 Subject: made new branch for report --- report/deliverable-3/main.synctex.gz | Bin 0 -> 101182 bytes report/deliverable-3/main.toc | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 report/deliverable-3/main.synctex.gz create mode 100644 report/deliverable-3/main.toc (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz new file mode 100644 index 0000000..de985d1 Binary files /dev/null and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc new file mode 100644 index 0000000..c9dcd7b --- /dev/null +++ b/report/deliverable-3/main.toc @@ -0,0 +1,34 @@ +\contentsline {section}{\numberline {1}Aims for submission 2}{2} +\contentsline {section}{\numberline {2}Continued use of Scrum}{2} +\contentsline {subsection}{\numberline {2.1}Sprints}{2} +\contentsline {subsection}{\numberline {2.2}Scrum board}{2} +\contentsline {subsection}{\numberline {2.3}Meetings}{3} +\contentsline {section}{\numberline {3}File Conversion}{3} +\contentsline {subsection}{\numberline {3.1}Dealing with Images}{3} +\contentsline {subsubsection}{\numberline {3.1.1}Extraction of Zeiss Within `C'}{4} +\contentsline {subsubsection}{\numberline {3.1.2}Converting Extracted Files}{4} +\contentsline {subsubsection}{\numberline {3.1.3}Stitching Base Tiles}{4} +\contentsline {subsubsection}{\numberline {3.1.4}Building Up Hierarchy of Zoom Levels}{5} +\contentsline {subsection}{\numberline {3.2}Leica \& Other Formats}{5} +\contentsline {subsection}{\numberline {3.3}Non image formats (\texttt {.csv} etc.)}{5} +\contentsline {section}{\numberline {4}Logging}{6} +\contentsline {subsection}{\numberline {4.1}Standard Logging}{6} +\contentsline {subsection}{\numberline {4.2}SQL Query Logging}{6} +\contentsline {subsection}{\numberline {4.3}Motivation}{6} +\contentsline {section}{\numberline {5}Process Management and Deployment}{6} +\contentsline {subsection}{\numberline {5.1}Process Manager Selection}{6} +\contentsline {subsection}{\numberline {5.2}pm2 and KeyMetrics}{6} +\contentsline {subsection}{\numberline {5.3}Process Limitations}{7} +\contentsline {subsection}{\numberline {5.4}Heroku Hosting}{7} +\contentsline {subsection}{\numberline {5.5}External System Hosting}{7} +\contentsline {section}{\numberline {6}Testing}{7} +\contentsline {subsection}{\numberline {6.1}Structure}{7} +\contentsline {subsection}{\numberline {6.2}Integration Testing}{8} +\contentsline {subsection}{\numberline {6.3}Unit Testing}{8} +\contentsline {section}{\numberline {7}Type Enforcement}{8} +\contentsline {subsection}{\numberline {7.1}mocha-each}{8} +\contentsline {subsection}{\numberline {7.2}pmx}{8} +\contentsline {section}{\numberline {8}Conclusion}{9} +\contentsline {subsection}{\numberline {8.1}Next Tasks}{9} +\contentsline {section}{\numberline {A}Scrum Board Images}{10} +\contentsline {section}{\numberline {B}Meeting Minutes}{12} -- cgit v1.2.1 From 563a13e6ffcec496914e3f2bd630c988aba64776 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 20 Apr 2018 18:04:59 +0100 Subject: some work on report --- report/deliverable-3/main.dvi | Bin 0 -> 45696 bytes report/deliverable-3/main.synctex.gz | Bin 101182 -> 108397 bytes report/deliverable-3/main.tex | 14 +++++++++++++- report/deliverable-3/main.toc | 15 ++++++--------- report/deliverable-3/preamble.tex | 2 +- report/deliverable-3/texts/aims.tex | 6 +++--- report/deliverable-3/texts/testing.tex | 15 +-------------- report/deliverable-3/title.tex | 2 +- 8 files changed, 25 insertions(+), 29 deletions(-) create mode 100644 report/deliverable-3/main.dvi (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.dvi b/report/deliverable-3/main.dvi new file mode 100644 index 0000000..c1ed465 Binary files /dev/null and b/report/deliverable-3/main.dvi differ diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index de985d1..8fdb5ed 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex index dce9106..1c7b5db 100644 --- a/report/deliverable-3/main.tex +++ b/report/deliverable-3/main.tex @@ -1,4 +1,16 @@ -\input{preamble} +\documentclass{article} + +\usepackage[margin=1in]{geometry} +\usepackage{a4wide} + +\usepackage{graphicx} +\graphicspath{{./graphics/}} + +\usepackage{float} +\usepackage{listings} +\usepackage{cite} + +\def\file{\texttt} \input{title} diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index c9dcd7b..0fee9a3 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -1,4 +1,4 @@ -\contentsline {section}{\numberline {1}Aims for submission 2}{2} +\contentsline {section}{\numberline {1}Aims for Final Submission}{2} \contentsline {section}{\numberline {2}Continued use of Scrum}{2} \contentsline {subsection}{\numberline {2.1}Sprints}{2} \contentsline {subsection}{\numberline {2.2}Scrum board}{2} @@ -22,13 +22,10 @@ \contentsline {subsection}{\numberline {5.4}Heroku Hosting}{7} \contentsline {subsection}{\numberline {5.5}External System Hosting}{7} \contentsline {section}{\numberline {6}Testing}{7} -\contentsline {subsection}{\numberline {6.1}Structure}{7} -\contentsline {subsection}{\numberline {6.2}Integration Testing}{8} -\contentsline {subsection}{\numberline {6.3}Unit Testing}{8} -\contentsline {section}{\numberline {7}Type Enforcement}{8} +\contentsline {section}{\numberline {7}Type Enforcement}{7} \contentsline {subsection}{\numberline {7.1}mocha-each}{8} \contentsline {subsection}{\numberline {7.2}pmx}{8} -\contentsline {section}{\numberline {8}Conclusion}{9} -\contentsline {subsection}{\numberline {8.1}Next Tasks}{9} -\contentsline {section}{\numberline {A}Scrum Board Images}{10} -\contentsline {section}{\numberline {B}Meeting Minutes}{12} +\contentsline {section}{\numberline {8}Conclusion}{8} +\contentsline {subsection}{\numberline {8.1}Next Tasks}{8} +\contentsline {section}{\numberline {A}Scrum Board Images}{9} +\contentsline {section}{\numberline {B}Meeting Minutes}{11} diff --git a/report/deliverable-3/preamble.tex b/report/deliverable-3/preamble.tex index 14787a9..94f9559 100644 --- a/report/deliverable-3/preamble.tex +++ b/report/deliverable-3/preamble.tex @@ -1,4 +1,4 @@ -\documentclass{article} + \usepackage[margin=1in]{geometry} \usepackage{a4wide} diff --git a/report/deliverable-3/texts/aims.tex b/report/deliverable-3/texts/aims.tex index e1da3ee..77b5e9e 100644 --- a/report/deliverable-3/texts/aims.tex +++ b/report/deliverable-3/texts/aims.tex @@ -1,7 +1,7 @@ -\section{Aims for submission 2} -From our first submission, we now had a working server that allowed a user to access our own mock user interface to log in and access data based on their level of authorisation. Following this we set up a meeting to lay out goals for ourselves that would act as requirements for the second submission. +\section{Aims for Final Submission} +As we already had most of the basic implementation working since our second submission, our main task for the final deadline was resolving numerous issues, extending the test coverage and completing file conversion. Several meetings were organised between groups to check the compatibility between our back-end system and HCI and machine-learning groups. \begin{description} - \item[Define Specific Protocol] Now that we had a working server, we next wanted to define specific protocol in order to demo our progress using work from another Junior Honours HCI groups. + \item[Extend Test Coverage] Verification and validation of our server's functionality became the focus of our last submission. \item[Manage Filetype Conversions] A main part of this submission was creating a file converter for all the required file types that would be needed. \item[Testing] As our code was getting more complicated we wanted to make sure that extensive testing was implemented to create a more secure and consistent system. \end{description} diff --git a/report/deliverable-3/texts/testing.tex b/report/deliverable-3/texts/testing.tex index e3f709b..6eb94f0 100644 --- a/report/deliverable-3/texts/testing.tex +++ b/report/deliverable-3/texts/testing.tex @@ -1,15 +1,2 @@ \section{Testing} -Tests do not currently run on the gitlab server, as the postgres integration with the docker gitlab-ci is still missing. This means any tests run automatically when pushing will fail. \par -When running integration tests locally, please make sure the postgres server is up and running on localhost. -\subsection{Structure} -Testing files were restructured for a more organised and professional approach. All test files end in ``*.\(<\)context\(>\).test.ts'' and were moved to the ``test'' directory. At this moment, ``\(<\)context\(>\)'' includes ``unit'' and ``routes''. Further, they were categorised into \textit{integration} and \textit{unit} tests and moved into corresponding sub-directories. \par -Apart from making test files easier to find, this new structure also allowed us to run specific tests independently to isolate failures and quickly rerun individual tests. For example \texttt{yarn test:routes:auth} runs all authentication tests. -\subsection{Integration Testing} -\texttt{yarn test:routes} -This category of tests targeted the interplay of different server components as it tested server endpoints (routes) rather than internal functions. We aimed to test all routes for responses of success, and various degrees of failure. \par -E.g. \textbf{``auth.routes.test.ts''} tested the authentication middle-ware, checking existing users could log in only with correct usernames, passwords and reauthentication tokens. During our later meetings, we realised that security is a key-component of medical systems, and requires further much more in-depth testing to guarantee safety of patient data. \par -\textbf{``protocol.routes.test.ts''} aims to cover all endpoints specified in the agreed protocol by using the \textit{mocha-each} npm module. This allowed us to write few mocha testing functions iterating over the long list of endpoints, checking HTTP responses to fit the JSON response templates to conform to the protocol. This form of testing is still incomplete. -\subsection{Unit Testing} -\texttt{yarn test:unit} -The main motivation for this category of tests was to find bugs early on without having to run the whole server. This saves time and uncovers new code breaking old functionality. We also found that unit tests improved the design process by forcing implementation of code that is testable. Furthermore, unit tests were often used as a form of documentation, as it aided in understanding how code of other team members worked and could be used. \par -We decided that each team-member was responsible for creating the unit tests for their code. Unfortunately the number and coverage of unit tests is still quite low. This may be the result of prioritising functionality over bug-resilience and test-driven development. +The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. \ No newline at end of file diff --git a/report/deliverable-3/title.tex b/report/deliverable-3/title.tex index 4406ef6..2303625 100644 --- a/report/deliverable-3/title.tex +++ b/report/deliverable-3/title.tex @@ -1,4 +1,4 @@ -\title{Report \\ Juniour Honours Project \\[0.5ex] Submission 2} +\title{Report \\ Juniour Honours Project \\[0.5ex] Final Submission} \author{Hafeez Abdul-Rehaman \\[1ex] Johannes Weck \\[1ex] Josh Lee \\[1ex] Calum Duff \\[2ex] Tom Harley} \date{\today} -- cgit v1.2.1 From db29fcee3e0b8e0d6b6db4e98e1cd79e089f3210 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 20 Apr 2018 19:41:43 +0100 Subject: added section completed-work --- report/deliverable-3/main.synctex.gz | Bin 108397 -> 108528 bytes report/deliverable-3/main.tex | 1 + report/deliverable-3/main.toc | 57 ++++++++++++++++++----------------- report/deliverable-3/preamble.tex | 10 ------ report/deliverable-3/texts/aims.tex | 4 +-- report/deliverable-3/texts/scrum.tex | 5 ++- report/deliverable-3/texts/work.tex | 9 ++++++ 7 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 report/deliverable-3/texts/work.tex (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index 8fdb5ed..fbb582f 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex index 1c7b5db..01defe0 100644 --- a/report/deliverable-3/main.tex +++ b/report/deliverable-3/main.tex @@ -25,6 +25,7 @@ \newpage \input{texts/aims} + \input{texts/work} \input{texts/scrum} \input{texts/conversion} % \input{texts/protocol} diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index 0fee9a3..7462d7d 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -1,31 +1,32 @@ \contentsline {section}{\numberline {1}Aims for Final Submission}{2} -\contentsline {section}{\numberline {2}Continued use of Scrum}{2} -\contentsline {subsection}{\numberline {2.1}Sprints}{2} -\contentsline {subsection}{\numberline {2.2}Scrum board}{2} -\contentsline {subsection}{\numberline {2.3}Meetings}{3} -\contentsline {section}{\numberline {3}File Conversion}{3} -\contentsline {subsection}{\numberline {3.1}Dealing with Images}{3} -\contentsline {subsubsection}{\numberline {3.1.1}Extraction of Zeiss Within `C'}{4} -\contentsline {subsubsection}{\numberline {3.1.2}Converting Extracted Files}{4} -\contentsline {subsubsection}{\numberline {3.1.3}Stitching Base Tiles}{4} -\contentsline {subsubsection}{\numberline {3.1.4}Building Up Hierarchy of Zoom Levels}{5} -\contentsline {subsection}{\numberline {3.2}Leica \& Other Formats}{5} -\contentsline {subsection}{\numberline {3.3}Non image formats (\texttt {.csv} etc.)}{5} -\contentsline {section}{\numberline {4}Logging}{6} -\contentsline {subsection}{\numberline {4.1}Standard Logging}{6} -\contentsline {subsection}{\numberline {4.2}SQL Query Logging}{6} -\contentsline {subsection}{\numberline {4.3}Motivation}{6} -\contentsline {section}{\numberline {5}Process Management and Deployment}{6} -\contentsline {subsection}{\numberline {5.1}Process Manager Selection}{6} -\contentsline {subsection}{\numberline {5.2}pm2 and KeyMetrics}{6} -\contentsline {subsection}{\numberline {5.3}Process Limitations}{7} -\contentsline {subsection}{\numberline {5.4}Heroku Hosting}{7} -\contentsline {subsection}{\numberline {5.5}External System Hosting}{7} -\contentsline {section}{\numberline {6}Testing}{7} -\contentsline {section}{\numberline {7}Type Enforcement}{7} -\contentsline {subsection}{\numberline {7.1}mocha-each}{8} -\contentsline {subsection}{\numberline {7.2}pmx}{8} -\contentsline {section}{\numberline {8}Conclusion}{8} -\contentsline {subsection}{\numberline {8.1}Next Tasks}{8} +\contentsline {section}{\numberline {2}Completed Work}{2} +\contentsline {section}{\numberline {3}Continued use of Scrum}{2} +\contentsline {subsection}{\numberline {3.1}Sprints}{2} +\contentsline {subsection}{\numberline {3.2}Scrum board}{3} +\contentsline {subsection}{\numberline {3.3}Meetings}{3} +\contentsline {section}{\numberline {4}File Conversion}{3} +\contentsline {subsection}{\numberline {4.1}Dealing with Images}{3} +\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{4} +\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{4} +\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{5} +\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5} +\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5} +\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{5} +\contentsline {section}{\numberline {5}Logging}{6} +\contentsline {subsection}{\numberline {5.1}Standard Logging}{6} +\contentsline {subsection}{\numberline {5.2}SQL Query Logging}{6} +\contentsline {subsection}{\numberline {5.3}Motivation}{6} +\contentsline {section}{\numberline {6}Process Management and Deployment}{6} +\contentsline {subsection}{\numberline {6.1}Process Manager Selection}{6} +\contentsline {subsection}{\numberline {6.2}pm2 and KeyMetrics}{7} +\contentsline {subsection}{\numberline {6.3}Process Limitations}{7} +\contentsline {subsection}{\numberline {6.4}Heroku Hosting}{7} +\contentsline {subsection}{\numberline {6.5}External System Hosting}{7} +\contentsline {section}{\numberline {7}Testing}{8} +\contentsline {section}{\numberline {8}Type Enforcement}{8} +\contentsline {subsection}{\numberline {8.1}mocha-each}{8} +\contentsline {subsection}{\numberline {8.2}pmx}{8} +\contentsline {section}{\numberline {9}Conclusion}{8} +\contentsline {subsection}{\numberline {9.1}Next Tasks}{8} \contentsline {section}{\numberline {A}Scrum Board Images}{9} \contentsline {section}{\numberline {B}Meeting Minutes}{11} diff --git a/report/deliverable-3/preamble.tex b/report/deliverable-3/preamble.tex index 94f9559..b28b04f 100644 --- a/report/deliverable-3/preamble.tex +++ b/report/deliverable-3/preamble.tex @@ -1,13 +1,3 @@ -\usepackage[margin=1in]{geometry} -\usepackage{a4wide} -\usepackage{graphicx} -\graphicspath{{./graphics/}} - -\usepackage{float} -\usepackage{listings} -\usepackage{cite} - -\def\file{\texttt} diff --git a/report/deliverable-3/texts/aims.tex b/report/deliverable-3/texts/aims.tex index 77b5e9e..3543313 100644 --- a/report/deliverable-3/texts/aims.tex +++ b/report/deliverable-3/texts/aims.tex @@ -2,6 +2,6 @@ As we already had most of the basic implementation working since our second submission, our main task for the final deadline was resolving numerous issues, extending the test coverage and completing file conversion. Several meetings were organised between groups to check the compatibility between our back-end system and HCI and machine-learning groups. \begin{description} \item[Extend Test Coverage] Verification and validation of our server's functionality became the focus of our last submission. - \item[Manage Filetype Conversions] A main part of this submission was creating a file converter for all the required file types that would be needed. - \item[Testing] As our code was getting more complicated we wanted to make sure that extensive testing was implemented to create a more secure and consistent system. + \item[File Upload, Download and Conversion] One of the last remaining tasks for this submission was implementing the serving of files through our server. + \item[Intra-group Collaboration] The key to ensuring the success of our system was testing the compatibility of our server with the work of other groups. \end{description} diff --git a/report/deliverable-3/texts/scrum.tex b/report/deliverable-3/texts/scrum.tex index ca724c8..2ffc397 100644 --- a/report/deliverable-3/texts/scrum.tex +++ b/report/deliverable-3/texts/scrum.tex @@ -1,5 +1,5 @@ \section{Continued use of Scrum} -The scrum process was continued as we found this very useful in terms of clearly setting out tasks for each member and managing the progress of the implementation. One of the changes that was made for this sprint was the change in roles between team members. The change in responsibility allows team members to complete new and different jobs. In general the size and the time taken of each individual task was a lot more varied when comparing to the last submission, however, there were certain tasks which were larger in terms of hours put in. These large tasks included creating a logger system and a file converter. +Group work, especially pair-programming was very important to bring the individual code contributions together. However, the hours of work time spent on the last submission were not distributed as evenly as was the case for the previous submissions as the number of hours increased exponentially during the last 2 weeks before the deadline. \subsection{Sprints} \begin{figure}[h] @@ -7,8 +7,7 @@ The scrum process was continued as we found this very useful in terms of clearly \includegraphics[width=0.6\textwidth]{burndown} \caption{A Burndown Chart for the past 14 days.}\label{fig:burn} \end{figure} - -As a team, it was decided that there would only be a single sprint, up until the next point of submission. This was because of the short time period, enough for only a two week sprint. In addition to this, the sprint assessment process was completed more often to ensure that as a team time was managed well and sufficient progress was being made. All the tasks that was set for this sprint were completed within the required time frame. +The short time period of 2 weeks meant that we decided to have only 1 sprint and no more role-rotations until the final deadline. During these 2 weeks we met up almost every day 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} Again, the scrum board was used to outline and track the completion of each task. The same whiteboard in the John Honey main computer lab was used in order to maintain consistency. This gave a clear visual representation of the objectives. During the sprint, the main jobs required for completion were to further enhance the testing unit to increase its coverage across the implemented systems, implement a simple file converter and introduce a logging system for the server. Much experience was gained from completing previous sprints and so using this experience we were better equipped to handle larger tasks. Examples of the board in use can be found in Appendix \ref{app:board}. diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex new file mode 100644 index 0000000..41bd13b --- /dev/null +++ b/report/deliverable-3/texts/work.tex @@ -0,0 +1,9 @@ +\section{Completed Work} +Looking back on the tasks set out from the initial specifications we are very satisfied with the amount of work completed and the percentage of the user stories covered in our final submission. +\begin{description} +\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. +\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[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. +\end{description} \ No newline at end of file -- cgit v1.2.1 From 2bcb7fb53ec34718e7d75d215009f112c62ffa66 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 20 Apr 2018 21:56:18 +0100 Subject: added section completed-work --- report/deliverable-3/graphics/scrum.jpg | Bin 1829499 -> 663766 bytes report/deliverable-3/graphics/scrum.jpg~ | Bin 0 -> 519638 bytes report/deliverable-3/graphics/scrum2.jpg | Bin 1746169 -> 0 bytes report/deliverable-3/graphics/scrum3.jpg | Bin 1830134 -> 531297 bytes report/deliverable-3/graphics/scrum4.jpg | Bin 164302 -> 0 bytes report/deliverable-3/graphics/scrum5.jpg | Bin 152855 -> 0 bytes report/deliverable-3/graphics/srcum2.jpg | Bin 0 -> 512649 bytes report/deliverable-3/main.synctex.gz | Bin 108528 -> 113785 bytes report/deliverable-3/main.toc | 26 +++++++++++++------------- report/deliverable-3/texts/work.tex | 7 +++++-- 10 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 report/deliverable-3/graphics/scrum.jpg~ delete mode 100644 report/deliverable-3/graphics/scrum2.jpg delete mode 100644 report/deliverable-3/graphics/scrum4.jpg delete mode 100644 report/deliverable-3/graphics/scrum5.jpg create mode 100644 report/deliverable-3/graphics/srcum2.jpg (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/graphics/scrum.jpg b/report/deliverable-3/graphics/scrum.jpg index 4b5c911..aa3b058 100644 Binary files a/report/deliverable-3/graphics/scrum.jpg and b/report/deliverable-3/graphics/scrum.jpg differ diff --git a/report/deliverable-3/graphics/scrum.jpg~ b/report/deliverable-3/graphics/scrum.jpg~ new file mode 100644 index 0000000..21b3226 Binary files /dev/null and b/report/deliverable-3/graphics/scrum.jpg~ differ diff --git a/report/deliverable-3/graphics/scrum2.jpg b/report/deliverable-3/graphics/scrum2.jpg deleted file mode 100644 index 231cf1f..0000000 Binary files a/report/deliverable-3/graphics/scrum2.jpg and /dev/null differ diff --git a/report/deliverable-3/graphics/scrum3.jpg b/report/deliverable-3/graphics/scrum3.jpg index 012e9b3..7b42e9b 100644 Binary files a/report/deliverable-3/graphics/scrum3.jpg and b/report/deliverable-3/graphics/scrum3.jpg differ diff --git a/report/deliverable-3/graphics/scrum4.jpg b/report/deliverable-3/graphics/scrum4.jpg deleted file mode 100644 index ab1f7a5..0000000 Binary files a/report/deliverable-3/graphics/scrum4.jpg and /dev/null differ diff --git a/report/deliverable-3/graphics/scrum5.jpg b/report/deliverable-3/graphics/scrum5.jpg deleted file mode 100644 index e79e828..0000000 Binary files a/report/deliverable-3/graphics/scrum5.jpg and /dev/null differ diff --git a/report/deliverable-3/graphics/srcum2.jpg b/report/deliverable-3/graphics/srcum2.jpg new file mode 100644 index 0000000..7cd31ae Binary files /dev/null and b/report/deliverable-3/graphics/srcum2.jpg differ diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index fbb582f..cedbd3f 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index 7462d7d..ac2c497 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -1,32 +1,32 @@ \contentsline {section}{\numberline {1}Aims for Final Submission}{2} \contentsline {section}{\numberline {2}Completed Work}{2} \contentsline {section}{\numberline {3}Continued use of Scrum}{2} -\contentsline {subsection}{\numberline {3.1}Sprints}{2} +\contentsline {subsection}{\numberline {3.1}Sprints}{3} \contentsline {subsection}{\numberline {3.2}Scrum board}{3} \contentsline {subsection}{\numberline {3.3}Meetings}{3} \contentsline {section}{\numberline {4}File Conversion}{3} -\contentsline {subsection}{\numberline {4.1}Dealing with Images}{3} +\contentsline {subsection}{\numberline {4.1}Dealing with Images}{4} \contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{4} \contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{4} \contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{5} \contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5} -\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5} -\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{5} +\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{6} +\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6} \contentsline {section}{\numberline {5}Logging}{6} \contentsline {subsection}{\numberline {5.1}Standard Logging}{6} \contentsline {subsection}{\numberline {5.2}SQL Query Logging}{6} -\contentsline {subsection}{\numberline {5.3}Motivation}{6} -\contentsline {section}{\numberline {6}Process Management and Deployment}{6} -\contentsline {subsection}{\numberline {6.1}Process Manager Selection}{6} +\contentsline {subsection}{\numberline {5.3}Motivation}{7} +\contentsline {section}{\numberline {6}Process Management and Deployment}{7} +\contentsline {subsection}{\numberline {6.1}Process Manager Selection}{7} \contentsline {subsection}{\numberline {6.2}pm2 and KeyMetrics}{7} \contentsline {subsection}{\numberline {6.3}Process Limitations}{7} -\contentsline {subsection}{\numberline {6.4}Heroku Hosting}{7} -\contentsline {subsection}{\numberline {6.5}External System Hosting}{7} +\contentsline {subsection}{\numberline {6.4}Heroku Hosting}{8} +\contentsline {subsection}{\numberline {6.5}External System Hosting}{8} \contentsline {section}{\numberline {7}Testing}{8} \contentsline {section}{\numberline {8}Type Enforcement}{8} \contentsline {subsection}{\numberline {8.1}mocha-each}{8} \contentsline {subsection}{\numberline {8.2}pmx}{8} -\contentsline {section}{\numberline {9}Conclusion}{8} -\contentsline {subsection}{\numberline {9.1}Next Tasks}{8} -\contentsline {section}{\numberline {A}Scrum Board Images}{9} -\contentsline {section}{\numberline {B}Meeting Minutes}{11} +\contentsline {section}{\numberline {9}Conclusion}{9} +\contentsline {subsection}{\numberline {9.1}Next Tasks}{9} +\contentsline {section}{\numberline {A}Scrum Board Images}{10} +\contentsline {section}{\numberline {B}Meeting Minutes}{12} diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex index 41bd13b..6d8d9af 100644 --- a/report/deliverable-3/texts/work.tex +++ b/report/deliverable-3/texts/work.tex @@ -1,9 +1,12 @@ \section{Completed Work} -Looking back on the tasks set out from the initial specifications we are very satisfied with the amount of work completed and the percentage of the user stories covered in our final submission. +Looking back on the tasks set out from the initial specifications we are very satisfied with the amount of work completed and the percentage of the user stories covered in our final submission. The following points are summaries from the specifications supplied by the school and the specifications decided by the student body. + \begin{description} \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. +\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[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. \end{description} \ No newline at end of file -- cgit v1.2.1 From b0798c405d46b5df41fce2029b3511e9c988057b Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 20 Apr 2018 23:01:39 +0100 Subject: work on scrum --- report/deliverable-3/appendix/scrumboard.tex | 2 +- report/deliverable-3/graphics/scrum.jpg~ | Bin 519638 -> 0 bytes report/deliverable-3/graphics/scrum2.jpg | Bin 0 -> 512649 bytes report/deliverable-3/graphics/scrum3.jpg | Bin 531297 -> 754649 bytes report/deliverable-3/graphics/srcum2.jpg | Bin 512649 -> 0 bytes report/deliverable-3/main.synctex.gz | Bin 113785 -> 110342 bytes report/deliverable-3/main.toc | 17 ++++++++--------- report/deliverable-3/texts/scrum.tex | 8 ++------ 8 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 report/deliverable-3/graphics/scrum.jpg~ create mode 100644 report/deliverable-3/graphics/scrum2.jpg delete mode 100644 report/deliverable-3/graphics/srcum2.jpg (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/appendix/scrumboard.tex b/report/deliverable-3/appendix/scrumboard.tex index e868278..acb531c 100644 --- a/report/deliverable-3/appendix/scrumboard.tex +++ b/report/deliverable-3/appendix/scrumboard.tex @@ -3,6 +3,6 @@ { \centering \includegraphics[width=\textwidth]{graphics/scrum.jpg} +\includegraphics[width=\textwidth]{graphics/scrum2.jpg} \includegraphics[width=\textwidth]{graphics/scrum3.jpg} -\includegraphics[width=\textwidth]{graphics/scrum4.jpg} } diff --git a/report/deliverable-3/graphics/scrum.jpg~ b/report/deliverable-3/graphics/scrum.jpg~ deleted file mode 100644 index 21b3226..0000000 Binary files a/report/deliverable-3/graphics/scrum.jpg~ and /dev/null differ diff --git a/report/deliverable-3/graphics/scrum2.jpg b/report/deliverable-3/graphics/scrum2.jpg new file mode 100644 index 0000000..7cd31ae Binary files /dev/null and b/report/deliverable-3/graphics/scrum2.jpg differ diff --git a/report/deliverable-3/graphics/scrum3.jpg b/report/deliverable-3/graphics/scrum3.jpg index 7b42e9b..d8b622f 100644 Binary files a/report/deliverable-3/graphics/scrum3.jpg and b/report/deliverable-3/graphics/scrum3.jpg differ diff --git a/report/deliverable-3/graphics/srcum2.jpg b/report/deliverable-3/graphics/srcum2.jpg deleted file mode 100644 index 7cd31ae..0000000 Binary files a/report/deliverable-3/graphics/srcum2.jpg and /dev/null differ diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index cedbd3f..91b8852 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index ac2c497..477fe43 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -3,30 +3,29 @@ \contentsline {section}{\numberline {3}Continued use of Scrum}{2} \contentsline {subsection}{\numberline {3.1}Sprints}{3} \contentsline {subsection}{\numberline {3.2}Scrum board}{3} -\contentsline {subsection}{\numberline {3.3}Meetings}{3} \contentsline {section}{\numberline {4}File Conversion}{3} -\contentsline {subsection}{\numberline {4.1}Dealing with Images}{4} +\contentsline {subsection}{\numberline {4.1}Dealing with Images}{3} \contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{4} \contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{4} \contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{5} \contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5} -\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{6} +\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5} \contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6} \contentsline {section}{\numberline {5}Logging}{6} \contentsline {subsection}{\numberline {5.1}Standard Logging}{6} \contentsline {subsection}{\numberline {5.2}SQL Query Logging}{6} -\contentsline {subsection}{\numberline {5.3}Motivation}{7} -\contentsline {section}{\numberline {6}Process Management and Deployment}{7} +\contentsline {subsection}{\numberline {5.3}Motivation}{6} +\contentsline {section}{\numberline {6}Process Management and Deployment}{6} \contentsline {subsection}{\numberline {6.1}Process Manager Selection}{7} \contentsline {subsection}{\numberline {6.2}pm2 and KeyMetrics}{7} \contentsline {subsection}{\numberline {6.3}Process Limitations}{7} -\contentsline {subsection}{\numberline {6.4}Heroku Hosting}{8} -\contentsline {subsection}{\numberline {6.5}External System Hosting}{8} +\contentsline {subsection}{\numberline {6.4}Heroku Hosting}{7} +\contentsline {subsection}{\numberline {6.5}External System Hosting}{7} \contentsline {section}{\numberline {7}Testing}{8} \contentsline {section}{\numberline {8}Type Enforcement}{8} \contentsline {subsection}{\numberline {8.1}mocha-each}{8} \contentsline {subsection}{\numberline {8.2}pmx}{8} -\contentsline {section}{\numberline {9}Conclusion}{9} -\contentsline {subsection}{\numberline {9.1}Next Tasks}{9} +\contentsline {section}{\numberline {9}Conclusion}{8} +\contentsline {subsection}{\numberline {9.1}Next Tasks}{8} \contentsline {section}{\numberline {A}Scrum Board Images}{10} \contentsline {section}{\numberline {B}Meeting Minutes}{12} diff --git a/report/deliverable-3/texts/scrum.tex b/report/deliverable-3/texts/scrum.tex index 2ffc397..88c4663 100644 --- a/report/deliverable-3/texts/scrum.tex +++ b/report/deliverable-3/texts/scrum.tex @@ -7,10 +7,6 @@ Group work, especially pair-programming was very important to bring the individu \includegraphics[width=0.6\textwidth]{burndown} \caption{A Burndown Chart for the past 14 days.}\label{fig:burn} \end{figure} -The short time period of 2 weeks meant that we decided to have only 1 sprint and no more role-rotations until the final deadline. During these 2 weeks we met up almost every day 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. +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} -Again, the scrum board was used to outline and track the completion of each task. The same whiteboard in the John Honey main computer lab was used in order to maintain consistency. This gave a clear visual representation of the objectives. During the sprint, the main jobs required for completion were to further enhance the testing unit to increase its coverage across the implemented systems, implement a simple file converter and introduce a logging system for the server. Much experience was gained from completing previous sprints and so using this experience we were better equipped to handle larger tasks. Examples of the board in use can be found in Appendix \ref{app:board}. - -\subsection{Meetings} -Regular meetings were also held to discuss and evaluate progress. This was crucial in the scrum process and as working in a team to allow a point of communication between each member at the same point in time. An example of a major decision being made during the discussion was the change of language of the file converter implementation. It was decided that the more appropriate language to use would be C as there would more extensive libraries for this particular operation and would also have the advantage of greater efficiency. Multiple meetings were held during the most recent sprint to determine the tasks required for completion, to evaluate whether each task was completed and track progress in between. -The minutes for formal meetings are available in Appendix \ref{app:meet}. +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 -- cgit v1.2.1 From da8e2e65d7cd2e41db1ed67853c85f8c4d08a529 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Fri, 20 Apr 2018 23:02:39 +0100 Subject: added burndown chart --- report/deliverable-3/graphics/burndown.png | Bin 21982 -> 22000 bytes report/deliverable-3/main.synctex.gz | Bin 113785 -> 113813 bytes 2 files changed, 0 insertions(+), 0 deletions(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/graphics/burndown.png b/report/deliverable-3/graphics/burndown.png index f3ae71d..162691d 100644 Binary files a/report/deliverable-3/graphics/burndown.png and b/report/deliverable-3/graphics/burndown.png differ diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index cedbd3f..ad9e920 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ -- cgit v1.2.1 From 0e486d5178e3a545f3f84273fd1e17354f9899b9 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 20 Apr 2018 23:15:51 +0100 Subject: structure --- report/deliverable-3/main.tex | 9 +---- report/deliverable-3/texts/files.tex | 1 + report/deliverable-3/texts/logging.tex | 38 ------------------ report/deliverable-3/texts/minutes.tex | 72 ---------------------------------- report/deliverable-3/texts/testing.tex | 4 +- report/deliverable-3/texts/typings.tex | 27 ------------- 6 files changed, 6 insertions(+), 145 deletions(-) create mode 100644 report/deliverable-3/texts/files.tex delete mode 100644 report/deliverable-3/texts/logging.tex delete mode 100644 report/deliverable-3/texts/minutes.tex delete mode 100644 report/deliverable-3/texts/typings.tex (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex index 01defe0..0e78ea1 100644 --- a/report/deliverable-3/main.tex +++ b/report/deliverable-3/main.tex @@ -28,19 +28,14 @@ \input{texts/work} \input{texts/scrum} \input{texts/conversion} - % \input{texts/protocol} - % \input{texts/auth} - \input{texts/logging} - \input{texts/process-management} + \input{texts/files} \input{texts/testing} - \input{texts/typings} + \input{texts/process-management} \input{texts/conclusion} \appendix \newpage \input{appendix/scrumboard} - \newpage - \input{appendix/minutes} \clearpage diff --git a/report/deliverable-3/texts/files.tex b/report/deliverable-3/texts/files.tex new file mode 100644 index 0000000..c21bd38 --- /dev/null +++ b/report/deliverable-3/texts/files.tex @@ -0,0 +1 @@ +\section{File Management} \ No newline at end of file diff --git a/report/deliverable-3/texts/logging.tex b/report/deliverable-3/texts/logging.tex deleted file mode 100644 index d0a7255..0000000 --- a/report/deliverable-3/texts/logging.tex +++ /dev/null @@ -1,38 +0,0 @@ -\section{Logging} -Server logging has now been formalised: the functionality is imported into -a file and can then be used to log messages at the selection of urgencies -specified in Protocol BE01~\cite{protocol}. - -These outputs have many configuration options, which ideally will be -incorporated into a global configuration handler in future development. - -\subsection{Standard Logging} -By default, the standard logger logs to three places: -\begin{enumerate} - \item Colourised, human-readable messages are printed to the console. - Any error- or critical-level messages are printed through stderr. - \item More verbose JSON editions of messages are written to a basic - logfile. - \item Critical-level messages are additionally written to an extra - logfile. -\end{enumerate} - -\subsection{SQL Query Logging} -A separate logger has been designed for logging the output of -Sequelize~\cite{sequelize}. Since Protocol BE01 does not specify that they -should be retreivable, the output queries can be stored with less associated -metadata. In addition, Sequelize can output the total required time to -process the query, which is stored in the log for future use as profiling -data. - -\subsection{Motivation} -Since basic server functionality has been implemented, the errors produced -will likely be caused by difficult-to-debug problems, such as edge-cases or -data races. With a verbose and thorough logging system, these problems -should be much easier to detect and rectify. - -In addition, Protocol BE01~\cite{protocol} requires of the backend support -for receiving and storing logs from other services. The introduction of a -well-implemented logging system abstracts this from the common use-case of -logging while keeping powerful functionality of forwarding and fetching logs -available for when it is needed. diff --git a/report/deliverable-3/texts/minutes.tex b/report/deliverable-3/texts/minutes.tex deleted file mode 100644 index 55aab2a..0000000 --- a/report/deliverable-3/texts/minutes.tex +++ /dev/null @@ -1,72 +0,0 @@ -\begin{lstlisting} - -Group Project Meeting 1 post submission -Date: 12/02/18 -Topics: -Reassigning scrum roles -Creating next set of tasks -Task allocation - -Outcomes: -* Scrum: - * scrum master - Hafeez - * project owner - Calum - -*Tasks: - * Implementing endpoints - * Implementing file conversions - * Improving test coverage - * Writing tests for untested sections - * Connecting all middleware - * Decide on how to deal with errors - * Organising file-system - * Creating a Linter to maintain a consistent file structure - -Group Project Meeting 2 Pre-sprint -Date 15/02/18 -Topics: -Define user stories -Task allocation - -Outcomes: -* Sprint - * Week long sprint - * Meeting set for 22/02/18 - -Group Project Meeting 3 Post-Sprint -Date 22/02/18 -Topics: -Analysis of work -Next task assignment - -Outcomes: - -Group Project Meeting 4 -Date 24/02/18 -Topics: -Sprint aims -Sprint deadline - -Outcomes: - *Decided to hold a sprint now to leave time - before next submission to finish off all leftover work - -Group Project Meeting 5 -Date 03/03/18 -Topics -Analysis of work todo after sprint -Work needed to complete before deadline - - -Outcomes: - * Finishing off of the report - *Connecting work with another HCI group - *Finish testing - - - - - - - -\end{lstlisting} diff --git a/report/deliverable-3/texts/testing.tex b/report/deliverable-3/texts/testing.tex index 6eb94f0..6bc6411 100644 --- a/report/deliverable-3/texts/testing.tex +++ b/report/deliverable-3/texts/testing.tex @@ -1,2 +1,4 @@ \section{Testing} -The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. \ No newline at end of file +The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. +\subsection{Integration Testing} +\subsubsection{CORS} \ No newline at end of file diff --git a/report/deliverable-3/texts/typings.tex b/report/deliverable-3/texts/typings.tex deleted file mode 100644 index 36297b7..0000000 --- a/report/deliverable-3/texts/typings.tex +++ /dev/null @@ -1,27 +0,0 @@ -\section{Type Enforcement} -In order to run JavaScript code as TypeScript code, typings (usually -supplied in a \file{.d.ts}-extended file) are applied at compile-time to -make sense of the original source's variable types. For a couple of -packages that have been used in the submission, these typings are not -available, due to a lack of desirablilty --- the packages in question are -niche and as such see little use. - -\subsection{mocha-each} -One such package is \emph{mocha-each}, a utility package for compacting -Mocha tests for readability and classification~\cite{mocha-each}. Without -typings, this package cannot be used in TypeScript projects. Due to its -single-facet use, however, it was simple to design a custom -\file{.d.ts} file. With small edits to conform to -guidelines~\cite{@types}, typings for -mocha-test were contributed to the DefinitelyTyped types repository\footnote{% -https://github.com/DefinitelyTyped/DefinitelyTyped/% -tree/master/types/mocha-each}. - -\subsection{pmx} -The package pmx (as previously described in \S\ref{sec:pms}) is useful for -profiling. Similarly to mocha-each, however, it does not have supported typing. -Since this package covers a far wider range of functionality, and since said -functionality is very involved with sensitive run-time engine manipulation, -typings were written only for the functions being used by the team, and have -been kept in-house for their incompleteness. The files in question can be found -in \file{src/profiler}. -- cgit v1.2.1 From a671ec40cb3df87a2ce6452fd6455dae69b8c89e Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 21 Apr 2018 01:17:24 +0100 Subject: added text on files --- report/deliverable-3/main.synctex.gz | Bin 0 -> 84024 bytes report/deliverable-3/main.toc | 34 ++++++++++++++++------------------ report/deliverable-3/texts/files.tex | 18 +++++++++++++++++- 3 files changed, 33 insertions(+), 19 deletions(-) create mode 100644 report/deliverable-3/main.synctex.gz (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz new file mode 100644 index 0000000..c8c75be Binary files /dev/null and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index 477fe43..573b497 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -11,21 +11,19 @@ \contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5} \contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5} \contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6} -\contentsline {section}{\numberline {5}Logging}{6} -\contentsline {subsection}{\numberline {5.1}Standard Logging}{6} -\contentsline {subsection}{\numberline {5.2}SQL Query Logging}{6} -\contentsline {subsection}{\numberline {5.3}Motivation}{6} -\contentsline {section}{\numberline {6}Process Management and Deployment}{6} -\contentsline {subsection}{\numberline {6.1}Process Manager Selection}{7} -\contentsline {subsection}{\numberline {6.2}pm2 and KeyMetrics}{7} -\contentsline {subsection}{\numberline {6.3}Process Limitations}{7} -\contentsline {subsection}{\numberline {6.4}Heroku Hosting}{7} -\contentsline {subsection}{\numberline {6.5}External System Hosting}{7} -\contentsline {section}{\numberline {7}Testing}{8} -\contentsline {section}{\numberline {8}Type Enforcement}{8} -\contentsline {subsection}{\numberline {8.1}mocha-each}{8} -\contentsline {subsection}{\numberline {8.2}pmx}{8} -\contentsline {section}{\numberline {9}Conclusion}{8} -\contentsline {subsection}{\numberline {9.1}Next Tasks}{8} -\contentsline {section}{\numberline {A}Scrum Board Images}{10} -\contentsline {section}{\numberline {B}Meeting Minutes}{12} +\contentsline {section}{\numberline {5}File Management}{6} +\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 {subsection}{\numberline {6.1}Integration Testing}{7} +\contentsline {subsubsection}{\numberline {6.1.1}CORS}{7} +\contentsline {section}{\numberline {7}Process Management and Deployment}{7} +\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{7} +\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{7} +\contentsline {subsection}{\numberline {7.3}Process Limitations}{7} +\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{8} +\contentsline {subsection}{\numberline {7.5}External System Hosting}{8} +\contentsline {section}{\numberline {8}Conclusion}{8} +\contentsline {subsection}{\numberline {8.1}Next Tasks}{8} +\contentsline {section}{\numberline {A}Scrum Board Images}{9} diff --git a/report/deliverable-3/texts/files.tex b/report/deliverable-3/texts/files.tex index c21bd38..f6a407a 100644 --- a/report/deliverable-3/texts/files.tex +++ b/report/deliverable-3/texts/files.tex @@ -1 +1,17 @@ -\section{File Management} \ No newline at end of file +\section{File Management} +File handling was one of the last unimplemented parts of our server. Integration testing proved essential for ensuring full functionality according to the agreed protocol. File upload and download involved overcoming a range of challenges which arose as additional features were implemented. +\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, although not obvious to users viewing files through a file-viewer on the server, is always enforced to connecting clients. + +\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. + +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'. + +\subsection{File Download} -- cgit v1.2.1 From b4c0ef25c63ef097b5f24d138896fc7aafbed702 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 21 Apr 2018 16:29:42 +0100 Subject: files + conclusion --- report/deliverable-3/main.synctex.gz | Bin 84024 -> 85283 bytes report/deliverable-3/main.tex | 1 + report/deliverable-3/main.toc | 2 +- report/deliverable-3/texts/conclusion.tex | 8 +++++--- report/deliverable-3/texts/contributions.tex | 7 +++++++ report/deliverable-3/texts/files.tex | 10 ++++++---- report/deliverable-3/texts/scrum.tex | 2 +- report/deliverable-3/texts/work.tex | 2 +- 8 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 report/deliverable-3/texts/contributions.tex (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index c8c75be..d6fcc0f 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz 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. -- cgit v1.2.1 From 1afa6be7f6293501475f2bd387df6fd314fd2702 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Sat, 21 Apr 2018 20:09:52 +0100 Subject: added testing section for report --- report/deliverable-3/texts/testing.tex | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/texts/testing.tex b/report/deliverable-3/texts/testing.tex index 6bc6411..5389a3c 100644 --- a/report/deliverable-3/texts/testing.tex +++ b/report/deliverable-3/texts/testing.tex @@ -1,4 +1,9 @@ \section{Testing} -The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. +Testing was a key process in the development of the final product just as it was in previous submission. Testing was particular important to determine whether the final system meets the requirements initially set. As well as testing each module individually, further tests were done upon completing the system through integration with the front-end and machine learning systems. + +\subsection{Using Mocha and Postman} +The JavaScript framework Mocha was still used in the testing process for modules. The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. Whilst also using Mocha for Unit tests, it was used to test the individual routes and their response whilst comparing them to a template. The same method was applied to test requests. This automation increased the efficiency of production, however, the small amount of routes to test allowed us to be more thorough by manually sending requests to the server using Postman. Postman is a API development tool which allows requests to be sent through an easily manageable user interface. By doing this, expected values were easy to match with actual values, and further bugs could be caught even when the templates had matched previously. \subsection{Integration Testing} -\subsubsection{CORS} \ No newline at end of file +Once the system had been fully implemented and tested, it was necessary to integrate with the rest of the system such as user interface and the machine learning servers. This allowed us to determine whether specific protocols were implemented correctly and to ensure that all the requirements set by the client were met. To begin the integration process, the server was hosted through the St Andrews web service which allows content to be hosted through the web. This was done by configuring an \textit{nginx} proxy that would allow binding of the loopback address and port number. Using \texttt{tmux}, the session was hosted persistently as it allows terminal sessions to be detached and run in the background. From here, it was possible for other teams to send requests to the running server. +\subsubsection{CORS} +Integration testing also gave the opportunity to find additional errors specifically caused by the linking of servers. An example of this is the realisation of the lack of Cross-Origin support. The running server could not function properly as content requests were being sent to different origins and for security reasons this is not permitted. To fix this additional features were required to be implemented to support CORS. Specifically certain headers were added to permit different origin access. \ No newline at end of file -- cgit v1.2.1 From b8a52de8b944e06fb76c563d35c071518bae2751 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Sat, 21 Apr 2018 20:12:15 +0100 Subject: added to testing --- report/deliverable-3/texts/testing.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/texts/testing.tex b/report/deliverable-3/texts/testing.tex index 5389a3c..94d7dbc 100644 --- a/report/deliverable-3/texts/testing.tex +++ b/report/deliverable-3/texts/testing.tex @@ -4,6 +4,6 @@ Testing was a key process in the development of the final product just as it was \subsection{Using Mocha and Postman} The JavaScript framework Mocha was still used in the testing process for modules. The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. Whilst also using Mocha for Unit tests, it was used to test the individual routes and their response whilst comparing them to a template. The same method was applied to test requests. This automation increased the efficiency of production, however, the small amount of routes to test allowed us to be more thorough by manually sending requests to the server using Postman. Postman is a API development tool which allows requests to be sent through an easily manageable user interface. By doing this, expected values were easy to match with actual values, and further bugs could be caught even when the templates had matched previously. \subsection{Integration Testing} -Once the system had been fully implemented and tested, it was necessary to integrate with the rest of the system such as user interface and the machine learning servers. This allowed us to determine whether specific protocols were implemented correctly and to ensure that all the requirements set by the client were met. To begin the integration process, the server was hosted through the St Andrews web service which allows content to be hosted through the web. This was done by configuring an \textit{nginx} proxy that would allow binding of the loopback address and port number. Using \texttt{tmux}, the session was hosted persistently as it allows terminal sessions to be detached and run in the background. From here, it was possible for other teams to send requests to the running server. +Once the system had been fully implemented and tested, it was necessary to integrate with the rest of the system such as user interface and the machine learning servers. This allowed us to determine whether specific protocols were implemented correctly and to ensure that all the requirements set by the client were met. To begin the integration process, the server was hosted through the St Andrews web service which allows content to be hosted through the web. This was done by configuring an \textit{nginx} proxy that would allow binding of the loopback address and port number. Using \texttt{tmux}, the session was hosted persistently as it allows terminal sessions to be detached and run in the background. The server runs on the domain \textit{har4.host.cs.st-andrews.ac.uk}. From here, it was possible for other teams to send requests to the running server. \subsubsection{CORS} -Integration testing also gave the opportunity to find additional errors specifically caused by the linking of servers. An example of this is the realisation of the lack of Cross-Origin support. The running server could not function properly as content requests were being sent to different origins and for security reasons this is not permitted. To fix this additional features were required to be implemented to support CORS. Specifically certain headers were added to permit different origin access. \ No newline at end of file +Integration testing also gave the opportunity to find additional errors specifically caused by the linking of servers. An example of this is the realisation of the lack of Cross-Origin support. The running server could not function properly as content requests were being sent to different origins and for security reasons this is not permitted. To fix this additional features were required to be implemented to support CORS. Specifically certain headers were added to permit different origin access. -- cgit v1.2.1 From e6dc8785599d624d7be44e30d45291e696762832 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 21 Apr 2018 23:55:26 +0100 Subject: various items --- report/deliverable-3/main.out | 36 +++++++++++++++++++ report/deliverable-3/main.synctex.gz | Bin 85283 -> 88217 bytes report/deliverable-3/main.tex | 9 +++++ report/deliverable-3/main.toc | 65 +++++++++++++++++++---------------- report/deliverable-3/texts/files.tex | 7 ++-- report/deliverable-3/texts/work.tex | 26 ++++++++++++++ 6 files changed, 110 insertions(+), 33 deletions(-) create mode 100644 report/deliverable-3/main.out (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.out b/report/deliverable-3/main.out new file mode 100644 index 0000000..daf95b0 --- /dev/null +++ b/report/deliverable-3/main.out @@ -0,0 +1,36 @@ +\BOOKMARK [1][-]{section.1}{Aims for Final Submission}{}% 1 +\BOOKMARK [1][-]{section.2}{Completed Work}{}% 2 +\BOOKMARK [2][-]{subsection.2.1}{Endpoints}{section.2}% 3 +\BOOKMARK [1][-]{section.3}{Continued use of Scrum}{}% 4 +\BOOKMARK [2][-]{subsection.3.1}{Sprints}{section.3}% 5 +\BOOKMARK [2][-]{subsection.3.2}{Scrum board}{section.3}% 6 +\BOOKMARK [1][-]{section.4}{File Conversion}{}% 7 +\BOOKMARK [2][-]{subsection.4.1}{Dealing with Images}{section.4}% 8 +\BOOKMARK [3][-]{subsubsection.4.1.1}{Extraction of Zeiss Within `C'}{subsection.4.1}% 9 +\BOOKMARK [3][-]{subsubsection.4.1.2}{Converting Extracted Files}{subsection.4.1}% 10 +\BOOKMARK [3][-]{subsubsection.4.1.3}{Stitching Base Tiles}{subsection.4.1}% 11 +\BOOKMARK [3][-]{subsubsection.4.1.4}{Building Up Hierarchy of Zoom Levels}{subsection.4.1}% 12 +\BOOKMARK [2][-]{subsection.4.2}{Leica \046 Other Formats}{section.4}% 13 +\BOOKMARK [2][-]{subsection.4.3}{Non image formats \(.csv etc.\)}{section.4}% 14 +\BOOKMARK [1][-]{section.5}{File Management}{}% 15 +\BOOKMARK [2][-]{subsection.5.1}{Directory Structure}{section.5}% 16 +\BOOKMARK [2][-]{subsection.5.2}{File Upload}{section.5}% 17 +\BOOKMARK [2][-]{subsection.5.3}{File Download}{section.5}% 18 +\BOOKMARK [1][-]{section.6}{Testing}{}% 19 +\BOOKMARK [2][-]{subsection.6.1}{Integration Testing}{section.6}% 20 +\BOOKMARK [3][-]{subsubsection.6.1.1}{CORS}{subsection.6.1}% 21 +\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 22 +\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 23 +\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 24 +\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 25 +\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 26 +\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 27 +\BOOKMARK [1][-]{section.8}{Conclusion}{}% 28 +\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 29 +\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 30 +\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 31 +\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 32 +\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 33 +\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 34 +\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 35 +\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 36 diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index d6fcc0f..2291534 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex index b7bb1b5..3d02f11 100644 --- a/report/deliverable-3/main.tex +++ b/report/deliverable-3/main.tex @@ -9,6 +9,15 @@ \usepackage{float} \usepackage{listings} \usepackage{cite} +\usepackage{hyperref} +\hypersetup{ + colorlinks=true, + linkcolor=blue, + filecolor=magenta, + urlcolor=cyan, +} + +\urlstyle{same} \def\file{\texttt} diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index 757c3a2..3cd427a 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -1,29 +1,36 @@ -\contentsline {section}{\numberline {1}Aims for Final Submission}{2} -\contentsline {section}{\numberline {2}Completed Work}{2} -\contentsline {section}{\numberline {3}Continued use of Scrum}{2} -\contentsline {subsection}{\numberline {3.1}Sprints}{3} -\contentsline {subsection}{\numberline {3.2}Scrum board}{3} -\contentsline {section}{\numberline {4}File Conversion}{3} -\contentsline {subsection}{\numberline {4.1}Dealing with Images}{3} -\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{4} -\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{4} -\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{5} -\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5} -\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5} -\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6} -\contentsline {section}{\numberline {5}File Management}{6} -\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}{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} -\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{7} -\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{7} -\contentsline {subsection}{\numberline {7.3}Process Limitations}{7} -\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{8} -\contentsline {subsection}{\numberline {7.5}External System Hosting}{8} -\contentsline {section}{\numberline {8}Conclusion}{8} -\contentsline {subsection}{\numberline {8.1}Next Tasks}{8} -\contentsline {section}{\numberline {A}Scrum Board Images}{9} +\contentsline {section}{\numberline {1}Aims for Final Submission}{2}{section.1} +\contentsline {section}{\numberline {2}Completed Work}{2}{section.2} +\contentsline {subsection}{\numberline {2.1}Endpoints}{2}{subsection.2.1} +\contentsline {section}{\numberline {3}Continued use of Scrum}{3}{section.3} +\contentsline {subsection}{\numberline {3.1}Sprints}{3}{subsection.3.1} +\contentsline {subsection}{\numberline {3.2}Scrum board}{3}{subsection.3.2} +\contentsline {section}{\numberline {4}File Conversion}{3}{section.4} +\contentsline {subsection}{\numberline {4.1}Dealing with Images}{3}{subsection.4.1} +\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{4}{subsubsection.4.1.1} +\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{4}{subsubsection.4.1.2} +\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{5}{subsubsection.4.1.3} +\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5}{subsubsection.4.1.4} +\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5}{subsection.4.2} +\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6}{subsection.4.3} +\contentsline {section}{\numberline {5}File Management}{6}{section.5} +\contentsline {subsection}{\numberline {5.1}Directory Structure}{6}{subsection.5.1} +\contentsline {subsection}{\numberline {5.2}File Upload}{6}{subsection.5.2} +\contentsline {subsection}{\numberline {5.3}File Download}{7}{subsection.5.3} +\contentsline {section}{\numberline {6}Testing}{7}{section.6} +\contentsline {subsection}{\numberline {6.1}Integration Testing}{7}{subsection.6.1} +\contentsline {subsubsection}{\numberline {6.1.1}CORS}{7}{subsubsection.6.1.1} +\contentsline {section}{\numberline {7}Process Management and Deployment}{7}{section.7} +\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{7}{subsection.7.1} +\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{7}{subsection.7.2} +\contentsline {subsection}{\numberline {7.3}Process Limitations}{8}{subsection.7.3} +\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{8}{subsection.7.4} +\contentsline {subsection}{\numberline {7.5}External System Hosting}{8}{subsection.7.5} +\contentsline {section}{\numberline {8}Conclusion}{8}{section.8} +\contentsline {subsection}{\numberline {8.1}Future Development}{8}{subsection.8.1} +\contentsline {section}{\numberline {9}Individual Contributions}{8}{section.9} +\contentsline {subsection}{\numberline {9.1}Tom Harley}{8}{subsection.9.1} +\contentsline {subsection}{\numberline {9.2}Josh Lee}{8}{subsection.9.2} +\contentsline {subsection}{\numberline {9.3}Calum Duff}{8}{subsection.9.3} +\contentsline {subsection}{\numberline {9.4}Johannes Weck}{8}{subsection.9.4} +\contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{9}{subsection.9.5} +\contentsline {section}{\numberline {A}Scrum Board Images}{11}{appendix.A} diff --git a/report/deliverable-3/texts/files.tex b/report/deliverable-3/texts/files.tex index d77fc30..1c56ccc 100644 --- a/report/deliverable-3/texts/files.tex +++ b/report/deliverable-3/texts/files.tex @@ -8,12 +8,11 @@ The directory structure inside projects consists on a purely conceptual level in 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''. +When uploading files to the server, a POST request may be issued to the endpoint mentioned in the protocol. Once this request arrives at the server the node library `multer' automatically saves the data to a temporary directory called ``files-temp''. 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'. The file status may be reviewed by retrieving file meta-data. +Once the file status is set to `pre-processing', 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*. +Files may be retrieved from the server either by supplying the file uuid or the path. diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex index 77b6dba..b06aebc 100644 --- a/report/deliverable-3/texts/work.tex +++ b/report/deliverable-3/texts/work.tex @@ -9,4 +9,30 @@ Looking back on the tasks set out from the initial specifications we are very sa \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. +\item[Follow an agreed protocol for intergroup communication] We implemented the entire protocol \url{https://github.com/CS3099JH2017/cs3099jh/blob/master/protocols/BE01.md} +\end{description} + +\subsection{Endpoints} +\begin{description} +\item[get '/_supported_protocols_'] Returns the supported protocols +\item[get '/log'] Allows retreiving of logs (requires admin privileges) +\item[post '/log'] Allows viewing of logs (requires logging permission) +\item[get '/properties'] Returns the server configuration +\item[post '/properties'] Allows changing of the server configuration +\item[get '/user_privileges'] Returns all available privileges +\item[get '/users'] Returns all users +\item[get '/users/:username'] Returns information on a specific user +\item[post '/users/:username'] Allows adding of users and changing of user information +\item[get '/users/:username/properties'] Returns additional configuration options on a specific user +\item[get '/current_user'] Returns information of the authenticated user +\item[post '/current_user'] Allows changing of information for the authenticated user +\item[get '/project_roles'] Returns all project roles +\item[get '/projects'] Returns all projects +\item[get '/projects/:project_name'] Returns information of a specific project +\item[post '/projects/:project_name'] Allows changing of information of a specific project +\item[get '/projects/:project_name/properties'] Returns additional configuration options of a specific project +\item[get '/projects/:project_name/files/'] Returns all files and folders at the base level of the project (non-recursive) +\item[get '/projects/:project_name/files/:path'] Returns a file +\item[post '/projects/:project_name/files/:path'] Uploads a file +\item[get '/projects/:project_name/files_by_id/:id'] Returns a file \end{description} \ No newline at end of file -- cgit v1.2.1 From 41cc7768116e8e471f5a303534c2f55a617a655e Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 14:07:00 +0100 Subject: fixed latex compile issue --- report/deliverable-3/main.out | 35 +++++++++++---------- report/deliverable-3/main.synctex.gz | Bin 88217 -> 100133 bytes report/deliverable-3/main.toc | 59 ++++++++++++++++++----------------- report/deliverable-3/texts/work.tex | 42 ++++++++++++------------- 4 files changed, 69 insertions(+), 67 deletions(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.out b/report/deliverable-3/main.out index daf95b0..2ef0e6e 100644 --- a/report/deliverable-3/main.out +++ b/report/deliverable-3/main.out @@ -17,20 +17,21 @@ \BOOKMARK [2][-]{subsection.5.2}{File Upload}{section.5}% 17 \BOOKMARK [2][-]{subsection.5.3}{File Download}{section.5}% 18 \BOOKMARK [1][-]{section.6}{Testing}{}% 19 -\BOOKMARK [2][-]{subsection.6.1}{Integration Testing}{section.6}% 20 -\BOOKMARK [3][-]{subsubsection.6.1.1}{CORS}{subsection.6.1}% 21 -\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 22 -\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 23 -\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 24 -\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 25 -\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 26 -\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 27 -\BOOKMARK [1][-]{section.8}{Conclusion}{}% 28 -\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 29 -\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 30 -\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 31 -\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 32 -\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 33 -\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 34 -\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 35 -\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 36 +\BOOKMARK [2][-]{subsection.6.1}{Using Mocha and Postman}{section.6}% 20 +\BOOKMARK [2][-]{subsection.6.2}{Integration Testing}{section.6}% 21 +\BOOKMARK [3][-]{subsubsection.6.2.1}{CORS}{subsection.6.2}% 22 +\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 23 +\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 24 +\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 25 +\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 26 +\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 27 +\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 28 +\BOOKMARK [1][-]{section.8}{Conclusion}{}% 29 +\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 30 +\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 31 +\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 32 +\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 33 +\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 34 +\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 35 +\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 36 +\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 37 diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index 2291534..b03a4b0 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index 3cd427a..caf3cf6 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -1,36 +1,37 @@ \contentsline {section}{\numberline {1}Aims for Final Submission}{2}{section.1} \contentsline {section}{\numberline {2}Completed Work}{2}{section.2} -\contentsline {subsection}{\numberline {2.1}Endpoints}{2}{subsection.2.1} +\contentsline {subsection}{\numberline {2.1}Endpoints}{3}{subsection.2.1} \contentsline {section}{\numberline {3}Continued use of Scrum}{3}{section.3} \contentsline {subsection}{\numberline {3.1}Sprints}{3}{subsection.3.1} -\contentsline {subsection}{\numberline {3.2}Scrum board}{3}{subsection.3.2} -\contentsline {section}{\numberline {4}File Conversion}{3}{section.4} -\contentsline {subsection}{\numberline {4.1}Dealing with Images}{3}{subsection.4.1} -\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{4}{subsubsection.4.1.1} -\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{4}{subsubsection.4.1.2} -\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{5}{subsubsection.4.1.3} -\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{5}{subsubsection.4.1.4} -\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{5}{subsection.4.2} +\contentsline {subsection}{\numberline {3.2}Scrum board}{4}{subsection.3.2} +\contentsline {section}{\numberline {4}File Conversion}{4}{section.4} +\contentsline {subsection}{\numberline {4.1}Dealing with Images}{4}{subsection.4.1} +\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{5}{subsubsection.4.1.1} +\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{5}{subsubsection.4.1.2} +\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{6}{subsubsection.4.1.3} +\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{6}{subsubsection.4.1.4} +\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{6}{subsection.4.2} \contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6}{subsection.4.3} -\contentsline {section}{\numberline {5}File Management}{6}{section.5} -\contentsline {subsection}{\numberline {5.1}Directory Structure}{6}{subsection.5.1} -\contentsline {subsection}{\numberline {5.2}File Upload}{6}{subsection.5.2} +\contentsline {section}{\numberline {5}File Management}{7}{section.5} +\contentsline {subsection}{\numberline {5.1}Directory Structure}{7}{subsection.5.1} +\contentsline {subsection}{\numberline {5.2}File Upload}{7}{subsection.5.2} \contentsline {subsection}{\numberline {5.3}File Download}{7}{subsection.5.3} \contentsline {section}{\numberline {6}Testing}{7}{section.6} -\contentsline {subsection}{\numberline {6.1}Integration Testing}{7}{subsection.6.1} -\contentsline {subsubsection}{\numberline {6.1.1}CORS}{7}{subsubsection.6.1.1} -\contentsline {section}{\numberline {7}Process Management and Deployment}{7}{section.7} -\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{7}{subsection.7.1} -\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{7}{subsection.7.2} -\contentsline {subsection}{\numberline {7.3}Process Limitations}{8}{subsection.7.3} -\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{8}{subsection.7.4} -\contentsline {subsection}{\numberline {7.5}External System Hosting}{8}{subsection.7.5} -\contentsline {section}{\numberline {8}Conclusion}{8}{section.8} -\contentsline {subsection}{\numberline {8.1}Future Development}{8}{subsection.8.1} -\contentsline {section}{\numberline {9}Individual Contributions}{8}{section.9} -\contentsline {subsection}{\numberline {9.1}Tom Harley}{8}{subsection.9.1} -\contentsline {subsection}{\numberline {9.2}Josh Lee}{8}{subsection.9.2} -\contentsline {subsection}{\numberline {9.3}Calum Duff}{8}{subsection.9.3} -\contentsline {subsection}{\numberline {9.4}Johannes Weck}{8}{subsection.9.4} -\contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{9}{subsection.9.5} -\contentsline {section}{\numberline {A}Scrum Board Images}{11}{appendix.A} +\contentsline {subsection}{\numberline {6.1}Using Mocha and Postman}{8}{subsection.6.1} +\contentsline {subsection}{\numberline {6.2}Integration Testing}{8}{subsection.6.2} +\contentsline {subsubsection}{\numberline {6.2.1}CORS}{8}{subsubsection.6.2.1} +\contentsline {section}{\numberline {7}Process Management and Deployment}{8}{section.7} +\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{8}{subsection.7.1} +\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{8}{subsection.7.2} +\contentsline {subsection}{\numberline {7.3}Process Limitations}{9}{subsection.7.3} +\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{9}{subsection.7.4} +\contentsline {subsection}{\numberline {7.5}External System Hosting}{9}{subsection.7.5} +\contentsline {section}{\numberline {8}Conclusion}{9}{section.8} +\contentsline {subsection}{\numberline {8.1}Future Development}{10}{subsection.8.1} +\contentsline {section}{\numberline {9}Individual Contributions}{10}{section.9} +\contentsline {subsection}{\numberline {9.1}Tom Harley}{10}{subsection.9.1} +\contentsline {subsection}{\numberline {9.2}Josh Lee}{10}{subsection.9.2} +\contentsline {subsection}{\numberline {9.3}Calum Duff}{10}{subsection.9.3} +\contentsline {subsection}{\numberline {9.4}Johannes Weck}{10}{subsection.9.4} +\contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{10}{subsection.9.5} +\contentsline {section}{\numberline {A}Scrum Board Images}{12}{appendix.A} diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex index b06aebc..789b58a 100644 --- a/report/deliverable-3/texts/work.tex +++ b/report/deliverable-3/texts/work.tex @@ -14,25 +14,25 @@ Looking back on the tasks set out from the initial specifications we are very sa \subsection{Endpoints} \begin{description} -\item[get '/_supported_protocols_'] Returns the supported protocols -\item[get '/log'] Allows retreiving of logs (requires admin privileges) -\item[post '/log'] Allows viewing of logs (requires logging permission) -\item[get '/properties'] Returns the server configuration -\item[post '/properties'] Allows changing of the server configuration -\item[get '/user_privileges'] Returns all available privileges -\item[get '/users'] Returns all users -\item[get '/users/:username'] Returns information on a specific user -\item[post '/users/:username'] Allows adding of users and changing of user information -\item[get '/users/:username/properties'] Returns additional configuration options on a specific user -\item[get '/current_user'] Returns information of the authenticated user -\item[post '/current_user'] Allows changing of information for the authenticated user -\item[get '/project_roles'] Returns all project roles -\item[get '/projects'] Returns all projects -\item[get '/projects/:project_name'] Returns information of a specific project -\item[post '/projects/:project_name'] Allows changing of information of a specific project -\item[get '/projects/:project_name/properties'] Returns additional configuration options of a specific project -\item[get '/projects/:project_name/files/'] Returns all files and folders at the base level of the project (non-recursive) -\item[get '/projects/:project_name/files/:path'] Returns a file -\item[post '/projects/:project_name/files/:path'] Uploads a file -\item[get '/projects/:project_name/files_by_id/:id'] Returns a file +\item[get /\_supported\_protocols\_] Returns the supported protocols +\item[get /log] Allows retreiving of logs (requires admin privileges) +\item[post /log] Allows viewing of logs (requires logging permission) +\item[get /properties] Returns the server configuration +\item[post /properties] Allows changing of the server configuration +\item[get /user\_privileges] Returns all available privileges +\item[get /users] Returns all users +\item[get /users/:username] Returns information on a specific user +\item[post /users/:username] Allows adding of users and changing of user information +\item[get /users/:username/properties] Returns additional configuration options on a specific user +\item[get /current\_user] Returns information of the authenticated user +\item[post /current\_user] Allows changing of information for the authenticated user +\item[get /project\_roles] Returns all project roles +\item[get /projects] Returns all projects +\item[get /projects/:project\_name] Returns information of a specific project +\item[post /projects/:project\_name] Allows changing of information of a specific project +\item[get /projects/:project\_name/properties] Returns additional configuration options of a specific project +\item[get /projects/:project\_name/files/] Returns all files and folders at the base level of the project (non-recursive) +\item[get /projects/:project\_name/files/:path] Returns a file +\item[post /projects/:project\_name/files/:path] Uploads a file +\item[get /projects/:project\_name/files\_by\_id/:id] Returns a file \end{description} \ No newline at end of file -- cgit v1.2.1 From cd183262ea0b9a5af6d0eb36e5774f0e6de9c9b3 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 15:43:30 +0100 Subject: somw work --- report/deliverable-3/main.synctex.gz | Bin 100133 -> 100352 bytes report/deliverable-3/main.toc | 8 +++--- report/deliverable-3/texts/work.tex | 47 +++++++++++++++++++---------------- 3 files changed, 30 insertions(+), 25 deletions(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index b03a4b0..e8f3063 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index caf3cf6..a480b1b 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -2,7 +2,7 @@ \contentsline {section}{\numberline {2}Completed Work}{2}{section.2} \contentsline {subsection}{\numberline {2.1}Endpoints}{3}{subsection.2.1} \contentsline {section}{\numberline {3}Continued use of Scrum}{3}{section.3} -\contentsline {subsection}{\numberline {3.1}Sprints}{3}{subsection.3.1} +\contentsline {subsection}{\numberline {3.1}Sprints}{4}{subsection.3.1} \contentsline {subsection}{\numberline {3.2}Scrum board}{4}{subsection.3.2} \contentsline {section}{\numberline {4}File Conversion}{4}{section.4} \contentsline {subsection}{\numberline {4.1}Dealing with Images}{4}{subsection.4.1} @@ -11,18 +11,18 @@ \contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{6}{subsubsection.4.1.3} \contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{6}{subsubsection.4.1.4} \contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{6}{subsection.4.2} -\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{6}{subsection.4.3} +\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{7}{subsection.4.3} \contentsline {section}{\numberline {5}File Management}{7}{section.5} \contentsline {subsection}{\numberline {5.1}Directory Structure}{7}{subsection.5.1} \contentsline {subsection}{\numberline {5.2}File Upload}{7}{subsection.5.2} \contentsline {subsection}{\numberline {5.3}File Download}{7}{subsection.5.3} -\contentsline {section}{\numberline {6}Testing}{7}{section.6} +\contentsline {section}{\numberline {6}Testing}{8}{section.6} \contentsline {subsection}{\numberline {6.1}Using Mocha and Postman}{8}{subsection.6.1} \contentsline {subsection}{\numberline {6.2}Integration Testing}{8}{subsection.6.2} \contentsline {subsubsection}{\numberline {6.2.1}CORS}{8}{subsubsection.6.2.1} \contentsline {section}{\numberline {7}Process Management and Deployment}{8}{section.7} \contentsline {subsection}{\numberline {7.1}Process Manager Selection}{8}{subsection.7.1} -\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{8}{subsection.7.2} +\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{9}{subsection.7.2} \contentsline {subsection}{\numberline {7.3}Process Limitations}{9}{subsection.7.3} \contentsline {subsection}{\numberline {7.4}Heroku Hosting}{9}{subsection.7.4} \contentsline {subsection}{\numberline {7.5}External System Hosting}{9}{subsection.7.5} diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex index 789b58a..08cc786 100644 --- a/report/deliverable-3/texts/work.tex +++ b/report/deliverable-3/texts/work.tex @@ -13,26 +13,31 @@ Looking back on the tasks set out from the initial specifications we are very sa \end{description} \subsection{Endpoints} +as specified by the agreed protocol \begin{description} -\item[get /\_supported\_protocols\_] Returns the supported protocols -\item[get /log] Allows retreiving of logs (requires admin privileges) -\item[post /log] Allows viewing of logs (requires logging permission) -\item[get /properties] Returns the server configuration -\item[post /properties] Allows changing of the server configuration -\item[get /user\_privileges] Returns all available privileges -\item[get /users] Returns all users -\item[get /users/:username] Returns information on a specific user -\item[post /users/:username] Allows adding of users and changing of user information -\item[get /users/:username/properties] Returns additional configuration options on a specific user -\item[get /current\_user] Returns information of the authenticated user -\item[post /current\_user] Allows changing of information for the authenticated user -\item[get /project\_roles] Returns all project roles -\item[get /projects] Returns all projects -\item[get /projects/:project\_name] Returns information of a specific project -\item[post /projects/:project\_name] Allows changing of information of a specific project -\item[get /projects/:project\_name/properties] Returns additional configuration options of a specific project -\item[get /projects/:project\_name/files/] Returns all files and folders at the base level of the project (non-recursive) -\item[get /projects/:project\_name/files/:path] Returns a file -\item[post /projects/:project\_name/files/:path] Uploads a file -\item[get /projects/:project\_name/files\_by\_id/:id] Returns a file +\item[post /oauth/token] Allows authentication, issuing a token. +\item[get /\_supported\_protocols\_] Returns the supported protocols +\item[get /log] Allows retreiving of logs (requires admin privileges)\\ +optional url parameters: \texttt{before=\&after=\&level=} +\item[post /log] Allows viewing of logs (requires logging permission) +\item[get /properties] Returns the server configuration +\item[post /properties] Allows changing of the server configuration +\item[get /user\_privileges] Returns all available privileges +\item[get /users] Returns all users +\item[get /users/:username] Returns information on a specific user +\item[post /users/:username] Allows adding, deleting and changing of user (information)\\ +url parameters: \texttt{action=create} or \texttt{action=update} or \texttt{action=delete} +\item[get /users/:username/properties] Returns additional configuration options on a specific user +\item[get /current\_user] Returns information of the authenticated user +\item[post /current\_user] Allows changing of information for the authenticated user +\item[get /project\_roles] Returns all project roles +\item[get /projects] Returns all projects +\item[get /projects/:project\_name] Returns information of a specific project +\item[post /projects/:project\_name] Allows changing of information of a specific project\\ +url parameters: \texttt{action=create} or \texttt{action=update} or \texttt{action=delete} +\item[get /projects/:project\_name/properties] Returns additional configuration options of a specific project +\item[get /projects/:project\_name/files/] Returns all files and folders at the base level of the project (non-recursive) +\item[get /projects/:project\_name/files/:path] Returns a file +\item[post /projects/:project\_name/files/:path] Uploads a file +\item[get /projects/:project\_name/files\_by\_id/:id] Returns a file \end{description} \ No newline at end of file -- cgit v1.2.1 From 84e6f221419b0fb56ae4bfb0eddf46777ff271a3 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 16:54:08 +0100 Subject: conclusion + ind. contr. reworked --- report/deliverable-3/main.out | 41 +++++++++++++-------------- report/deliverable-3/main.synctex.gz | Bin 100352 -> 103961 bytes report/deliverable-3/main.toc | 9 +++--- report/deliverable-3/texts/conclusion.tex | 9 +++++- report/deliverable-3/texts/contributions.tex | 4 ++- report/deliverable-3/texts/files.tex | 6 ++-- report/deliverable-3/texts/work.tex | 6 ++-- 7 files changed, 42 insertions(+), 33 deletions(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.out b/report/deliverable-3/main.out index 2ef0e6e..5d8e1e5 100644 --- a/report/deliverable-3/main.out +++ b/report/deliverable-3/main.out @@ -14,24 +14,23 @@ \BOOKMARK [2][-]{subsection.4.3}{Non image formats \(.csv etc.\)}{section.4}% 14 \BOOKMARK [1][-]{section.5}{File Management}{}% 15 \BOOKMARK [2][-]{subsection.5.1}{Directory Structure}{section.5}% 16 -\BOOKMARK [2][-]{subsection.5.2}{File Upload}{section.5}% 17 -\BOOKMARK [2][-]{subsection.5.3}{File Download}{section.5}% 18 -\BOOKMARK [1][-]{section.6}{Testing}{}% 19 -\BOOKMARK [2][-]{subsection.6.1}{Using Mocha and Postman}{section.6}% 20 -\BOOKMARK [2][-]{subsection.6.2}{Integration Testing}{section.6}% 21 -\BOOKMARK [3][-]{subsubsection.6.2.1}{CORS}{subsection.6.2}% 22 -\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 23 -\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 24 -\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 25 -\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 26 -\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 27 -\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 28 -\BOOKMARK [1][-]{section.8}{Conclusion}{}% 29 -\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 30 -\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 31 -\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 32 -\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 33 -\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 34 -\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 35 -\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 36 -\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 37 +\BOOKMARK [2][-]{subsection.5.2}{File Upload and Download}{section.5}% 17 +\BOOKMARK [1][-]{section.6}{Testing}{}% 18 +\BOOKMARK [2][-]{subsection.6.1}{Using Mocha and Postman}{section.6}% 19 +\BOOKMARK [2][-]{subsection.6.2}{Integration Testing}{section.6}% 20 +\BOOKMARK [3][-]{subsubsection.6.2.1}{CORS}{subsection.6.2}% 21 +\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 22 +\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 23 +\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 24 +\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 25 +\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 26 +\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 27 +\BOOKMARK [1][-]{section.8}{Conclusion}{}% 28 +\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 29 +\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 30 +\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 31 +\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 32 +\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 33 +\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 34 +\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 35 +\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 36 diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index e8f3063..64b37ac 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index a480b1b..f1598f7 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -14,9 +14,8 @@ \contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{7}{subsection.4.3} \contentsline {section}{\numberline {5}File Management}{7}{section.5} \contentsline {subsection}{\numberline {5.1}Directory Structure}{7}{subsection.5.1} -\contentsline {subsection}{\numberline {5.2}File Upload}{7}{subsection.5.2} -\contentsline {subsection}{\numberline {5.3}File Download}{7}{subsection.5.3} -\contentsline {section}{\numberline {6}Testing}{8}{section.6} +\contentsline {subsection}{\numberline {5.2}File Upload and Download}{7}{subsection.5.2} +\contentsline {section}{\numberline {6}Testing}{7}{section.6} \contentsline {subsection}{\numberline {6.1}Using Mocha and Postman}{8}{subsection.6.1} \contentsline {subsection}{\numberline {6.2}Integration Testing}{8}{subsection.6.2} \contentsline {subsubsection}{\numberline {6.2.1}CORS}{8}{subsubsection.6.2.1} @@ -26,7 +25,7 @@ \contentsline {subsection}{\numberline {7.3}Process Limitations}{9}{subsection.7.3} \contentsline {subsection}{\numberline {7.4}Heroku Hosting}{9}{subsection.7.4} \contentsline {subsection}{\numberline {7.5}External System Hosting}{9}{subsection.7.5} -\contentsline {section}{\numberline {8}Conclusion}{9}{section.8} +\contentsline {section}{\numberline {8}Conclusion}{10}{section.8} \contentsline {subsection}{\numberline {8.1}Future Development}{10}{subsection.8.1} \contentsline {section}{\numberline {9}Individual Contributions}{10}{section.9} \contentsline {subsection}{\numberline {9.1}Tom Harley}{10}{subsection.9.1} @@ -34,4 +33,4 @@ \contentsline {subsection}{\numberline {9.3}Calum Duff}{10}{subsection.9.3} \contentsline {subsection}{\numberline {9.4}Johannes Weck}{10}{subsection.9.4} \contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{10}{subsection.9.5} -\contentsline {section}{\numberline {A}Scrum Board Images}{12}{appendix.A} +\contentsline {section}{\numberline {A}Scrum Board Images}{11}{appendix.A} diff --git a/report/deliverable-3/texts/conclusion.tex b/report/deliverable-3/texts/conclusion.tex index 33c018a..45e2f85 100644 --- a/report/deliverable-3/texts/conclusion.tex +++ b/report/deliverable-3/texts/conclusion.tex @@ -4,4 +4,11 @@ As a group, we are very pleased with the process and outcome of this group proje 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} -... +The submitted project has potential for future improvements, especially regarding system security and file-conversion. + +One substantial flaw of our system is that we rely on the security of all the node-modules including postgres as well as their inter-compatibility. Comprehensive vulnerability scanning as well as penetration testing of our system would be required to ensure security of patients' confidential data. Research into security standards required by law would be necessary. + +Similarly, it might prove useful to encrypt data on the server-side as well as combine the ML server and the BE server into one software package, thus reducing the number of components involved. + +Also, image file conversion could be explored further, as conversion of *TODO* into png is not yet supported + diff --git a/report/deliverable-3/texts/contributions.tex b/report/deliverable-3/texts/contributions.tex index bc448bb..994a3bc 100644 --- a/report/deliverable-3/texts/contributions.tex +++ b/report/deliverable-3/texts/contributions.tex @@ -3,5 +3,7 @@ \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. +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. One of the main challenges in this respect was understanding code written by other team-members. Clear and frequent communication between all members proved essential to this process. + +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. I was mostly involved with the file-system part of file storage, integrating the node-module `multer' with our server. `multer' was later swapped out for the package `body-parser' to allow compatibility with our assigned ML and HCI groups. \subsection{Hafeez Abdul-Rehaman} diff --git a/report/deliverable-3/texts/files.tex b/report/deliverable-3/texts/files.tex index 1c56ccc..e1aa40a 100644 --- a/report/deliverable-3/texts/files.tex +++ b/report/deliverable-3/texts/files.tex @@ -1,5 +1,6 @@ \section{File Management} File handling was one of the last unimplemented parts of our server. Integration testing proved essential for ensuring full functionality according to the agreed protocol. File upload and download involved overcoming a range of challenges which arose as additional features were implemented. + \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. @@ -7,12 +8,11 @@ The directory structure inside projects consists on a purely conceptual level in 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 the endpoint mentioned in the protocol. Once this request arrives at the server the node library `multer' automatically saves the data to a temporary directory called ``files-temp''. +\subsection{File Upload and Download} +When uploading files to the server, a POST request may be issued to the endpoint mentioned in the protocol. Once this request arrives at the server the node library `*TODO*' automatically saves the data to a temporary directory called ``files-temp''. 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 `pre-processing', 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} Files may be retrieved from the server either by supplying the file uuid or the path. diff --git a/report/deliverable-3/texts/work.tex b/report/deliverable-3/texts/work.tex index 08cc786..92b9058 100644 --- a/report/deliverable-3/texts/work.tex +++ b/report/deliverable-3/texts/work.tex @@ -37,7 +37,9 @@ url parameters: \texttt{action=create} or \texttt{action=update} or \texttt{acti url parameters: \texttt{action=create} or \texttt{action=update} or \texttt{action=delete} \item[get /projects/:project\_name/properties] Returns additional configuration options of a specific project \item[get /projects/:project\_name/files/] Returns all files and folders at the base level of the project (non-recursive) -\item[get /projects/:project\_name/files/:path] Returns a file -\item[post /projects/:project\_name/files/:path] Uploads a file +\item[get /projects/:project\_name/files/:path] Returns a file\\ +optional url parameters: (default) \texttt{view=meta} or \texttt{raw} or other views depending on the file type +\item[post /projects/:project\_name/files/:path] Uploads a file\\ +optional url parameters: \texttt{action=set\_metadata, mkdir, delete, move, copy}, \texttt{overwrite=true, false}, \texttt{offset=int}, \texttt{truncate= true, false} and \texttt{final=true, false} \item[get /projects/:project\_name/files\_by\_id/:id] Returns a file \end{description} \ No newline at end of file -- cgit v1.2.1 From 7f23742f3dce6e5ced1683e69a03f28f011df156 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Sun, 22 Apr 2018 16:54:43 +0100 Subject: added to individual contribtion --- report/deliverable-3/main.synctex.gz | Bin 100133 -> 94619 bytes report/deliverable-3/texts/contributions.tex | 3 +++ 2 files changed, 3 insertions(+) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz index b03a4b0..aba4dff 100644 Binary files a/report/deliverable-3/main.synctex.gz and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/texts/contributions.tex b/report/deliverable-3/texts/contributions.tex index bc448bb..46b0ce8 100644 --- a/report/deliverable-3/texts/contributions.tex +++ b/report/deliverable-3/texts/contributions.tex @@ -5,3 +5,6 @@ \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} +My role in the development of the server, involved producing the authentication system and providing security to each of the routes in the RESTful API. This was done through node.js libraries including \textit{passportjs} and \textit{jsonwebtokens}. I also tested the functionality of this after implementation to ensure it was working using tools such as Postman and curl. Whilst also conducting tests for authentication, I assisted Johannes in running and resolving test issues found in other parts of the implementation. By using more than one team member on larger tasks, it took less time to solve these problems. This took a considerable amount of time during the last sprint, as testing was required to be much larger and thorough for the fully implemented system. During the later sprints, I was also designated as scrum master. This meant I was responsible for organising tasks and managing time, and removing obstacles the team may face. + +As a team member, I did not feel that there were any major obstacles which impeded the development of the system. However, there were some issues regarding time and managing work set out by other modules within the Computer Science course. Some sprints clashed with other pieces of coursework that also needed to be completed. Therefore, additional care was needed when organising tasks related to the project and planning was required for an extended period of time which would overlap other upcoming coursework deadlines. This way as a team we could plan around other unrelated submissions. \ No newline at end of file -- cgit v1.2.1 From ce448f38b3372f5f0a08b54f88858406adc629d4 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Sun, 22 Apr 2018 17:04:04 +0100 Subject: again no reason --- report/deliverable-3/main.toc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index f1598f7..5b9399b 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -33,4 +33,4 @@ \contentsline {subsection}{\numberline {9.3}Calum Duff}{10}{subsection.9.3} \contentsline {subsection}{\numberline {9.4}Johannes Weck}{10}{subsection.9.4} \contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{10}{subsection.9.5} -\contentsline {section}{\numberline {A}Scrum Board Images}{11}{appendix.A} +\contentsline {section}{\numberline {A}Scrum Board Images}{12}{appendix.A} -- cgit v1.2.1 From dbdb622b1a40b04d03a176c5b7f6cfe0d6c83f23 Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 20:24:50 +0100 Subject: added code section --- report/deliverable-3/main.out | 63 ++++++++++++++++++----------------- report/deliverable-3/main.synctex.gz | Bin 0 -> 105666 bytes report/deliverable-3/main.tex | 1 + report/deliverable-3/main.toc | 63 ++++++++++++++++++----------------- report/deliverable-3/texts/code.tex | 6 ++++ 5 files changed, 73 insertions(+), 60 deletions(-) create mode 100644 report/deliverable-3/main.synctex.gz create mode 100644 report/deliverable-3/texts/code.tex (limited to 'report/deliverable-3') diff --git a/report/deliverable-3/main.out b/report/deliverable-3/main.out index 5d8e1e5..738ad91 100644 --- a/report/deliverable-3/main.out +++ b/report/deliverable-3/main.out @@ -4,33 +4,36 @@ \BOOKMARK [1][-]{section.3}{Continued use of Scrum}{}% 4 \BOOKMARK [2][-]{subsection.3.1}{Sprints}{section.3}% 5 \BOOKMARK [2][-]{subsection.3.2}{Scrum board}{section.3}% 6 -\BOOKMARK [1][-]{section.4}{File Conversion}{}% 7 -\BOOKMARK [2][-]{subsection.4.1}{Dealing with Images}{section.4}% 8 -\BOOKMARK [3][-]{subsubsection.4.1.1}{Extraction of Zeiss Within `C'}{subsection.4.1}% 9 -\BOOKMARK [3][-]{subsubsection.4.1.2}{Converting Extracted Files}{subsection.4.1}% 10 -\BOOKMARK [3][-]{subsubsection.4.1.3}{Stitching Base Tiles}{subsection.4.1}% 11 -\BOOKMARK [3][-]{subsubsection.4.1.4}{Building Up Hierarchy of Zoom Levels}{subsection.4.1}% 12 -\BOOKMARK [2][-]{subsection.4.2}{Leica \046 Other Formats}{section.4}% 13 -\BOOKMARK [2][-]{subsection.4.3}{Non image formats \(.csv etc.\)}{section.4}% 14 -\BOOKMARK [1][-]{section.5}{File Management}{}% 15 -\BOOKMARK [2][-]{subsection.5.1}{Directory Structure}{section.5}% 16 -\BOOKMARK [2][-]{subsection.5.2}{File Upload and Download}{section.5}% 17 -\BOOKMARK [1][-]{section.6}{Testing}{}% 18 -\BOOKMARK [2][-]{subsection.6.1}{Using Mocha and Postman}{section.6}% 19 -\BOOKMARK [2][-]{subsection.6.2}{Integration Testing}{section.6}% 20 -\BOOKMARK [3][-]{subsubsection.6.2.1}{CORS}{subsection.6.2}% 21 -\BOOKMARK [1][-]{section.7}{Process Management and Deployment}{}% 22 -\BOOKMARK [2][-]{subsection.7.1}{Process Manager Selection}{section.7}% 23 -\BOOKMARK [2][-]{subsection.7.2}{pm2 and KeyMetrics}{section.7}% 24 -\BOOKMARK [2][-]{subsection.7.3}{Process Limitations}{section.7}% 25 -\BOOKMARK [2][-]{subsection.7.4}{Heroku Hosting}{section.7}% 26 -\BOOKMARK [2][-]{subsection.7.5}{External System Hosting}{section.7}% 27 -\BOOKMARK [1][-]{section.8}{Conclusion}{}% 28 -\BOOKMARK [2][-]{subsection.8.1}{Future Development}{section.8}% 29 -\BOOKMARK [1][-]{section.9}{Individual Contributions}{}% 30 -\BOOKMARK [2][-]{subsection.9.1}{Tom Harley}{section.9}% 31 -\BOOKMARK [2][-]{subsection.9.2}{Josh Lee}{section.9}% 32 -\BOOKMARK [2][-]{subsection.9.3}{Calum Duff}{section.9}% 33 -\BOOKMARK [2][-]{subsection.9.4}{Johannes Weck}{section.9}% 34 -\BOOKMARK [2][-]{subsection.9.5}{Hafeez Abdul-Rehaman}{section.9}% 35 -\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 36 +\BOOKMARK [1][-]{section.4}{Code Quality}{}% 7 +\BOOKMARK [2][-]{subsection.4.1}{Linter}{section.4}% 8 +\BOOKMARK [2][-]{subsection.4.2}{Scripts}{section.4}% 9 +\BOOKMARK [1][-]{section.5}{File Conversion}{}% 10 +\BOOKMARK [2][-]{subsection.5.1}{Dealing with Images}{section.5}% 11 +\BOOKMARK [3][-]{subsubsection.5.1.1}{Extraction of Zeiss Within `C'}{subsection.5.1}% 12 +\BOOKMARK [3][-]{subsubsection.5.1.2}{Converting Extracted Files}{subsection.5.1}% 13 +\BOOKMARK [3][-]{subsubsection.5.1.3}{Stitching Base Tiles}{subsection.5.1}% 14 +\BOOKMARK [3][-]{subsubsection.5.1.4}{Building Up Hierarchy of Zoom Levels}{subsection.5.1}% 15 +\BOOKMARK [2][-]{subsection.5.2}{Leica \046 Other Formats}{section.5}% 16 +\BOOKMARK [2][-]{subsection.5.3}{Non image formats \(.csv etc.\)}{section.5}% 17 +\BOOKMARK [1][-]{section.6}{File Management}{}% 18 +\BOOKMARK [2][-]{subsection.6.1}{Directory Structure}{section.6}% 19 +\BOOKMARK [2][-]{subsection.6.2}{File Upload and Download}{section.6}% 20 +\BOOKMARK [1][-]{section.7}{Testing}{}% 21 +\BOOKMARK [2][-]{subsection.7.1}{Using Mocha and Postman}{section.7}% 22 +\BOOKMARK [2][-]{subsection.7.2}{Integration Testing}{section.7}% 23 +\BOOKMARK [3][-]{subsubsection.7.2.1}{CORS}{subsection.7.2}% 24 +\BOOKMARK [1][-]{section.8}{Process Management and Deployment}{}% 25 +\BOOKMARK [2][-]{subsection.8.1}{Process Manager Selection}{section.8}% 26 +\BOOKMARK [2][-]{subsection.8.2}{pm2 and KeyMetrics}{section.8}% 27 +\BOOKMARK [2][-]{subsection.8.3}{Process Limitations}{section.8}% 28 +\BOOKMARK [2][-]{subsection.8.4}{Heroku Hosting}{section.8}% 29 +\BOOKMARK [2][-]{subsection.8.5}{External System Hosting}{section.8}% 30 +\BOOKMARK [1][-]{section.9}{Conclusion}{}% 31 +\BOOKMARK [2][-]{subsection.9.1}{Future Development}{section.9}% 32 +\BOOKMARK [1][-]{section.10}{Individual Contributions}{}% 33 +\BOOKMARK [2][-]{subsection.10.1}{Tom Harley}{section.10}% 34 +\BOOKMARK [2][-]{subsection.10.2}{Josh Lee}{section.10}% 35 +\BOOKMARK [2][-]{subsection.10.3}{Calum Duff}{section.10}% 36 +\BOOKMARK [2][-]{subsection.10.4}{Johannes Weck}{section.10}% 37 +\BOOKMARK [2][-]{subsection.10.5}{Hafeez Abdul-Rehaman}{section.10}% 38 +\BOOKMARK [1][-]{appendix.A}{Scrum Board Images}{}% 39 diff --git a/report/deliverable-3/main.synctex.gz b/report/deliverable-3/main.synctex.gz new file mode 100644 index 0000000..a89fc1a Binary files /dev/null and b/report/deliverable-3/main.synctex.gz differ diff --git a/report/deliverable-3/main.tex b/report/deliverable-3/main.tex index 3d02f11..ee3a4b0 100644 --- a/report/deliverable-3/main.tex +++ b/report/deliverable-3/main.tex @@ -36,6 +36,7 @@ \input{texts/aims} \input{texts/work} \input{texts/scrum} + \input{texts/code} \input{texts/conversion} \input{texts/files} \input{texts/testing} diff --git a/report/deliverable-3/main.toc b/report/deliverable-3/main.toc index f1598f7..67e0933 100644 --- a/report/deliverable-3/main.toc +++ b/report/deliverable-3/main.toc @@ -4,33 +4,36 @@ \contentsline {section}{\numberline {3}Continued use of Scrum}{3}{section.3} \contentsline {subsection}{\numberline {3.1}Sprints}{4}{subsection.3.1} \contentsline {subsection}{\numberline {3.2}Scrum board}{4}{subsection.3.2} -\contentsline {section}{\numberline {4}File Conversion}{4}{section.4} -\contentsline {subsection}{\numberline {4.1}Dealing with Images}{4}{subsection.4.1} -\contentsline {subsubsection}{\numberline {4.1.1}Extraction of Zeiss Within `C'}{5}{subsubsection.4.1.1} -\contentsline {subsubsection}{\numberline {4.1.2}Converting Extracted Files}{5}{subsubsection.4.1.2} -\contentsline {subsubsection}{\numberline {4.1.3}Stitching Base Tiles}{6}{subsubsection.4.1.3} -\contentsline {subsubsection}{\numberline {4.1.4}Building Up Hierarchy of Zoom Levels}{6}{subsubsection.4.1.4} -\contentsline {subsection}{\numberline {4.2}Leica \& Other Formats}{6}{subsection.4.2} -\contentsline {subsection}{\numberline {4.3}Non image formats (\texttt {.csv} etc.)}{7}{subsection.4.3} -\contentsline {section}{\numberline {5}File Management}{7}{section.5} -\contentsline {subsection}{\numberline {5.1}Directory Structure}{7}{subsection.5.1} -\contentsline {subsection}{\numberline {5.2}File Upload and Download}{7}{subsection.5.2} -\contentsline {section}{\numberline {6}Testing}{7}{section.6} -\contentsline {subsection}{\numberline {6.1}Using Mocha and Postman}{8}{subsection.6.1} -\contentsline {subsection}{\numberline {6.2}Integration Testing}{8}{subsection.6.2} -\contentsline {subsubsection}{\numberline {6.2.1}CORS}{8}{subsubsection.6.2.1} -\contentsline {section}{\numberline {7}Process Management and Deployment}{8}{section.7} -\contentsline {subsection}{\numberline {7.1}Process Manager Selection}{8}{subsection.7.1} -\contentsline {subsection}{\numberline {7.2}pm2 and KeyMetrics}{9}{subsection.7.2} -\contentsline {subsection}{\numberline {7.3}Process Limitations}{9}{subsection.7.3} -\contentsline {subsection}{\numberline {7.4}Heroku Hosting}{9}{subsection.7.4} -\contentsline {subsection}{\numberline {7.5}External System Hosting}{9}{subsection.7.5} -\contentsline {section}{\numberline {8}Conclusion}{10}{section.8} -\contentsline {subsection}{\numberline {8.1}Future Development}{10}{subsection.8.1} -\contentsline {section}{\numberline {9}Individual Contributions}{10}{section.9} -\contentsline {subsection}{\numberline {9.1}Tom Harley}{10}{subsection.9.1} -\contentsline {subsection}{\numberline {9.2}Josh Lee}{10}{subsection.9.2} -\contentsline {subsection}{\numberline {9.3}Calum Duff}{10}{subsection.9.3} -\contentsline {subsection}{\numberline {9.4}Johannes Weck}{10}{subsection.9.4} -\contentsline {subsection}{\numberline {9.5}Hafeez Abdul-Rehaman}{10}{subsection.9.5} -\contentsline {section}{\numberline {A}Scrum Board Images}{11}{appendix.A} +\contentsline {section}{\numberline {4}Code Quality}{4}{section.4} +\contentsline {subsection}{\numberline {4.1}Linter}{4}{subsection.4.1} +\contentsline {subsection}{\numberline {4.2}Scripts}{4}{subsection.4.2} +\contentsline {section}{\numberline {5}File Conversion}{4}{section.5} +\contentsline {subsection}{\numberline {5.1}Dealing with Images}{5}{subsection.5.1} +\contentsline {subsubsection}{\numberline {5.1.1}Extraction of Zeiss Within `C'}{5}{subsubsection.5.1.1} +\contentsline {subsubsection}{\numberline {5.1.2}Converting Extracted Files}{5}{subsubsection.5.1.2} +\contentsline {subsubsection}{\numberline {5.1.3}Stitching Base Tiles}{6}{subsubsection.5.1.3} +\contentsline {subsubsection}{\numberline {5.1.4}Building Up Hierarchy of Zoom Levels}{6}{subsubsection.5.1.4} +\contentsline {subsection}{\numberline {5.2}Leica \& Other Formats}{7}{subsection.5.2} +\contentsline {subsection}{\numberline {5.3}Non image formats (\texttt {.csv} etc.)}{7}{subsection.5.3} +\contentsline {section}{\numberline {6}File Management}{7}{section.6} +\contentsline {subsection}{\numberline {6.1}Directory Structure}{7}{subsection.6.1} +\contentsline {subsection}{\numberline {6.2}File Upload and Download}{7}{subsection.6.2} +\contentsline {section}{\numberline {7}Testing}{8}{section.7} +\contentsline {subsection}{\numberline {7.1}Using Mocha and Postman}{8}{subsection.7.1} +\contentsline {subsection}{\numberline {7.2}Integration Testing}{8}{subsection.7.2} +\contentsline {subsubsection}{\numberline {7.2.1}CORS}{8}{subsubsection.7.2.1} +\contentsline {section}{\numberline {8}Process Management and Deployment}{8}{section.8} +\contentsline {subsection}{\numberline {8.1}Process Manager Selection}{9}{subsection.8.1} +\contentsline {subsection}{\numberline {8.2}pm2 and KeyMetrics}{9}{subsection.8.2} +\contentsline {subsection}{\numberline {8.3}Process Limitations}{9}{subsection.8.3} +\contentsline {subsection}{\numberline {8.4}Heroku Hosting}{9}{subsection.8.4} +\contentsline {subsection}{\numberline {8.5}External System Hosting}{9}{subsection.8.5} +\contentsline {section}{\numberline {9}Conclusion}{10}{section.9} +\contentsline {subsection}{\numberline {9.1}Future Development}{10}{subsection.9.1} +\contentsline {section}{\numberline {10}Individual Contributions}{10}{section.10} +\contentsline {subsection}{\numberline {10.1}Tom Harley}{10}{subsection.10.1} +\contentsline {subsection}{\numberline {10.2}Josh Lee}{10}{subsection.10.2} +\contentsline {subsection}{\numberline {10.3}Calum Duff}{10}{subsection.10.3} +\contentsline {subsection}{\numberline {10.4}Johannes Weck}{10}{subsection.10.4} +\contentsline {subsection}{\numberline {10.5}Hafeez Abdul-Rehaman}{10}{subsection.10.5} +\contentsline {section}{\numberline {A}Scrum Board Images}{12}{appendix.A} diff --git a/report/deliverable-3/texts/code.tex b/report/deliverable-3/texts/code.tex new file mode 100644 index 0000000..6fe316b --- /dev/null +++ b/report/deliverable-3/texts/code.tex @@ -0,0 +1,6 @@ +\section{Code Quality} +\subsection{Linter} +To ensure code clarity and quality, we decided to use the linter `ts-lint'. This did not only help us create professional-style code but also aided in avoiding bugs early by catching out common errors. The linter was integrated with our editors as well as yarn as to automate its work-flow. + +\subsection{Scripts} +Several scripts were created to automate the installation and execution process. \ No newline at end of file -- cgit v1.2.1