sam-goodwin / eventual

Build scalable and durable micro-services with APIs, Messaging and Workflows
https://docs.eventual.ai
MIT License
175 stars 4 forks source link

fix: local entity index query failed when index was missing from local data #463

Closed thantos closed 11 months ago

thantos commented 11 months ago

If the .eventual/local folder was missing an index (new/deleted), index.query would fail on query. change the logic to create requested indices on demand if they were not originally loaded.

TODO: Compute missing local indices on load for existing data https://github.com/functionless/eventual/issues/464

sam-goodwin commented 11 months ago

Should local compute the indexes instead of persisting

thantos commented 11 months ago

Yeah, I added a TODO to do that, just wanted to fix the breaking issue in this change. Added a TODO and issue https://github.com/functionless/eventual/issues/464.

sam-goodwin commented 11 months ago

What's left to do here? Fix tests?

thantos commented 11 months ago

Uhh, yeah, the tests randomly fail, don't think it is the fault of this change. Will keep an eye on it today.