question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Newlines in sample data are not rendered properly on the front end

See original GitHub issue

Expected Behavior

I’ve just run the docker compose images and run the steps for the sample data loader as defined in the quick start guide.

When viewing the data in the Amundsen UI, I would expect these newline characters to be rendered on separate lines rather than retaining the newline character (it appears that newline character exists in the data source CSV itself).

Current Behavior

The newline characters \n are being displayed explicitly in certain fields

Possible Solution

It looks like the bold annotations within the source CSV are being rendered into markdown correctly, I’m not sure why the newline characters are being missed.

Steps to Reproduce

  1. Run the docker compose setup for a local instance with Neo4j
  2. Run the steps for ingesting the sample data via sample_data_loader.py
  3. View the Hive dataset test_schema.test_table1

Screenshots (if appropriate)

Screen Shot 2020-09-02 at 1 36 19 PM

Context

Since those characters are in the example data, my assumption would be that the UI would load them correctly.

Your Environment

  • Amunsen version used: 0a71beb

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
madison-ooklacommented, Sep 15, 2020

I’ll submit a PR for the amundsen data builder to adjust this 🙂

1reaction
ttanniscommented, Sep 2, 2020

Laying out next steps:

  1. We should first have to update the quick start, then see if the issue still occurs.Programmatic descriptions have had recent changes so we first have to check if this occurs on the recent code.
  2. If it does, programmatic descriptions are rendered using ReactMarkdown which is a 3rd party component. We will have to see if there are options we have to set to that things are displayed correctly. https://github.com/rexxars/react-markdown#options
  3. If not, we will have to file an issue for support on ReactMarkdown
Read more comments on GitHub >

github_iconTop Results From Across the Web

Render a string in HTML and preserve spaces and linebreaks
As part of that I have a description (retrieved from a db) that has spaces and new lines. When it is rendered the...
Read more >
Make line breaks work when you render text in a React or Vue ...
These two make sure that the text wraps when line breaks are in the content, and pre-line specifically collapses multiple whitespaces into one....
Read more >
Why is Splunk not maintaining line breaks as in the original log?
In search view on the Splunk search head web front end, as well as in table ... log samples and also explain where...
Read more >
Proper way to render newline (\n) in a template?
I guess the question is unclear: A "\n" should be output as a newline inside of the HTML sourcecode (as a line break)....
Read more >
How can I replace JSON \n line breaks with HTML <br> line ...
If one of your attributes has \n in its JSON string the InstantSearch will not display the value as a line break.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found