-
Notifications
You must be signed in to change notification settings - Fork 38
[FIX] - catch missing orgbook entity and improve logging #3301
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
Merged
Merged
Changes from 19 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
03e7aa8
data typing issues and clean up
Jsyro 962f5e9
better logging
Jsyro 1af241d
better logging of errors
Jsyro 66e22c4
list of tuples
Jsyro 4537f18
add celery decorator
Jsyro fb883b5
rename var to match envvar
Jsyro 6f49d48
Merge branch 'develop' into feature/issue-to-orgbook-w-publisher
Jsyro 687e03e
credential per mine_party_appt produces duplicates.
Jsyro 6cd313b
Merge branch 'develop' into feature/issue-to-orgbook-w-publisher
Jsyro be179c2
wrong class
Jsyro 2652d0f
don't invoke if being used by celery
Jsyro 7ccd3c0
query must excluded deleted permit_amendments
Jsyro 6ce7067
add check if cred not created
Jsyro a6e44a3
improve logging of problem states
Jsyro a95574b
Merge branch 'develop' into feature/issue-to-orgbook-w-publisher
Jsyro 4ae3465
make date a date, formatting
Jsyro 9e89270
revered received date, update issue_Date validator
Jsyro 6758491
all datetimes, never dates
Jsyro f68c378
typo
Jsyro 5f23ae3
names are important
Jsyro 6f05801
only use datetime objects, no date objects
Jsyro 410ddcc
better typing
Jsyro 28b35f7
ensure second is non-zero for datetime
Jsyro 27fff76
oops
Jsyro 2a4a118
brackets matter
Jsyro 9bd7762
what is happening?
Jsyro 7b901f2
scoping
Jsyro 8546322
factories making dates, should be datetimes.
Jsyro 46aeab5
idk why that today generator suck
Jsyro c7e04f0
pass callable
Jsyro 2332d50
what
Jsyro d32a875
Merge branch 'develop' into feature/issue-to-orgbook-w-publisher
Jsyro ec05069
use jank
Jsyro ce25b82
use work
Jsyro 14ab519
huh?
Jsyro a1d0b46
typing dates as dates. some db columns are dates, others aren'
Jsyro 7af67e9
dates
Jsyro 114a987
handling incoming datetime for date column
Jsyro 39042c2
probably failing on date comparison
Jsyro ffed5f6
type hinting is good
Jsyro 6f117b0
clean up logging
Jsyro 8f34192
columns are dates
Jsyro 0093b9c
received date is parsed to datetime
Jsyro 1202685
expand on type hinting
Jsyro d963492
pass function, not value
Jsyro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Have to check, just because we have a million issues with UTC times- this converts the datetime to UTC, not tells it that the timezone it has is UTC, right?
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.
datetime objects are natively timezone-unaware.
the python language is deprecating some of these methods in favour or producting timezone-aware datetime objects
well formed VCDM credentials required timezone codes, i could just append
T00:00:00
to the string, but this is a more pythonic way to do that and is better understood by future devsThere 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.
What that means is existing datetime objects based on UTC don't know they are based on UTC, they are date+time with no timezone information. it's up to the code to know that it's based on UTC, or maybe postgres is automatically adding UTC information?
it's probably something that should become it's own task. to update the python to start using the new timezone-aware methods and classes, update the validators to require timezone-aware objects (or add it), then update remaining datetime values to have timezone information.
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.
👍
Sounds good. The db does automatically save it as UTC. I appreciate the documentation!