Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering on executionState on WhereObservation #1468

Open
hugo-vrijswijk opened this issue Nov 5, 2024 · 1 comment
Open

Allow filtering on executionState on WhereObservation #1468

hugo-vrijswijk opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hugo-vrijswijk
Copy link
Contributor

hugo-vrijswijk commented Nov 5, 2024

It would be useful for navigate to filter only on ready or ongoing observations. This could be done client-side, but is probably more efficient server-side.

Proposal: add executionState to the WhereObservation param:

query observations {
  observations(
    WHERE: { executionState: { IN: ["NOT_STARTED", "COMPLETED"] } }
  ) {
    matches {
      id
      title
      execution {
        state
      }
    }
  }
}
@hugo-vrijswijk hugo-vrijswijk added the enhancement New feature or request label Nov 5, 2024
@tpolecat
Copy link
Member

tpolecat commented Nov 5, 2024

Agree. This isn't straightforward right now because the status computation is complex. Working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants