-
Notifications
You must be signed in to change notification settings - Fork 24
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
Modernize expired dids to use prom pusher #143
base: master
Are you sure you want to change the base?
Conversation
4042f91
to
c5a6bb7
Compare
9483cf3
to
60ec26a
Compare
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 also address these:
check_expired_dids:43:60: W291 trailing whitespace
check_expired_dids:49:1: W293 blank line contains whitespace
Then I would either merge into a single commit or split based on objective (from what I can see: Python 2 compatibility, header, SQLAlchemy, Prometheus, except statement). Just make sure to prefix all commit subjects with Common:
.
60ec26a
to
96bbc6c
Compare
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.
The content is perfect. Well done.
But I’m afraid I must pester you one last time about the commit message. It’s not considered a good practise to have overly-long subjects. Keep it short and elaborate in the body.
* Update to sqla2.0 * push with PrometheusPusher * sort imports * add header * change except statement to except Exception
96bbc6c
to
f6188e3
Compare
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.
Looks good, thanks for bearing with me.
Following the contribution guide, I need approval from @ericvaandering before I can merge.
Eric is on vacation until next week so we'll have to wait. I already talked with him about this anyways so I assume it'll just be a formality. |
|
||
with PrometheusPusher() as manager: | ||
(manager.gauge( | ||
"expired_dids.total", |
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.
Requires further review.
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.
What is the "requires further review?"
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.
Same as the other two PRs: (1) it silently changes the metric name to (2) one that is arguably inferior.
I assume the content-wise this is the exact same as #132 except for possibly some different SQLAlchemy grammar? |
Yeah it's completely identical besides for the sql2.0 and some minor formatting/spacing/indenting |
I approve. Can be merged. |
I'm redoing all of PR #132 with the updated sqla guidelines