Skip to content

fix filtering available creneaux in user RDV tunnel

Vincent Agnano requested to merge fix/user-search-creneau-coherence into master

Created by: adipasquale

https://trello.com/c/6ysKq39q/1130-r%C3%A9parer-coh%C3%A9rence-des-filtres-appliqu%C3%A9s-sur-les-cr%C3%A9neaux-propos%C3%A9s-cot%C3%A9-usagers-rdv-suivis-locationtype

  • extract Users::CreneauxSearch object from LieuxController : not 100% necessary here, but it clears the way
  • introduce a very close singular Users::CreneauSearch to build a single Crenau instead of calling directly Creneau.new and checking creneau.available?. This allows us to remove the some code in the Creneau model, that was duplicated with the code in CreneauxBuilderFordateService.
  • lieux controller specs refactored to limit testing surface : the used services are stubbed instead of being actually called.

Merge request reports