Facet Search returning units regardless of availability

Created on 2 August 2018, over 6 years ago
Updated 28 December 2023, 11 months ago

Hello Devs!

First off - incredible module. I have spent the last 2 weeks or so really digging into BAT and trying to develop a reservation system for rooms, instruments, etc. So far I think I have most everything figured out, but I am hitting one snag when it comes to availability searches.

I have followed the documentation on the roomify site and have a working backend (i.e., the admin can see availability and create bookings, etc. and things there seem to be working smoothly and intuitively) However when it comes to using the facets module to create a search, it just doesn't seem to be working. I think the issue may be that I do not seem to have the "BAT Event State Reference" when I add a field to the event type. I have "BAT Calendar Unit Reference" as well as Unit Type and one for "BAT Type Options".

I have kept poking just in case the name change is just an undocumented difference in versions between the screen shots and what is live. So, what I have:

Search API set up to index Unit Types - with fields for ID, Name, Type, and Availability (feild_avail)
A view created with the settings set to show the index
A facet that uses the above view as source and set to ID (also tried to set against the availability token, as in the attached screenshot)

Administratively I created a booking that last for the 1st half of august, and no matter what date range I search, I always get the unit returned as available. All versions of BAT, BAT_API, Facets, and Search API are all latest dev releases as of this morning.

I am placing this as support request, as I am sure I am just not connecting something together.

I am sure there is more info needed from me - just let me know.

Thanks!

Devin

💬 Support request
Status

Postponed: needs info

Version

1.0

Component

Miscellaneous

Created by

🇺🇸United States devin.pearson@gmail.com

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