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

bug: make it work with current catalogs #2

Open
rwaffen opened this issue May 23, 2024 · 6 comments
Open

bug: make it work with current catalogs #2

rwaffen opened this issue May 23, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@rwaffen
Copy link
Member

rwaffen commented May 23, 2024

does not work with current catalogs from puppet7.

hierarchy_graph.js:68 Uncaught TypeError: Cannot read properties of undefined (reading 'edges')
    at hierarchy_graph.js:68:18
    at Object.<anonymous> (d3.v3.min.js:1:11277)
    at Object.t (d3.v3.min.js:1:1565)
    at XMLHttpRequest.i (d3.v3.min.js:1:10137)

used catalog:
catalog.json

@rwaffen rwaffen added the bug Something isn't working label May 23, 2024
@tuxmea
Copy link
Member

tuxmea commented May 23, 2024

Even if one removes

we receive errors.

New error:

Uncaught TypeError: object is undefined
    resource_ref http://localhost:8080/hierarchy_graph.js:33
    edge_index   http://localhost:8080/hierarchy_graph.js:78
    n            https://d3js.org/d3.v3.min.js:3
    s            https://d3js.org/d3.v3.min.js:3
    forEach      https://d3js.org/d3.v3.min.js:3
    n            https://d3js.org/d3.v3.min.js:3
    map          https://d3js.org/d3.v3.min.js:3
    <anonymous>  http://localhost:8080/hierarchy_graph.js:79
    send         https://d3js.org/d3.v3.min.js:1
    t            https://d3js.org/d3.v3.min.js:1
    i            https://d3js.org/d3.v3.min.js:1
    Cn           https://d3js.org/d3.v3.min.js:1
    json         https://d3js.org/d3.v3.min.js:5
    <anonymous>  http://localhost:8080/hierarchy_graph.js:50
hierarchy_graph.js:33:3

@tuxmea tuxmea assigned tuxmea and oneiros and unassigned tuxmea May 23, 2024
@rwaffen
Copy link
Member Author

rwaffen commented Jun 20, 2024

this is how the agent generates the dot files:
https://github.com/search?q=repo%3Apuppetlabs%2Fpuppet+graph&type=code

@rwaffen
Copy link
Member Author

rwaffen commented Jun 20, 2024

please add catalog with dependency cycle

@marcusdots
Copy link

pe.marcus.betadots.training.json

Example Catalogue from an empty Puppet Enterprise installation (1,800 ressources)

@oneiros
Copy link
Collaborator

oneiros commented Oct 22, 2024

image

@marcusdots
Copy link

The graph visualizes this piece of puppet code
https://github.com/marcusdots/buggedcontrolrepo/blob/catalog_visualisation/manifests/site.pp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants