Commit 18c89c6c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

missing mock test data + fix on nested complexes

parent 1726a809
Pipeline #4312 passed with stage
in 1 minute and 5 seconds
......@@ -621,7 +621,6 @@ ServerConnector.getConfigurationOptionUrl = function (queryParams, filterParams)
ServerConnector.getSearchUrl = function (queryParams, filterParams) {
logger.warn(filterParams);
return this.getApiUrl({
url: this.getModelsUrl(queryParams) + "bioEntities:search",
params: filterParams
......
......@@ -90,7 +90,7 @@ SearchDbOverlay.prototype._getFirstVisibleParentOrObject = function (identifiedE
if (fullElement.getHierarchyVisibilityLevel() <= zoomLevel) {
if (fullElement instanceof Alias) {
//transparent compartments shouldn't be clickable
if (fullElement.getTransparencyLevel() <= zoomLevel) {
if (fullElement.getTransparencyLevel() <= zoomLevel && fullElement.getType() === "Compartment") {
return undefined;
}
}
......
......@@ -179,7 +179,7 @@ describe('SearchDbOverlay', function () {
var searchParams = {
modelId: map.getModel().getId(),
coordinates: new google.maps.Point(316.05, 253.61),
zoom: 4
zoom: 10
};
return searchDb.searchByCoordinates(searchParams);
}).then(function (result) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment