Skip to content

Bug fix/improve visualizer performance #21819

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

Open
wants to merge 20 commits into
base: devel
Choose a base branch
from

Conversation

mchacki
Copy link
Member

@mchacki mchacki commented Jun 24, 2025

Scope & Purpose

Refactored the backend for graph visualizer and improved the underlying queries. Also added a new test file for the endpoint. I did run the test file against a devel version before this change.

  • 💩 Bugfix
  • 🍕 New feature
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification

Checklist

  • Tests
    • Regression tests
    • C++ Unit tests
    • integration tests
    • resilience tests
  • 📖 CHANGELOG entry made
  • 📚 documentation written (release notes, API changes, ...)
  • Backports
    • Backport for 3.12.0: (Please link PR)
    • Backport for 3.11: (Please link PR)
    • Backport for 3.10: (Please link PR)

Related Information

(Please reference tickets / specification / other PRs etc)

  • Docs PR:
  • Enterprise PR:
  • GitHub issue / Jira ticket:
  • Design document:

@mchacki mchacki self-assigned this Jun 24, 2025
@mchacki mchacki requested a review from a team as a code owner June 24, 2025 08:55
@cla-bot cla-bot bot added the cla-signed label Jun 24, 2025
var tooltipText = "";

if (config.nodeLabel) {
// Original behavior: treat nodeLabel as a single attribute name, not space-separated
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we did have support for space-separated nodeLabel, but it's not in the docs

So it I think we can drop it. But maybe we should specify that we are doing so in this comment? @mchacki

current arangodb behaviour (treats nodeLabel as space-separated):

image

post this PR (treats it as a single attribute):
image

Copy link
Contributor

@palashkaria palashkaria Jun 24, 2025

Choose a reason for hiding this comment

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

On reading again, I think that's what the "Original behaviour" comment is supposed to mean; maybe we can just clarify we are changing the behaviour 😄

Also we can specify the same here, that's where I first came across it: https://github.com/arangodb/arangodb/pull/21819/files#diff-7d765630af3b95a6a824eb4f5446989c17a6ef61e4b0692949d50aea600f6ec0R1110

Copy link
Contributor

@palashkaria palashkaria left a comment

Choose a reason for hiding this comment

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

LGTM - except one optional comment

@mchacki
Copy link
Member Author

mchacki commented Jun 25, 2025

@palashkaria Thank you for the review.
I addressed the change here:
dd78cd4

(sorry I did some rebase with devel and I am not sure if "review since last viewed" will still work for you.
Could you quickly check if this is okay now?
Then I can merge

@palashkaria
Copy link
Contributor

Looks good, tested the node label changes again, and works fine now!

Found another small change while testing -

  1. currently we say 'attribute not found' for edge attributes
image
  1. After this PR, it is being reported as 'null'
image

Again a small one, but we probably didn't intend to make this change @mchacki

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

Successfully merging this pull request may close these issues.

7 participants