-
Notifications
You must be signed in to change notification settings - Fork 144
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
Move layout creation to Dashboard
#142
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.
This is a huge improvement I think! 💯 I'm much happier with this now, thank you for making the change!
Just some very small comments but it looks great.
Also while I remember - we should discuss hidden Div
s briefly.
I think we should close the original "Take title out of dashboard" ticket and create a new one for the grid-template-area
which has all the relevant information there just to be clear where things now stand 🙂
@@ -56,7 +56,7 @@ exclude_lines = [ | |||
"if __name__ == .__main__.:", | |||
"if TYPE_CHECKING:" | |||
] | |||
fail_under = 92 | |||
fail_under = 91 |
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.
Had to reduce as strangely this fails on the unit tests for 3.11 only: https://github.com/mckinsey/vizro/actions/runs/6718518053/job/18258559080?pr=142
We have a proper ticket to investigate further here:
https://github.com/McK-Internal/vizro-internal/issues/43
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.
For transparency:
- the reason this fails for python 3.11 and not others is not related to this PR: the coverage for different version is different also in previous checks (the reason seems to be the
kedro
integrations code, which skips some tests depending on the version) - this means that this PR decreased the overall coverage just enough to push some tests below the threshold
- the culprit seems to lines 101-128 in
_dashboard.py
Let's investigate this further in another PR, just wanted to clarify for the person that looks at this
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.
Kedro 0.18.13 onwards support Python 3.11 so we should be able to remove our special skipping of kedro in that environment now anyway.
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.
Created a new issue for this here: https://github.com/McK-Internal/vizro-internal/issues/363
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.
Managed to look at it all now! I really like it, and it's indeed a huge improvement.
I have been thinking: given that our coverage decreased with this PR, e.g. for lines 101-121 of _dashboard.py
, could this be that it is linked to the fact that we are using partial
there? And hence the _make_page_layout
function is actually never called in any unit tests!
If that's the case, then at least we know where to fix it - but given that time is of the essence I would not focus on it more here
That could be it! We've linked to this PR in the relevant issue already, so this can be taken as reference |
Description
Dashboard
Screenshot
Checklist
Types of changes
Notice
I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":