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

refactor: giving QCEvaluation a state #1164

Conversation

dbirman
Copy link
Member

@dbirman dbirman commented Nov 22, 2024

This PR adds a QCEvaluation.latest_status attribute and renames QCEvaluation.status() to QCEvaluation.evaluate_status()

This guarantees that QCEvaluation records have a human readable status field. Backward compatibility is maintained by deprecating the .status() function but redirecting it to evaluate_status()

- Rename status() -> evaluate_status()
- Add state, auto-populated on validation or by evaluation.status = evaluation.evaluate_status()
@dbirman dbirman added the breaking Breaking changes label Nov 22, 2024
@dbirman dbirman requested a review from saskiad November 22, 2024 22:08
@dbirman dbirman removed the breaking Breaking changes label Nov 22, 2024
@saskiad saskiad added this pull request to the merge queue Nov 25, 2024
Merged via the queue into dev with commit 52378a6 Nov 25, 2024
5 checks passed
@saskiad saskiad deleted the 1163-add-status-field-to-qcevaluation-metric-and-recover-evaluate_status-function branch November 25, 2024 22:33
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.

Add status field to QCEvaluation / metric and recover evaluate_status() function
2 participants