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

Allow the user to provide stable node-ids #739

Closed
vringar opened this issue Aug 9, 2022 · 1 comment
Closed

Allow the user to provide stable node-ids #739

vringar opened this issue Aug 9, 2022 · 1 comment

Comments

@vringar
Copy link

vringar commented Aug 9, 2022

When commit the diagrams to git and making sure they are up-to-date by running diagrams in CI, it is annoying that each new run generates new _ids for the nodes.
See:

self._id = self._rand_id()

I would be nice, if a user could specify a nodes _ids to ensure that the output only changes on a change to diagrams or the input file.

Closed by #422

@vringar
Copy link
Author

vringar commented Aug 9, 2022

Current output of my git diff:

-<!-- 1cd0443688924b0582222605b360a543 -->
+<!-- 9aa846bb6f224d28a3d71379889d9ea6 -->
<g id="node1" class="node">
-<title>1cd0443688924b0582222605b360a543</title>
+<title>9aa846bb6f224d28a3d71379889d9ea6</title>

for every node in my graph.

@vringar vringar closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant