cs-ech / lore-seeker

Search engine for official and custom Magic cards
https://lore-seeker.cards/
MIT License
1 stars 1 forks source link

Time travel is broken #2

Open fenhl opened 6 years ago

fenhl commented 6 years ago

Looks like the time travel fix to get future Custom Standard rotations working broke the feature in other ways. Details to be investigated.

taw commented 6 years ago

Oh interesting. Time travel has 4 components:

There's no rotation-specific logic anywhere else IIRC.

taw commented 6 years ago

I'd recommend writing specs like search-engine/spec/format_brawl_spec.rb for your custom rotating format.

fenhl commented 6 years ago

Sorry, there's some missing context here. The “fix” I'm referring to is this change, intent being that cards with a future release date are not shown by default; you'd have to use time travel if you want to look at future rotations. It works well for that purpose, but I don't exactly remember what this broke.

fenhl commented 6 years ago

Found it again: the query (time:OGW f:Standard) not (time:SOI f:Standard) works fine on mtg.wtf but is broken on Lore Seeker.

taw commented 6 years ago

Right, the default is to include future cards, so it works in prerelease season. You need explicit time:now or similar to override this.

fenhl commented 6 years ago

That's not the desired bahavior for Lore Seeker though, hence my (broken) change.