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

fix: cli summary shows all run-specific scores #205

Merged
merged 3 commits into from
May 6, 2024

Conversation

mukeshblackhat
Copy link
Contributor

@mukeshblackhat mukeshblackhat commented May 3, 2024

closes #167

@saikatmitra91
two things are done first

  1. all the scorer names are taken out , instead of assuming that first run will have all the jobs as done previously in your code .
    const scorerNames = [ ...new Set( runs.flatMap( (run) => run?.stats?.scores?.map((score) => score.name) || [], ), ), ];

  2. then if their is no score then is should show "-" instead of "0% "
    if (scoreStats) { const metric = percentStr(scoreStats.average * 100); return enableColors ? setMetricColor(metric, scoreStats.average) : metric; } else { return "-"; }

Copy link

changeset-bot bot commented May 3, 2024

🦋 Changeset detected

Latest commit: 49a4db0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@empiricalrun/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mukeshblackhat mukeshblackhat changed the title [chatbot example] - CLI summary doesn't show the second score - personal #167 Fix: [chatbot example] - CLI summary doesn't show the second score - personal #167 May 3, 2024
@mukeshblackhat mukeshblackhat changed the title Fix: [chatbot example] - CLI summary doesn't show the second score - personal #167 fix: [chatbot example] - CLI summary doesn't show the second score - personal #167 May 3, 2024
@arjunattam arjunattam changed the title fix: [chatbot example] - CLI summary doesn't show the second score - personal #167 fix: cli summary shows all run-specific scores (closes #167) May 3, 2024
@arjunattam arjunattam changed the title fix: cli summary shows all run-specific scores (closes #167) fix: cli summary shows all run-specific scores May 3, 2024
@mukeshblackhat
Copy link
Contributor Author

@arjunattam comment is removed

saikatmitra91
saikatmitra91 previously approved these changes May 6, 2024
@saikatmitra91 saikatmitra91 merged commit 9fae264 into empirical-run:main May 6, 2024
1 of 2 checks 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.

[chatbot example] - CLI summary doesnt show the second score - personal
3 participants