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

Conversation

danielmitterdorfer
Copy link
Member

With this commit we drop the environment filter when searching a race
by its id in the Elasticsearch race store and only consider the race id.
The previous filter was a leftover from the times when we did not use a
race id but only a race timestamp as the identifier of a race. In that
case it was useful to also filter for the environment but as the race id
is unique we can drop the additional filter. This is also consistent how
the Elasticsearch metrics store works (see
EsMetricsStore#_query_by_name). With this change it is possible to use
the compare subcommand to compare races from differente environments
as long as the results have been written to the same Elasticsearch
metrics store. Note that we intentionally don't change the filter that
lists races; it still considers the environment name in order to ensure
we only show races that have been run in that environment.

With this commit we drop the `environment` filter when searching a race
by its it in the Elasticsearch race store and only consider the race id.
The previous filter was a leftover from the times when we did not use a
race id but only a race timestamp as the identifier of a race. In that
case it was useful to also filter for the environment but as the race id
is unique we can drop the additional filter. This is also consistent how
the Elasticsearch metrics store works (see
`EsMetricsStore#_query_by_name`). With this change it is possible to use
the `compare` subcommand to compare races from differente environments
as long as the results have been written to the same Elasticsearch
metrics store. Note that we intentionally don't change the filter that
lists races; it still considers the environment name in order to ensure
we only show races that have been run in that environment.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Metrics How metrics are stored, calculated or aggregated :Usability Makes Rally easier to use labels Jan 18, 2021
@danielmitterdorfer danielmitterdorfer added this to the 2.0.4 milestone Jan 18, 2021
@danielmitterdorfer danielmitterdorfer self-assigned this Jan 18, 2021
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@danielmitterdorfer danielmitterdorfer merged commit 5bf0fed into elastic:master Jan 18, 2021
@danielmitterdorfer danielmitterdorfer deleted the race-id-filter branch January 18, 2021 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Metrics How metrics are stored, calculated or aggregated :Usability Makes Rally easier to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants