Skip to content
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

fix: prevent crashes on lineage for short node labels #1193

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

lorenzo-cavazzi
Copy link
Member

The UI seems to crash on the lineage preview when a label property of a "ProcessRun" node doesn't contain any space. In the example provided in #1101, the command is sbt.

I modified the logic we use to derive the label we show in the graph. Now the output looks fine in most cases, but it can be improved for very long strings. One way would be providing more interactions, like popovers or tooltips for long commands.
I guess this is enough as a bugfix, but we may want to refactor the graph output later to provide a better UX (that would require a design and a deep overhaul).

Please test using different projects, I may very well have missed corner cases.

Preview: https://lorenzotest.dev.renku.ch/

Screenshot_20210112_180901

Screenshot_20210112_175351

fix #1101

@lorenzo-cavazzi lorenzo-cavazzi added this to the sprint-2021-01-08 milestone Jan 13, 2021
@lorenzo-cavazzi lorenzo-cavazzi requested a review from a team as a code owner January 13, 2021 07:45
Copy link
Contributor

@ciyer ciyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good!

@lorenzo-cavazzi lorenzo-cavazzi merged commit c7dce1f into master Jan 13, 2021
@lorenzo-cavazzi lorenzo-cavazzi deleted the 1101-lineage branch January 13, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lineage displaying a blank page
2 participants