-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adding the engineer view #266
Conversation
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 changes look good in my dev environment, and I'll think this feature will be very useful for all of the engineers.
Our linting check is throwing a couple of errors, though:
- There are a couple of lines which exceed 88 characters. This can be fixed by running
black
orruff format
. (Unless you you disagree with the 88 char limit, in which case we can have a discussion around that) generate_user_stats()
is quite similar togenerate_stats()
, could we combine the two into a single, generalized function? Just to reduce duplication.
NOTE: The duplicated code detector is being too aggressive (it's flagging this innocent code as a duplication). #268
NOTE: This PR has made me realize that there is quite a bit of duplication across all of our jinja templates, I've opened an issue to address this #267
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.
Thanks for fixing the linting issues and combining some functions, it's looking really good now. I found one problem in generate_stats() which is causing the stats table to report incorrect numbers - I've added more details about this problem below
the 1 lint issue it is complaining about isn't a big deal in my opinion. however if you wanted to make a new function in utils.py so:
and in utils.py:
that'd be swell. then update both |
+1 - on second thought, it's probably better to put this in a function since we're using the code in multiple places |
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.
one minor nit, then you're good to go. thanks!
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.
thanks for the contribution and for dealing with all the back and forth :) lgtm!
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.
Thanks, looking really good now
Adding a new view that shows info per engineer: