[CT-3543] [Feature] Global config to apply pretty-print formatting to JSON artifacts #9363
Open
3 tasks done
Labels
enhancement
New feature or request
help_wanted
Trickier changes, with a clear starting point, good for previous/experienced contributors
Impact: CA
paper_cut
A small change that impacts lots of users in their day-to-day
Is this your first time submitting a feature request?
Describe the feature
For human consumers, it's nice to apply pretty-printing to dbt artifacts like
semantic_manifest.json
,manifest.json
,catalog.json
,run_results.json
,sources.json
, etc. so that they are more readable for debugging or development purposes.So we should enable a global config that allows this to be configured:
pretty_print_json
--pretty-print-json
/--no-pretty-print-json
For consideration: whether or not it would default to
true
. Selfishly, I wouldn't mind if it defaulted to pretty-printing 😎. But there could be storage/performance implications to consider.Other use cases
Both
dbt list
anddbt show
subcommands allow specifying--output json
.Ideally, any commands that allow JSON-formatted output would also respect the
pretty_print_json
flag.Describe alternatives you've considered
I just use the Shift + Option + F shortcut in vscode currently.
In the past, I've
jq
commands like this:Who will this benefit?
This will benefit anyone who does debugging of dbt JSON artifacts or does development that consumes these artifacts.
e.g.
This is not easy to read:
But this is:
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: