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

Only consider race id when loading a race #1153

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions esrally/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,21 +1424,16 @@ def list(self):
return []

def find_by_race_id(self, race_id):
filters = [{
"term": {
"environment": self.environment_name
}
},
{
"term": {
"race-id": race_id
}
}]

query = {
"query": {
"bool": {
"filter": filters
"filter": [
{
"term": {
"race-id": race_id
}
}
]
}
}
}
Expand Down