Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code quality for logic package #362

Merged
merged 8 commits into from
Nov 7, 2020

Conversation

qwoprocks
Copy link
Member

@qwoprocks qwoprocks commented Nov 7, 2020

Description

As per title. Also fixed a small bug where client list or client suggest doesn't change the widget view box back to the default view when in country note view.

Fixes #325

Testing

NIL

Remarks

NIL

@qwoprocks qwoprocks added type.Task Something that needs to be done, but not a story, bug, or an epic. e.g. Move testing code into a new priority.High Must do labels Nov 7, 2020
@qwoprocks qwoprocks added this to the v1.4 milestone Nov 7, 2020
@qwoprocks qwoprocks self-assigned this Nov 7, 2020
@qwoprocks qwoprocks added this to In progress in v1.4 via automation Nov 7, 2020
@codecov
Copy link

codecov bot commented Nov 7, 2020

Codecov Report

Merging #362 (7cd7a31) into master (4179649) will increase coverage by 0.01%.
The diff coverage is 87.09%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #362      +/-   ##
============================================
+ Coverage     89.54%   89.55%   +0.01%     
+ Complexity      996      995       -1     
============================================
  Files           112      112              
  Lines          2583     2586       +3     
  Branches        304      304              
============================================
+ Hits           2313     2316       +3     
  Misses          183      183              
  Partials         87       87              
Impacted Files Coverage Δ Complexity Δ
src/main/java/seedu/address/MainApp.java 4.10% <0.00%> (ø) 2.00 <0.00> (ø)
...rc/main/java/seedu/address/logic/LogicManager.java 100.00% <ø> (ø) 10.00 <0.00> (ø)
...ava/seedu/address/logic/commands/ClearCommand.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
...du/address/logic/commands/ClientDeleteCommand.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
.../address/logic/commands/ClientNoteEditCommand.java 93.18% <0.00%> (ø) 14.00 <0.00> (ø)
...u/address/logic/commands/ClientSuggestCommand.java 96.29% <ø> (ø) 13.00 <0.00> (ø)
...eedu/address/logic/commands/ClientViewCommand.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
...ain/java/seedu/address/logic/commands/Command.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
.../address/logic/commands/CountryNoteAddCommand.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
...dress/logic/commands/CountryNoteDeleteCommand.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4179649...7cd7a31. Read the comment docs.

Comment on lines +230 to +231
widgetPlaceholder.getChildren().clear();
widgetPlaceholder.getChildren().add(widgetViewBox.getRoot());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugfix for when country note view is called followed by client list, which doesn't reset the widget display viewbox back to default, even though it should.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@rtshkmr rtshkmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggested stuff should probably be reconsidered in the interest of clarity, but other than that almost LGTM.

Comment on lines +230 to +231
widgetPlaceholder.getChildren().clear();
widgetPlaceholder.getChildren().add(widgetViewBox.getRoot());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

v1.4 automation moved this from In progress to Review in progress Nov 7, 2020
Copy link
Member

@rtshkmr rtshkmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

v1.4 automation moved this from Review in progress to Reviewer approved Nov 7, 2020
@qwoprocks qwoprocks merged commit 422300b into AY2021S1-CS2103T-F11-4:master Nov 7, 2020
v1.4 automation moved this from Reviewer approved to Done Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must do type.Task Something that needs to be done, but not a story, bug, or an epic. e.g. Move testing code into a new
Projects
No open projects
v1.4
Done
Development

Successfully merging this pull request may close these issues.

[Logic Package] Check code quality
2 participants