-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Request type colors #1221
Request type colors #1221
Conversation
Co-authored-by: Nicholas Kwon <[email protected]>
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 working on this Josh!
Most of my comments are style nits. I think a linter would automatically fix most of them. Speaking of which, we should decide on a Python linter to use, and make sure that everyone installs it. We can also try to make it part of the "Checks" process.
EDIT: I see that we're already using flake8 for some of the codebase, but maybe just server/api? I'll open an issue for this.
color_discrete_sequence=DISCRETE_COLORS, | ||
color_discrete_map = DISCRETE_COLORS_MAP, |
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.
ditto
server/dash/dashboards/overview.py
Outdated
@@ -1,7 +1,9 @@ | |||
import textwrap | |||
|
|||
|
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.
delete extra new line
server/dash/dashboards/recent.py
Outdated
@@ -33,6 +33,7 @@ | |||
y="counts", | |||
color="type_name", | |||
color_discrete_sequence=DISCRETE_COLORS, | |||
color_discrete_map = DISCRETE_COLORS_MAP, |
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.
spacing
server/dash/dashboards/recent.py
Outdated
color_discrete_sequence=DISCRETE_COLORS, | ||
color_discrete_map = DISCRETE_COLORS_MAP, |
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.
spacing
server/dash/dashboards/recent.py
Outdated
@@ -50,7 +51,9 @@ | |||
pie_df, | |||
names="type_name", | |||
values="counts", | |||
color='type_name', |
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.
It looks like this file is using double quotes, so let's keep it consistent.
server/dash/dashboards/overview.py
Outdated
import dash_core_components as dcc | ||
import dash_html_components as html | ||
# from dash import Dash, html, dcc |
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.
Delete? It also looks like there are some other test-related lines to delete.
Thnks for the comprehensive feedback! I updated the code to make sure they stay consistent. I will work on the duplicate color file later. Apologies for the style inconsistencies! |
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.
Just a couple more requests. I'll approve the changes now so that you don't need to wait on me after fixing the changes. Thanks!
server/dash/dashboards/overview.py
Outdated
#df3 = df3.groupby(['type_name'])['counts'].sum().to_frame() | ||
#df3.index = df3.index.map(lambda x: '<br>'.join(textwrap.wrap(x, width=16))) | ||
print(df3['type_name']) | ||
print(" * TESTING IF CHANGES ARE ACTUALLY DEPLOYED ON DOCKER") |
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.
Do we still need these lines?
Thanks so much - apologies for missing that! |
Fixes #1064
dev
branchRequest Type and corresponding hex code available here are consistent according to the table here:
Any questions? See the getting started guide