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(single_booking): replace recurringBookingId with referenced object #163

Merged

Conversation

albertms10
Copy link
Owner

@albertms10 albertms10 commented Dec 26, 2022

By using the referenced object instead of its UUID as an indirect identifier, we can get rid of expensive findById operations.

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

Pull Request Test Coverage Report for Build 3782460693

  • 0 of 10 (0.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.06%) to 33.849%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/src/model/booking/booking_manager.dart 0 5 0.0%
lib/src/model/booking/recurring_booking.dart 0 5 0.0%
Files with Coverage Reduction New Missed Lines %
lib/src/model/booking/booking_manager.dart 1 9.49%
Totals Coverage Status
Change from base Build 3782394705: 0.06%
Covered Lines: 372
Relevant Lines: 1099

💛 - Coveralls

@albertms10 albertms10 merged commit 555fb00 into main Dec 26, 2022
@albertms10 albertms10 deleted the refactor/replace-recurring-booking-id-with-referenced-object branch December 26, 2022 17:08
Comment on lines +91 to +93
booking: (booking.recurringBooking != null
? booking.recurringBooking!
: booking)
Copy link
Owner Author

Choose a reason for hiding this comment

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

This change introduced an undesired behavior after popping a changed booking from the form dialog. It is addressed in #167.

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.

None yet

2 participants