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

CLI: Accept mulitple node identifiers in verdi node graph generate #6443

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jun 2, 2024

Fixes #3232

The --identifier option allows the user to specify which identifier to label nodes in the graph with: pk, uuid or label. Here, the interface is updated to allow specifying multiple identifiers, e.g.:

verdi node graph generate --identifier pk uuid -- <PK>

If more than one identifier type is specified, the resulting identifiers for each node are joined using a | character.

@sphuber sphuber force-pushed the feature/3232/node-graph-generate-multiple-node-id-types branch 2 times, most recently from e95551d to a3aee70 Compare June 2, 2024 14:20
Copy link

codecov bot commented Jun 2, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.79%. Comparing base (ef60b66) to head (720eafb).
Report is 115 commits behind head on main.

Files with missing lines Patch % Lines
src/aiida/tools/visualization/graph.py 77.78% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6443      +/-   ##
==========================================
+ Coverage   77.51%   77.79%   +0.29%     
==========================================
  Files         560      561       +1     
  Lines       41444    41820     +376     
==========================================
+ Hits        32120    32530     +410     
+ Misses       9324     9290      -34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sphuber sphuber requested a review from mbercx June 4, 2024 13:44
@sphuber sphuber force-pushed the feature/3232/node-graph-generate-multiple-node-id-types branch from a3aee70 to 1f2acec Compare July 2, 2024 10:36
@sphuber sphuber requested a review from GeigerJ2 July 3, 2024 06:49
@GeigerJ2 GeigerJ2 force-pushed the feature/3232/node-graph-generate-multiple-node-id-types branch from 1f2acec to aeaf53c Compare July 4, 2024 07:09
Copy link
Contributor

@GeigerJ2 GeigerJ2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to go!

tests/tools/visualization/test_graph.py Show resolved Hide resolved
The `--identifier` option allows the user to specify which identifier to
label nodes in the graph with: pk, uuid or label. Here, the interface is
updated to allow specifying multiple identifiers, e.g.:

    verdi node graph generate --identifier pk uuid -- <PK>

If more than one identifier type is specified, the resulting identifiers
for each node are joined using a `|` character.
@GeigerJ2 GeigerJ2 force-pushed the feature/3232/node-graph-generate-multiple-node-id-types branch from aeaf53c to 720eafb Compare July 4, 2024 12:48
@sphuber sphuber merged commit 6d2edc9 into aiidateam:main Jul 4, 2024
11 checks passed
@sphuber sphuber deleted the feature/3232/node-graph-generate-multiple-node-id-types branch July 4, 2024 13:25
mikibonacci pushed a commit to mikibonacci/aiida-core that referenced this pull request Sep 3, 2024
…iidateam#6443)

The `--identifier` option allows the user to specify which identifier to
label nodes in the graph with: pk, uuid or label. Here, the interface is
updated to allow specifying multiple identifiers, e.g.:

    verdi node graph generate --identifier pk uuid -- <PK>

If more than one identifier type is specified, the resulting identifiers
for each node are joined using a `|` character.
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

Successfully merging this pull request may close these issues.

verdi graph generate: print both pk/uuid AND label
2 participants