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

[Bug]: gameTeamScores GQL does not respect epochFrom/epochTo #11438

Closed
ze97286 opened this issue Jul 10, 2024 · 0 comments · Fixed by #11439
Closed

[Bug]: gameTeamScores GQL does not respect epochFrom/epochTo #11438

ze97286 opened this issue Jul 10, 2024 · 0 comments · Fixed by #11439
Assignees
Labels

Comments

@ze97286
Copy link
Contributor

ze97286 commented Jul 10, 2024

Problem encountered

fragment TeamScoreFields on GameTeamScore {
  gameId
  teamId
  epochId
  time
  score
}

query Scores {
  epoch {
    id
  }
  gameTeamScores(filter: {
    gameIds: ["7d0f51449a4a24b677fa635a9f18f5b90f8e2b9e836ff30c7910fd0d19650475"],
    epochFrom: 15476
  }) {
    edges {
      node {
        ...TeamScoreFields
      }
    }
  }
}


the above returns scores older than the epochFrom

Observed behaviour

EpochFrom and EpochTo are not passed to the query from graphQL.

Expected behaviour

Only results within the epochs scope should be returned.

Steps to reproduce

1. Submit `xyz` transaction
2. With this payload
3. Query `abc` API
4. Observe the error

Software version

develop

Failing test

No response

Jenkins run

No response

Configuration used

No response

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant