Filtering conditions on units in availability search

Created on 21 April 2018, almost 7 years ago
Updated 5 April 2023, about 2 years ago

I need to filter units during availability search, using values from fields attached to single unit (i.e. "office" and other). I cannot find a way since is (or, at least, seems) impossible to filter units before they are passed to GetMatchingResults() method.

My proposal, in attached patch, is to permit other modules to alter conditions before units are loaded. In my specific case this is extremely useful since it avoids to check for availability for all units at once.

Could you review and commit the patch or tell me if there is a more conventional way to filter units (i've tried to go with constrains or modifying search index but without success)?

Thank you!

Feature request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇮🇹Italy maurizio.ganovelli Arezzo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024