-
Notifications
You must be signed in to change notification settings - Fork 5
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
implement API for EvaluationResult protocol #55
Conversation
app/models/evaluation_result.py
Outdated
res = json.dumps(value) | ||
else: | ||
res = value | ||
self._result = res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to
- get
result
as dict in Python while storing in db as string. result
containsresult_id
in the dict
I resolved conflict. Please review it |
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
==========================================
- Coverage 83.91% 81.96% -1.96%
==========================================
Files 29 30 +1
Lines 1343 1397 +54
==========================================
+ Hits 1127 1145 +18
- Misses 216 252 +36
Continue to review full report at Codecov.
|
we need the same version of drucker-grpc between dashboard and client to pass e2e test... So we need to do
|
I updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comments, thank you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost LGTM.
Could you check my comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is this PR for?
add method for EvaluationResult protocol to return detailed evaluation result to a client.
related to rekcurd/rekcurd-python#24
Change in frontend will be the next PR.
This PR includes
api_evaluation.py
drucker_dashboard/test/test_api_evaluation.py
f.seek(0)
and reset iteration in hash_util.py to prevent StopIteration Error due to more file reading.What type of PR is it?
Feature, Bugfix
What is the issue?
N/A
How should this be tested?
python -m unittest test/test_api_evaluation.py