Use `eager_query` to compute `workflow_state` efficiently
Merge pull request #1707 from reciprocity/feature/workflow-performance

Use `eager_query` to compute `workflow_state` efficiently