Skip to content

Commit

Permalink
Merge pull request #335 from Ontotext-AD/prepare-1.5.0
Browse files Browse the repository at this point in the history
Prepare 1.5.0
  • Loading branch information
avataar authored Dec 4, 2020
2 parents c55dae3 + 3522355 commit 0b6c7c0
Show file tree
Hide file tree
Showing 8 changed files with 423 additions and 420 deletions.
824 changes: 412 additions & 412 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphdb-workbench",
"version": "1.5.0-RC3",
"version": "1.5.0",
"description": "The web application for GraphDB APIs",
"scripts": {
"build": "webpack --config=webpack.config.prod.js",
Expand Down
3 changes: 2 additions & 1 deletion src/js/angular/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ function mainCtrl($scope, $menuItems, $jwtAuth, $http, toastr, $location, $repos
}

if (!$repositories.getActiveRepository() || $repositories.getActiveRepository() === 'SYSTEM'
|| !$scope.hasRole(UserRole.ROLE_USER)) {
// Don't call getQueries for Ontop type repository
|| $repositories.isActiveRepoOntopType() || !$scope.hasRole(UserRole.ROLE_USER)) {
// No monitoring if no active repo, the active repo is the system repo or the current user
// isn't a repo admin.
$scope.queryCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function domainRangeGraphDirective($rootScope, $window, $repositories, GraphData
*/
function prepareForSVGImageExport() {
// get css rules for the diagram
var cssRules = SVG.Export.getCSSRules("css/domain-range-graph.css");
var cssRules = SVG.Export.getCSSRules("css/domain-range-graph.css?v=[AIV]{version}[/AIV]");

// inline css rules in a defs tag
$("defs").append('<style type="text/css"><![CDATA[' + cssRules + ']]></style>');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function classHierarchyDirective($rootScope, $location, GraphDataRestService, $w
*/
function prepareForSVGImageExport() {
// get css rules for the diagram
var cssRules = SVG.Export.getCSSRules("css/rdf-class-hierarchy-labels.css");
var cssRules = SVG.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=[AIV]{version}[/AIV]");
// inline css rules in a defs tag
d3.selectAll("#main-group")
.append("defs");
Expand Down
6 changes: 4 additions & 2 deletions src/js/angular/repositories/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ function AddRepositoryCtrl($scope, toastr, $repositories, $location, Upload, isE
};

$scope.isOntopRepoFileUploaded = function() {
return $scope.repositoryInfo.params.propertiesFile.value.length > 0
return $scope.repositoryInfo.params.propertiesFile &&
$scope.repositoryInfo.params.propertiesFile.value.length > 0
};

$scope.validateOntopPropertiesConnection = function() {
Expand Down Expand Up @@ -778,7 +779,8 @@ function EditRepositoryCtrl($scope, $routeParams, toastr, $repositories, $locati
};

$scope.isOntopRepoFileUploaded = function() {
return $scope.repositoryInfo.params.propertiesFile.value.length > 0
return $scope.repositoryInfo.params.propertiesFile &&
$scope.repositoryInfo.params.propertiesFile.value.length > 0
};

$scope.validateOntopPropertiesConnection = function() {
Expand Down
2 changes: 1 addition & 1 deletion test-cypress/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test-cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphdb-workbench-tests",
"version": "1.5.0-RC3",
"version": "1.5.0",
"description": "Cypress tests for GraphDB workbench",
"scripts": {
"start": "cypress open",
Expand Down

0 comments on commit 0b6c7c0

Please sign in to comment.