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

Limit column descriptions temporarily #261

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

MatMoore
Copy link
Contributor

This is a partial workaround for #240

A more flexible solution would be to provide a "Show more" button, but I'm going to look at that separately, as I'm not sure how much work it would be to implement.

In some cases we have very long descriptions associated with columns. Datahub has no restrictions on what we can store here, however our layout has some issues with long text:

  1. It is hard to scan through the column list if a single column takes up the whole page
  2. If a column description contains a markdown table, we don't render that as a table inside the table
  3. If we have unparsed markdown with no natural line breaks (such as a column header) then the table grows to encompass its width

This workaround allows the problem page to render properly until these problems are addressed.

In some cases we have very long descriptions associated with columns.
For example: /details/table/urn:li:dataset:(urn:li:dataPlatform:athena,xhibit_derived.all_offence,PROD)

Datahub has no restrictions on what we can store here, however our
layout has some issues with long text:

1. It is hard to scan through the column list if a single column takes
   up the whole page
2. If a column description contains a markdown table, we don't render
   that
3. If we have unparsed markdown with no natural line breaks (such as a
   column header) then the table grows to encompass its width

This workaround allows the page to render properly until these problems
are addressed.
Copy link
Contributor

@hjribeiro-moj hjribeiro-moj left a comment

Choose a reason for hiding this comment

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

LGTM

@MatMoore MatMoore merged commit a905bd5 into main Apr 22, 2024
4 checks passed
@MatMoore MatMoore deleted the limit-column-descriptions branch April 22, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants