How to Insert Raw Markdown into the Description Field in Python

Original Slack Thread

I’m attempting to write some python code to automatically add contents to the description field of many datasets. However, whenever I add these strings, they are being stored as codeblocks in the description attribute. How do I insert raw markdown into the description field?

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Are you using UI or CLI for ingestion?
  2. Which DataHub version are you using? (e.g. 0.12.0)
  3. What data source(s) are you integrating with DataHub? (e.g. BigQuery)

Turns out this was an issue with indentation. When my strings include indents, they will be formatted as codeblocks. Wrapping it in a textwrap.dedent fixed it