Skip to content

Commit

Permalink
Merge branch 'master' into 2024/change/traefikV3
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnicegyu11 authored Aug 13, 2024
2 parents f3ae779 + 85eaba0 commit b3dd139
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
3 changes: 3 additions & 0 deletions packages/pytest-simcore/src/pytest_simcore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import pytest

# NOTE: this ensures that assertion printouts are nicely formated and complete see https://lorepirri.com/pytest-register-assert-rewrite.html
pytest.register_assert_rewrite("pytest_simcore.helpers")

__version__: str = version("pytest-simcore")


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# pytest_simcore.docker_compose fixture module config variables
import pytest

FIXTURE_CONFIG_CORE_SERVICES_SELECTION = "pytest_simcore_core_services_selection"
FIXTURE_CONFIG_OPS_SERVICES_SELECTION = "pytest_simcore_ops_services_selection"

# NOTE: this ensures that assertion printouts are nicely formated and complete see https://lorepirri.com/pytest-register-assert-rewrite.html
pytest.register_assert_rewrite("pytest_simcore.helpers")
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ qx.Class.define("osparc.data.model.Node", {
if (outputs) {
let hasOutputs = false;
Object.keys(this.getOutputs()).forEach(outputKey => {
if (Object.hasOwn(outputs, outputKey)) {
if (outputKey in outputs) {
this.setOutputs({
...this.getOutputs(),
[outputKey]: {
Expand Down Expand Up @@ -1094,7 +1094,11 @@ qx.Class.define("osparc.data.model.Node", {
};
this.fireDataEvent("showInLogger", msgData);

this.getIframeHandler().startPolling();
if (this.getIframeHandler()) {
this.getIframeHandler().startPolling();
} else {
console.error(this.getLabel() + " iframe handler not ready");
}
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,23 +364,6 @@ qx.Class.define("osparc.desktop.MainPage", {
});
},

closeStudy: function(studyId) {
if (studyId === undefined) {
if (this.__studyEditor && this.__studyEditor.getStudy()) {
studyId = this.__studyEditor.getStudy().getUuid();
} else {
return;
}
}
const params = {
url: {
"studyId": studyId
},
data: osparc.utils.Utils.getClientSessionID()
};
osparc.data.Resources.fetch("studies", "close", params);
},

__getStudyEditor: function() {
if (this.__studyEditor) {
return this.__studyEditor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,8 @@ qx.Class.define("osparc.desktop.StudyEditor", {
},
data: osparc.utils.Utils.getClientSessionID()
};
osparc.data.Resources.fetch("studies", "close", params);
osparc.data.Resources.fetch("studies", "close", params)
.catch(err => console.error(err));
},

closeEditor: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ qx.Class.define("osparc.viewer.NodeViewer", {
this.__iFrameChanged();

this.__attachSocketEventHandlers();
} else {
console.error(node.getLabel() + " iframe handler not ready");
}
})
.catch(err => console.error(err));
Expand Down

0 comments on commit b3dd139

Please sign in to comment.