Bug Description
Future dated entries are excluded from collection listings (with the appropriate config) which is great. Until time passes and they are supposed to be included. They don't, because the tag is querying bystatus, and it's still scheduled in the Stache index. Which is not great.
How to Reproduce
Have an future dated entry.
Have a collection tag.
See the entry is missing.
Wait until its date is in the past.
See it's still missing, but should be included.
Extra Detail
I think we can solve this by giving the Stache indexes a little more smorts.
When we insert a value, we should be able to optionally give it a timestamp for when it needs to be reindexed.
For example, when we insert a status of scheduled, we should pass the date.
When reading the value, we can see if it needs to be re-evaluated.
Or something.
Workaround
To get around this for now though, you can use status and date params.
{{ collection:stuff status:exists="true" date:is_past="true" }}
Environment
Statamic version: 3.0.0-beta.43
Bug Description
Future dated entries are excluded from collection listings (with the appropriate config) which is great. Until time passes and they are supposed to be included. They don't, because the tag is querying by
status, and it's stillscheduledin the Stache index. Which is not great.How to Reproduce
Have an future dated entry.
Have a collection tag.
See the entry is missing.
Wait until its date is in the past.
See it's still missing, but should be included.
Extra Detail
I think we can solve this by giving the Stache indexes a little more smorts.
When we insert a value, we should be able to optionally give it a timestamp for when it needs to be reindexed.
For example, when we insert a
statusofscheduled, we should pass the date.When reading the value, we can see if it needs to be re-evaluated.
Or something.
Workaround
To get around this for now though, you can use status and date params.
Environment
Statamic version: 3.0.0-beta.43