Skip to content

GDB-13506 Visual graph config should have the repositoryId as a context#2662

Open
svilenvelikov wants to merge 1 commit intomasterfrom
GDB-13506-visual-graph-link-should-have-repositoryid
Open

GDB-13506 Visual graph config should have the repositoryId as a context#2662
svilenvelikov wants to merge 1 commit intomasterfrom
GDB-13506-visual-graph-link-should-have-repositoryid

Conversation

@svilenvelikov
Copy link
Copy Markdown
Collaborator

@svilenvelikov svilenvelikov commented Jan 28, 2026

What

Saved visual graph configs should have repositoryId property.

Why

This is needed in order to allow a user to open them in the repository in which they were created.

How

Add repositoryId to graph configuration save payload and clipboard URL

Testing

Screenshots

Checklist

  • Branch name
  • Target branch
  • Commit messages
  • Squash commits
  • MR name
  • MR Description
  • Tests
  • Browser support verified

Copilot AI review requested due to automatic review settings January 28, 2026 14:50
@svilenvelikov svilenvelikov changed the title GDB-13506 GDB-13506 Visual graph config should have the repositoryId as a context Jan 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds repositoryId property to saved visual graph configurations to allow users to open graphs in the repository where they were created.

Changes:

  • Modified toSavePayload() method to accept and include repositoryId parameter in the save payload
  • Updated graph save operations to pass repository ID when creating/updating graph configurations
  • Enhanced clipboard URL generation to include repository ID parameter using modern URL API

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/legacy-workbench/src/js/angular/models/graphs/graphs-config.js Added repositoryId parameter to toSavePayload() method and included it in the returned payload object
packages/legacy-workbench/src/js/angular/graphexplore/controllers/graphs-config.controller.js Updated calls to toSavePayload() to pass the active repository ID for both create and update operations
packages/legacy-workbench/src/js/angular/graphexplore/controllers/graphs-visualizations.controller.js Added repositoryId to graph save payload and improved clipboard URL construction to include repository parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@svilenvelikov svilenvelikov force-pushed the GDB-13506-visual-graph-link-should-have-repositoryid branch 2 times, most recently from 4f0e49b to 9c7fb99 Compare January 30, 2026 16:55
@svilenvelikov svilenvelikov force-pushed the GDB-13506-visual-graph-link-should-have-repositoryid branch 2 times, most recently from 28c462c to 5fe9a35 Compare February 6, 2026 12:02
resolve repo id for graph config

Temp commit containing some logging needed to debug an issue related with visgraph not rendered if the current repo is different than the one in the link

add logging for debugging purposes

Add repositoryId handling to graph state restoration

remove logging
@svilenvelikov svilenvelikov force-pushed the GDB-13506-visual-graph-link-should-have-repositoryid branch from 5fe9a35 to 3d27f77 Compare February 6, 2026 12:54
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 6, 2026

Quality Gate Failed Quality Gate failed for 'Shared-components'

Failed conditions
3 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

3 participants