Giter VIP home page Giter VIP logo

ped's People

Contributors

praveenelango avatar

Watchers

 avatar

ped's Issues

`sell` stock with negative quantity registers error in total profit/loss in `view`

sell stock with negative quantity registers error in total profit/loss in view

Screenshot 2020-10-30 at 5.18.55 PM.png
Screenshot 2020-10-30 at 5.19.13 PM.png

When sell command is used with negative quantity as seen in bug issue #2, the program incorrectly records it the same way as the buy command. This can be seen in above screenshot where sell /aapl -1' incremented the number of aaplstocks from4to5when theviewcommand was called. Due to this incorrect method of updating the stock count, theTotal Profit/Losssection in theviewcommand registers anerror!` instead of a value as expected in the User Guide.

`sell` Command is accepting negative integers as input

Screenshot 2020-10-30 at 5.00.45 PM.png

sell Command is accepting negative integers as input

As per the user guide, the quantity specified by the user to sell the stocks is an integer (as seen in sell /STOCK_TICKER quantity). However, when a negative integer is being provided as input to quantity as seen in the above screenshot (sell /tsla -1), the user is still able to sell the stock as though the quantity provided by the user as input is 1 and not -1, where an error should be returned for the latter case.

`parseCommand` execution unnecessarily shown

Screenshot 2020-10-30 at 5.42.25 PM.png

As seen in the above screenshot, information such as the following is being displayed when . a command is called:

Oct 30, 2020 5:27:00 PM seedu.duke.parser.Parser parseCommand
INFO: going to start processing command

Such information is not relevant to the user and the developers can consider removing them.

Failed to fetch price from API in `buy` command

Failed to fetch price from API in buy command

Screenshot 2020-10-30 at 5.14.29 PM.png

The buy command when used correctly as specified in the user guide returned a failure to fetch price of stock from API as seen in the above screenshot for buy /aapl 2. It was only when the user input the same command with same input arguments again that the program worked as specified.

Details returned by `mark` command not shown as per UG

Details returned by mark command not shown as per UG

In .jar file

Screenshot 2020-10-30 at 5.30.52 PM.png

In UG

Screenshot 2020-10-30 at 5.31.22 PM.png

The details being returned by the mark command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy, sell, etc. and in order to maintain consistency in documentation, it should also be done for this mark command.

Details returned by `bookmarks` command not reflected in UG

In .jar file

Screenshot 2020-10-30 at 5.35.52 PM.png

In UG

Screenshot 2020-10-30 at 5.35.37 PM.png

The details being returned by the bookmarks command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy, sell, etc. and in order to maintain consistency in documentation, it should also be done for this bookmarks command.

Details returned by `search` command not specified in User Guide

Details returned by search command not specified in User Guide

In .jar file

Screenshot 2020-10-30 at 5.03.58 PM.png

In User Guide

Screenshot 2020-10-30 at 5.05.00 PM.png

The details being returned by the search command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy, sell, etc. and in order to maintain consistency in documentation, it should also be done for this search command.

Details returned by `unmark` command not specified in UG

In .jar file

Screenshot 2020-10-30 at 5.33.42 PM.png

In UG

Screenshot 2020-10-30 at 5.33.46 PM.png

The details being returned by the unmark command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy, sell, etc. and in order to maintain consistency in documentation, it should also be done for this unmark command.

No txt file generated

Screenshot 2020-10-30 at 5.38.25 PM.png

The UG specifies that a .txt file is generated with the data from the program but there is no .txt file in the directory where the .jar file is stored. Only a data folder with two .ser files are created, which also cannot be opened by any pre-installed applications.

Failed to fetch price from API in `bookmarks` command

Failed to fetch price from API in bookmarks command

Screenshot 2020-10-30 at 5.25.53 PM.png

When the mark command was used to add 3 different stocks to the bookmarks, after which the bookmarks command was called to view the info of all the bookmarks, the progam failed to fetch the information for the last tsla stock that was added.

`buy` Command is accepting negative integers as input

Screenshot 2020-10-30 at 4.55.58 PM.png

buy Command is accepting negative integers as input

As per the user guide, the quantity specified by the user to purchase the stocks is an integer (as seen in buy /STOCK_TICKER quantity). However, when a negative integer is being provided as input to quantity as seen in the above screenshot (buy /fb -2), the user is technically "selling" the stock instead of the program returning an error. This is a functional bug that can be fixed since the sell command is reserved for this function.

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.