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

refactor(cabin): remove redirection methods to BookingCollection #175

Conversation

albertms10
Copy link
Owner

@albertms10 albertms10 commented Jan 10, 2023

This PR aims to reduce code complexity by publicly exposing the Cabin.bookingCollection member and removing unnecessary redirection methods in the Cabin class, improving code maintainability and discoverability.

@albertms10 albertms10 added the refactor The code needs to be refactored label Jan 10, 2023
@albertms10 albertms10 added this to the Version 0.8 milestone Jan 10, 2023
@albertms10 albertms10 self-assigned this Jan 10, 2023
@coveralls
Copy link
Collaborator

coveralls commented Jan 10, 2023

Pull Request Test Coverage Report for Build 3888271505

  • 6 of 43 (13.95%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.9%) to 40.693%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/src/model/cabin/cabin.dart 6 7 85.71%
lib/src/model/cabin_collection.dart 0 36 0.0%
Files with Coverage Reduction New Missed Lines %
lib/src/model/cabin_collection.dart 2 0%
Totals Coverage Status
Change from base Build 3888212981: 0.9%
Covered Lines: 446
Relevant Lines: 1096

💛 - Coveralls

@albertms10 albertms10 merged commit 2b26efa into main Jan 10, 2023
@albertms10 albertms10 deleted the refactor/remove-cabin-redirection-methods-to-booking-collection branch January 10, 2023 23:54
albertms10 added a commit that referenced this pull request Jan 14, 2023
albertms10 added a commit that referenced this pull request Jan 14, 2023
* refactor(cabin): expose `BookingCollection` from constructor

Continues #175

* test(cabin): adapt use-cases
albertms10 added a commit that referenced this pull request Jan 15, 2023
albertms10 added a commit that referenced this pull request Jan 15, 2023
* refactor(booking_collection): rewrite serializable methods `fromJson` and `toJson`

Continues #175, #178

* refactor(cabin_collection): implement `SerializableList`

* test(model): remove unnecessary variable declaration

* test(booking_collection): add test cases for serializable methods

* test(booking_collection): fix test case description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor The code needs to be refactored
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants