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

Feature Request - Dependency Chain Export #1232

Open
Murry-Ovo opened this issue Jun 21, 2021 · 3 comments
Open

Feature Request - Dependency Chain Export #1232

Murry-Ovo opened this issue Jun 21, 2021 · 3 comments

Comments

@Murry-Ovo
Copy link

It would be great to be able to enter a series of tags, actions or select 'whole project' and be able to export the dependency chain that is created for these runs.

@BenBirt
Copy link
Collaborator

BenBirt commented Jun 28, 2021

Can you clarify how you'd like this to be exported? Is dataform compile --json sufficient?

@Murry-Ovo
Copy link
Author

I was thinking of a more visual representation, similar to the graphical view in the run logs, however a JSON output would also be useful

@Ekrekr
Copy link
Contributor

Ekrekr commented Mar 26, 2024

This would be a fun feature to make. CLI based text representations would be a bit ugly, because of the limits of scrolling and scaling. I think it would be better to use graphviz to create an image instead. For example:

  • Add a new CLI option for --dot
  • If that option is set, convert the compiled graph JSON format
    const compiledGraph = await compile({
    to a dot file instead
    • A dotfile would instead like digraph { dataset.table1 -> dataset.table2 }
  • If the --dot option is set, print the dot file output rather than the json output.
  • Users can then use that dotfile as they wish - probably with the graphviz CLI https://graphviz.org/doc/info/command.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants