Skip to content

GDB-13688 support repositories from remote locations#2691

Draft
svilenvelikov wants to merge 10 commits into3.3from
GDB-13688-support-repositories-from-remote-locations
Draft

GDB-13688 support repositories from remote locations#2691
svilenvelikov wants to merge 10 commits into3.3from
GDB-13688-support-repositories-from-remote-locations

Conversation

@svilenvelikov
Copy link
Copy Markdown
Collaborator

What

Changing repositoryId url parameter value from plain repository id to combined string containing the location if any. For example, if there is a location property, the parameter becomes in format like this repositoryId=http://host:port/repositories/repoId and if there is no location then it is just repositoryId=repoId

Why

How

Testing

Screenshots

Checklist

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

… combined string containing the location if any. For example, if there is a location property, the parameter becomes in format like this repositoryId=http://host:port/repositories/repoId and if there is no location then it is just repositoryId=repoId
Copilot AI review requested due to automatic review settings February 4, 2026 16:54
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 enables support for repositories from remote locations by modifying how repository identifiers are handled in URL parameters. The change allows repository identifiers to include location information in the format http://host:port/repositories/repoId when a location exists, or just repoId when no location is specified.

Changes:

  • Added getRepositoryIdentifier() method to the Repository model to generate location-aware identifiers
  • Added utility methods to RepositoryService for parsing repository URLs and getting repository identifiers
  • Updated all code that constructs repository ID URL parameters to use the new getRepositoryIdentifier() method instead of directly accessing the id property

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/api/src/models/repositories/repository.ts Adds getRepositoryIdentifier() method to generate location-aware repository identifiers
packages/api/src/services/repository/repository.service.ts Adds parseRepositoryUrl() and getRepositoryIdentifier() utility methods for handling repository identifiers
packages/shared-components/src/components/onto-navbar/onto-navbar.tsx Updates navbar to use new repository identifier method
packages/legacy-workbench/src/js/angular/rest/mappers/sparql-template-mapper.js Updates SPARQL template mapper to use new repository identifier method
packages/legacy-workbench/src/js/angular/graphexplore/controllers/graphs-visualizations.controller.js Updates graph visualization controller to use new repository identifier method
packages/legacy-workbench/src/js/angular/export/controllers.js Updates export controller to use new repository identifier method
packages/legacy-workbench/src/js/angular/controllers.js Updates main controller with URL parsing logic and repository identifier handling

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

@yordanalexandrov yordanalexandrov force-pushed the GDB-13688-support-repositories-from-remote-locations branch from 6205410 to 8d05428 Compare February 5, 2026 14:31
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 5, 2026

@svilenvelikov svilenvelikov marked this pull request as draft February 6, 2026 13:34
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.

2 participants