-
Notifications
You must be signed in to change notification settings - Fork 6
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
Jy/view vacant rooms #79
Jy/view vacant rooms #79
Conversation
And also implement the vacant rooms command, since it came free with the modifications.
Codecov Report
@@ Coverage Diff @@
## master #79 +/- ##
============================================
- Coverage 65.57% 59.18% -6.40%
- Complexity 450 454 +4
============================================
Files 85 92 +7
Lines 1592 1781 +189
Branches 182 215 +33
============================================
+ Hits 1044 1054 +10
- Misses 486 660 +174
- Partials 62 67 +5
Continue to review full report at Codecov.
|
Problem: There is a cyclic dependency between Room and Student - they contain each other. This causes serialization and toString to stackoverflow. Current Solution: Modify their toString not to contain each other, and create additional classes for Jackson to Serialize (JsonAdaptedRoomStudent and JsonAdaptedStudentRoom). This solution isn't ideal, but it produces working code. I'd be happy to accept alternatives.
Requesting 2 reviewers for this 😠 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #10
This PR adds the ability to view vacant rooms with a flag
--vacant
.While working on this, I identified several issues.
Additionally, we never had a UI for displaying rooms, although the models were mostly working underneath. I've added a tabbed based UI for them. Depending on the command, it should navigate to the correct tab. For example,
rooms
should automatically switch to the Rooms tab.I'm currently fixing a bug where the Rooms are not saved. I will unmark this as a draft when that is done.EDIT: I have come up with code that works. However, it involves creating additional classes for serialization, which I don't find ideal (see cbd0b8d). I'd be happy to accept suggestions, although I doubt I can implement it before v1.2 closes.