-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of wikis and tags feature (#250)
### Summary Wikis and tags feature implementation. ### Description One of dbt's core features is source documentation. Right now, this documentation does not propagate into Dremio’s wiki, leading to two separate sources of truth. The goal is to display dbt documentation - more specifically, wikis and tags - inside of Dremio. ### Test Results All added tests are running - Added tests to check wikis and tags creation for table models - Added tests to check wikis and tags creation, update and deletion for view models ### Changelog - Possibility to integrate wikis and tags by enabling `relation` option from `persist_docs` configuration - New macro `dremio__persist_docs` created - Views also perform `persist_docs` macro - Integration via REST API ### Related Issue #86 #196
- Loading branch information
Showing
8 changed files
with
561 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% macro dremio__persist_docs(relation, model, for_relation, for_columns) -%} | ||
{% if for_relation and config.persist_relation_docs() %} | ||
{% do adapter.process_wikis(relation, model.description) %} | ||
{% do adapter.process_tags(relation, model.tags) %} | ||
{% endif %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.