]> git.cworth.org Git - turbot/commit
Rename hunt_id_index to is_hunt_index
authorCarl Worth <cworth@cworth.org>
Thu, 31 Dec 2020 19:52:43 +0000 (11:52 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 31 Dec 2020 19:52:43 +0000 (11:52 -0800)
commit83cb7e7717f1407ecc525bcc290489b7ce2480b0
treebae764cbe9b89b8b0dc46cd216ec6e7a6811ba7a
parente80df93e84e6e20933431a48d2c248fe663a3fa3
Rename hunt_id_index to is_hunt_index

Backed, of course, by a new is_hunt attribute.

The rationale here is that the whole point of this index is to be a
sparse attribute so that the code can efficiently query all existing
hunts. But meanwhile, it's useful for puzzles to have a "hunt_id"
attribute, which would confict with the goal of having "hunt_id" be
sparse and populated only for hunts and not puzzles.

So the fix here is to make hunt_id universal, and instead have a
separate "is_hunt" attribute which is the sparse one, (and will
clearly never be populated for a puzzle).
turbot/events.py
turbot/interaction.py