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

feat: adding created field to QCEvaluation #1192

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

dbirman
Copy link
Member

@dbirman dbirman commented Dec 11, 2024

This PR adds QCEvaluation.created which automatically timestamps each evaluation object. This fixes a mistake in the original design, because we need this information to be able to override evaluations with newer copies of them. Downstream in the portal we'll use this information to display on the most recent copy of overridden evaluations (i.e. where the name field is identical).

Note that in the tests I have to overwrite the created field, since we can't know in advance what the default_factory output will be when the tests are run.

@dbirman dbirman linked an issue Dec 11, 2024 that may be closed by this pull request
@dbirman dbirman requested a review from saskiad December 11, 2024 05:39
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.

QCEvaluation needs a created: AwareDatetimeWithDefault field
1 participant