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

Upload Comparison result using multiple decision type #96

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

riya-17
Copy link
Contributor

@riya-17 riya-17 commented Oct 19, 2023

PR #96

This PR deals with allowing multiple Decision types.

Earlier either we were able to get our results in the form of Decision.csv file or upload them to elasticsearch. With this change we will be able to gather results in csv format as well as send them to elasticsearch.

@@ -90,3 +90,12 @@ def load_config(conf, fp):
conf.decisions_es_index = data["decisions"]["es_index"]
if conf.decisions_type == "csv":
conf.decisions_filename = data["decisions"]["filename"]

decision_type = conf.decisions_type.split(",")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we maybe replace conf.decisions_type with the splited list so we do not have to split it every time we want to use it (e.g. in that opl/pass_or_fail.py)? Just to avoid duplicating that split and trip calls.

@riya-17 riya-17 requested a review from jhutar October 19, 2023 20:49
Copy link
Contributor

@jhutar jhutar left a comment

Choose a reason for hiding this comment

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

Thank you!

@jhutar jhutar merged commit b464a82 into redhat-performance:main Oct 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants