-
Notifications
You must be signed in to change notification settings - Fork 34
feat (JobDB): pydantic datetime validation #477
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
base: main
Are you sure you want to change the base?
Conversation
|
I believe most of this is superseded by #479 but it would be worth keeping the pydantic validators, maybe even expanding the pydantic validation to ensure this doesn't get messed up easily again |
|
@ryuwd is this PR still needed? |
|
This can probably be kept but it needs to be adapted after various fixes were made. I will get around to it soon |
c02fb80 to
92d7943
Compare
92d7943 to
74e9829
Compare
5451048 to
7c449e4
Compare
simplify validator [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
7c449e4 to
acc2e3c
Compare
Will be planned in a sprint (not the next one because @ryuwd will be busy with the LHCb week but may be the one after). |
Validate provided datetimes to check they are aware and convert them to UTC if needed.