Git Product home page Git Product logo

ped's People

Contributors

joseph31416 avatar

Watchers

 avatar

ped's Issues

Cluster partial words matching is not working as expected

Command:
cluster 1 a/clem d/Cov

From the first screenshot, there clearly exists a person with "Covid" living in "Clementi". However, the cluster command fails to identify that the cluster exists.
This might be caused by the string matching process being unsound. Different variants of the command like cluster 1 a/Clem d/Cov and cluster 1 a/clem d/cov have been tried and all of them failed to identify the cluster.

bug 14.png

bug 14_1.png

Update allows empty fields for certain keywords

Command:
update S1234567A hp/11111111 e/[email protected] con/

When no input is given for the condition field, the program stores an empty string instead of a null.

It might be a better idea to standardise across the program to determine if empty inputs are considered as null or something else.\

This has potential consequences for the find command.

bug 8.png

Find a/ with empty input results in an unhandled exception

After find a/ is run, an exception is thrown and it is unhandled.

A simple fix is to catch this exception and return a valid error message to prompt to user to provide inputs.
Another point to consider is whether this should return the whole list of people with all addresses since the address condition is empty.

bug 4.png

bug 4_1.png

Cluster command provides wrong error message when cluster size is 0

Command:
cluster 0 a/Serangoon d/DENGUE

When a cluster size of 0 is given, an error about the validity of the cluster size should be raised, not about the command format.
This is probably caused by insufficiently distinguishing the exception thrown by the command input validator.

bug 11.png

Wrong date format in create example

The following create command does not work with this input, taken directly from UG

create ic/S0123456A n/Jane Doe hp/87654321 a/311, Clementi Ave 2, #02-25 dob/01-01-1990 s/F st/PENDING e/[email protected] bt/A+

Likely reason for failure is that the date should be in YYYY-MM-DD.

bug 1_1.png

bug 1.png

Unable to modify a visit without deleteing the whole visit record

From the user guide, it is seen that the update visit feature wil not be included in the final stage of this project. However, there is not delete command that is specific to deleting a particular visit as well. As such, to update a visit (due to a typo or other reasons), the user has to use deleteinfo to delete the visit field. This can be problematic if there are a large number of visitations and only one visit record has to be updated.

As such, I do not think that this visit feature satisfies the minimally viable product requirement.

bug 19.png

Read command fails with shorter than expected NRIC input

When read S1234 is called, an unhandled exception is thrown.

This should be handled by showing an invalid input error message in the output box to help the user correct the input.
This is probably caused by not catching an exception thrown by the input validator as seen in the second screenshot.

bug 5.png
bug 5_1.png

Unhandled error occurred when updating

You can replicate this behaviour by running the following commands in this specific order:

This is likely caused by not checking for whether such a person exists in the display list after find has been run.
A simple fix could just be to catch errors like these and return an error message in the output.

bug 2.png

but 2_1.png

Cluster command gives the wrong error message when given large inputs

Command:
cluster 9223372036854775807 a/Serangoon d/dengue

When given a really large cluster size, the program returns an error message that is not fitting of the situation as the issue lies not in the command format.
This is probably caused by a validation exception but it isn't sufficiently distinguished.

bug 10.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.