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

PDiff-Sync manually triggered graph debug output #175

Open
lucksus opened this issue Jan 9, 2023 · 0 comments
Open

PDiff-Sync manually triggered graph debug output #175

lucksus opened this issue Jan 9, 2023 · 0 comments

Comments

@lucksus
Copy link
Member

lucksus commented Jan 9, 2023

What is really valuable information when debugging anything Neighbourhood, LinkLanguage and Holochain related is the diff graph in Perspective-diff-sync DHTs. But logging it automatically on every call bloats the log way too much.

It would be really great to have a mechanism to retrieve the graph (in dot-graph format) when needed.

An idea would be:

  • adding a debug(): string function to the LinksAdapter interface
  • implementing that function inside PDiff-sync to return the current graph
  • adding a function to the GraphQL interface (and Ad4mClient): ad4m.neighbourhoods.debug(pID)
  • adding a button to the Launcher (in expert mode - on neighbourhoods) to trigger this new function and display the graph (in text format, and if easy also rendered..)
@lucksus lucksus converted this from a draft issue Jan 9, 2023
@lucksus lucksus moved this from Todo to Backlog in AD4M development Jan 11, 2023
@leifriksheim leifriksheim added this to the Developer tooling milestone Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants