Skip to content

Conversation

@kostysh
Copy link
Contributor

@kostysh kostysh commented Jun 9, 2022

closes #55

  • All getters now return value or null
  • associated code is refactored, and tests are working
  • getters that can return a combined type of value such as DayOfWeekRateModifier | OccupancyRateModifier | LOSRateModifier now accept the specification of the return type. Here is an example:
losModifier = await modifiers.getModifier<LOSRateModifier>(
  'length_of_stay'
);

kostysh added 6 commits June 9, 2022 11:42
these getters are now returns null if value not found

✅ Closes: #55
this getter now can return null if modifier not found

✅ Closes: #55
now able to return null if availability not found

✅ Closes: #55
now can return null if rate not found

✅ Closes: #55
@kostysh kostysh added D-easy Difficulty: easy P-normal Priority: normal T-debt Type: code debt C-database Components: database labels Jun 9, 2022
@kostysh kostysh self-assigned this Jun 9, 2022
@kostysh kostysh marked this pull request as ready for review June 9, 2022 12:59
@kostysh kostysh requested review from Galeaf11 and mfw78 June 9, 2022 13:00
@mfw78 mfw78 added this to the ETHBarcelona & ETHcc milestone Jun 9, 2022
Copy link
Contributor

@mfw78 mfw78 left a comment

Choose a reason for hiding this comment

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

Refactor is good. Minor suggestions on variable names in QuoteService.

@kostysh kostysh merged commit 0d83aaf into develop Jun 9, 2022
@kostysh kostysh deleted the refactor/leveldb-getters branch June 9, 2022 20:20
@mfw78 mfw78 linked an issue Jun 9, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-database Components: database D-easy Difficulty: easy P-normal Priority: normal T-debt Type: code debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repositories getters refactoring

2 participants