Skip to content

Commit

Permalink
Fix plugin handling (#87)
Browse files Browse the repository at this point in the history
* fix plugin handling

* fix lint
  • Loading branch information
LaviniaStiliadou authored Oct 2, 2023
1 parent 4d42f49 commit 9a3c9be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ export function getActivePlugins() {
export function checkEnabledStatus(pluginName) {
switch (pluginName) {
case "dataflow":
return process.env.ENABLE_DATA_FLOW_PLUGIN;
return process.env.ENABLE_DATA_FLOW_PLUGIN !== "false";
case "planqk":
return process.env.ENABLE_PLANQK_PLUGIN;
return process.env.ENABLE_PLANQK_PLUGIN !== "false";
case "qhana":
return process.env.ENABLE_QHANA_PLUGIN;
return process.env.ENABLE_QHANA_PLUGIN !== "false";
case "quantme":
return process.env.ENABLE_QUANTME_PLUGIN;
return process.env.ENABLE_QUANTME_PLUGIN !== "false";
}
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export default function BPMNConfigTab() {
const [scriptSplitterThreshold, setScriptSplitterThreshold] = useState(
config.getScriptSplitterThreshold()
);
let hybridRuntimeProvenanceBoolean = hybridRuntimeProvenance;
let hybridRuntimeProvenanceBoolean =
hybridRuntimeProvenance === "false"
? false
: Boolean(hybridRuntimeProvenance);

const modeler = getModeler();

Expand Down
10 changes: 5 additions & 5 deletions components/bpmn-q/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ module.exports = {
DATA_CONFIG:
"https://raw.githubusercontent.com/PlanQK/workflow-modeler/master/components/bpmn-q/modeler-component/extensions/quantme/configurations/quantmeDataObjects.json",
DOWNLOAD_FILE_NAME: "quantum-workflow-model",
ENABLE_DATA_FLOW_PLUGIN: true,
ENABLE_PLANQK_PLUGIN: true,
ENABLE_QHANA_PLUGIN: true,
ENABLE_QUANTME_PLUGIN: true,
ENABLE_DATA_FLOW_PLUGIN: "true",
ENABLE_PLANQK_PLUGIN: "true",
ENABLE_QHANA_PLUGIN: "true",
ENABLE_QUANTME_PLUGIN: "true",
GITHUB_TOKEN: "",
OPENTOSCA_ENDPOINT: "http://localhost:1337/csars",
NISQ_ANALYZER_ENDPOINT: "http://localhost:8098/nisq-analyzer",
PROVENANCE_COLLECTION: false,
PROVENANCE_COLLECTION: "false",
QHANA_GET_PLUGIN_URL: "http://localhost:5006/api/plugins/",
QHANA_LIST_PLUGINS_URL:
"http://localhost:5006/api/plugins/?item-count=100",
Expand Down

0 comments on commit 9a3c9be

Please sign in to comment.