Skip to content

Conversation

@fredberto
Copy link
Contributor

@fredberto fredberto commented Sep 7, 2025

Fixes #449 and fixes #417

@gierens gierens added enhancement New feature or request rust Pull requests that update Rust code api src test feat labels Sep 9, 2025
Copy link
Member

@gierens gierens left a comment

Choose a reason for hiding this comment

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

Looks mostly fine, thanks! See comments below.

Haven't commented on the UserClass stuff again, see review in #438 for that.

@fredberto fredberto force-pushed the flavor-price-list branch 3 times, most recently from 1323852 to 89c888d Compare September 25, 2025 12:05
@fredberto fredberto force-pushed the flavor-price-list branch 7 times, most recently from 0e19120 to bb62672 Compare September 29, 2025 15:27
@gierens gierens force-pushed the flavor-price-list branch from bb62672 to 5a268fa Compare October 7, 2025 18:27
…d_period_from_db

Signed-off-by: Sandro-Alessio Gierens <[email protected]>
Signed-off-by: Sandro-Alessio Gierens <[email protected]>
… e2e_lib_flavor_price_list_current_and_user_class

Signed-off-by: Sandro-Alessio Gierens <[email protected]>
…r_prices_for_*period_from_db functions

Signed-off-by: Sandro-Alessio Gierens <[email protected]>
Signed-off-by: Sandro-Alessio Gierens <[email protected]>
@gierens
Copy link
Member

gierens commented Oct 8, 2025

Alright, so this looks good! Thanks! I only made some minor fixes and a couple of additions:

  • I made -c/--current bool again, this shouldn't be an Option as it makes the interface messy.
  • I also adjusted the endpoint to handle the case that both the current and user class filter are set by adding a new database call for this and also a new test.
  • And finally, I adjusted both database calls to correctly filter our outdated prices and adjusted tests accordingly. This fixes Bug in Flavor Price for Period Selection #449 and also fixes Occasional Server Cost Misses #417.

@gierens gierens merged commit e170ec6 into LRZ-BADW:main Oct 8, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api enhancement New feature or request feat rust Pull requests that update Rust code src test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in Flavor Price for Period Selection Occasional Server Cost Misses

2 participants