From 92dee735e9588850cbdfff81dcc44a8cb88267fb Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 14 Oct 2021 18:38:30 +0200 Subject: [PATCH] Install as Plugin Bug Fix --- .../Algorithmic-Trading/UI/Function-Libraries/ActionSwitch.js | 4 ++++ .../Community-Plugins/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/Data-Mining/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/Education/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/Ethereum/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/Foundations/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/Governance/Schemas/App-Schema/assets.json | 2 +- Projects/Governance/Schemas/App-Schema/features.json | 2 +- Projects/Governance/Schemas/App-Schema/pools.json | 2 +- Projects/Governance/Schemas/App-Schema/positions.json | 2 +- Projects/Governance/Schemas/App-Schema/user-profile.json | 2 +- Projects/Governance/UI/Function-Libraries/ActionSwitch.js | 4 ++++ .../Machine-Learning/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/Social-Bots/UI/Function-Libraries/ActionSwitch.js | 4 ++++ Projects/TensorFlow/UI/Function-Libraries/ActionSwitch.js | 3 +++ .../Visual-Scripting/UI/Function-Libraries/ActionSwitch.js | 4 ++++ 16 files changed, 48 insertions(+), 5 deletions(-) diff --git a/Projects/Algorithmic-Trading/UI/Function-Libraries/ActionSwitch.js b/Projects/Algorithmic-Trading/UI/Function-Libraries/ActionSwitch.js index c45e2c3fb..3c57e827d 100644 --- a/Projects/Algorithmic-Trading/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Algorithmic-Trading/UI/Function-Libraries/ActionSwitch.js @@ -33,6 +33,10 @@ function newAlgorithmicTradingActionSwitch() { UI.projects.algorithmicTrading.functionLibraries.tradingSessionFunctions.stopSession(action.node, action.callBackFunction) } break + + default: { + console.log("[WARN] Action sent to Algorithmic-Trading Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Community-Plugins/UI/Function-Libraries/ActionSwitch.js b/Projects/Community-Plugins/UI/Function-Libraries/ActionSwitch.js index fd5eaf08b..2f96c6f67 100644 --- a/Projects/Community-Plugins/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Community-Plugins/UI/Function-Libraries/ActionSwitch.js @@ -93,6 +93,10 @@ function newCommunityPluginsActionSwitch() { UI.projects.communityPlugins.functionLibraries.pluginsFunctions.savePlugin(action.node, action.rootNodes) } break + + default: { + console.log("[WARN] Action sent to Community-Plugins Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Data-Mining/UI/Function-Libraries/ActionSwitch.js b/Projects/Data-Mining/UI/Function-Libraries/ActionSwitch.js index 9a00f8ac1..df01859a4 100644 --- a/Projects/Data-Mining/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Data-Mining/UI/Function-Libraries/ActionSwitch.js @@ -33,6 +33,10 @@ function newDataMiningActionSwitch() { UI.projects.dataMining.functionLibraries.mineFunctions.addAllDataMineDataDependencies(action.node, action.rootNodes) } break + + default: { + console.log("[WARN] Action sent to Data-Mining Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Education/UI/Function-Libraries/ActionSwitch.js b/Projects/Education/UI/Function-Libraries/ActionSwitch.js index 329bb4a35..7059fb4c4 100644 --- a/Projects/Education/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Education/UI/Function-Libraries/ActionSwitch.js @@ -53,6 +53,10 @@ function newEducationActionSwitch() { UI.projects.education.spaces.tutorialSpace.resetTutorialProgress(action.node) } break + + default: { + console.log("[WARN] Action sent to Education Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Ethereum/UI/Function-Libraries/ActionSwitch.js b/Projects/Ethereum/UI/Function-Libraries/ActionSwitch.js index 5cb5ed072..b2fe527ea 100644 --- a/Projects/Ethereum/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Ethereum/UI/Function-Libraries/ActionSwitch.js @@ -23,6 +23,10 @@ function newEthereumActionSwitch() { UI.projects.ethereum.functionLibraries.accounts.createWalletAccount(action.node) break } + + default: { + console.log("[WARN] Action sent to Ethereum Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js b/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js index 95002ce7f..2bff88d79 100644 --- a/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Foundations/UI/Function-Libraries/ActionSwitch.js @@ -446,6 +446,10 @@ function newFoundationsActionSwitch() { UI.projects.foundations.spaces.floatingSpace.moveFloatingObject(action.node.payload.position) } break + + default: { + console.log("[WARN] Action sent to Foundations Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Governance/Schemas/App-Schema/assets.json b/Projects/Governance/Schemas/App-Schema/assets.json index a735a8efc..63cdfc5c5 100644 --- a/Projects/Governance/Schemas/App-Schema/assets.json +++ b/Projects/Governance/Schemas/App-Schema/assets.json @@ -37,7 +37,7 @@ }, { "action": "Install as Plugin", - "actionProject": "Foundations", + "actionProject": "Community-Plugins", "askConfirmation": true, "confirmationLabel": "Confirm to Install", "label": "Install as Plugin", diff --git a/Projects/Governance/Schemas/App-Schema/features.json b/Projects/Governance/Schemas/App-Schema/features.json index 6f6fc7f99..b00fb4c67 100644 --- a/Projects/Governance/Schemas/App-Schema/features.json +++ b/Projects/Governance/Schemas/App-Schema/features.json @@ -19,7 +19,7 @@ }, { "action": "Install as Plugin", - "actionProject": "Foundations", + "actionProject": "Community-Plugins", "askConfirmation": true, "confirmationLabel": "Confirm to Install", "label": "Install as Plugin", diff --git a/Projects/Governance/Schemas/App-Schema/pools.json b/Projects/Governance/Schemas/App-Schema/pools.json index 3103900b4..decb13b17 100644 --- a/Projects/Governance/Schemas/App-Schema/pools.json +++ b/Projects/Governance/Schemas/App-Schema/pools.json @@ -26,7 +26,7 @@ }, { "action": "Install as Plugin", - "actionProject": "Foundations", + "actionProject": "Community-Plugins", "askConfirmation": true, "confirmationLabel": "Confirm to Install", "label": "Install as Plugin", diff --git a/Projects/Governance/Schemas/App-Schema/positions.json b/Projects/Governance/Schemas/App-Schema/positions.json index 0695ef7f1..4980ca7a4 100644 --- a/Projects/Governance/Schemas/App-Schema/positions.json +++ b/Projects/Governance/Schemas/App-Schema/positions.json @@ -19,7 +19,7 @@ }, { "action": "Install as Plugin", - "actionProject": "Foundations", + "actionProject": "Community-Plugins", "askConfirmation": true, "confirmationLabel": "Confirm to Install", "label": "Install as Plugin", diff --git a/Projects/Governance/Schemas/App-Schema/user-profile.json b/Projects/Governance/Schemas/App-Schema/user-profile.json index 45d86bc27..adec94dd9 100644 --- a/Projects/Governance/Schemas/App-Schema/user-profile.json +++ b/Projects/Governance/Schemas/App-Schema/user-profile.json @@ -30,7 +30,7 @@ }, { "action": "Install as Plugin", - "actionProject": "Foundations", + "actionProject": "Community-Plugins", "askConfirmation": true, "confirmationLabel": "Confirm to Install", "label": "Install as Plugin", diff --git a/Projects/Governance/UI/Function-Libraries/ActionSwitch.js b/Projects/Governance/UI/Function-Libraries/ActionSwitch.js index da9022ebe..798d2f63e 100644 --- a/Projects/Governance/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Governance/UI/Function-Libraries/ActionSwitch.js @@ -68,6 +68,10 @@ function newGovernanceActionSwitch() { UI.projects.governance.functionLibraries.pluginsFunctions.addMissingPluginPositions(action.node, action.rootNodes) } break + + default: { + console.log("[WARN] Action sent to Governance Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Machine-Learning/UI/Function-Libraries/ActionSwitch.js b/Projects/Machine-Learning/UI/Function-Libraries/ActionSwitch.js index a03c5d97f..a37cf561a 100644 --- a/Projects/Machine-Learning/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Machine-Learning/UI/Function-Libraries/ActionSwitch.js @@ -33,6 +33,10 @@ function newMachineLearningActionSwitch() { UI.projects.machineLearning.functionLibraries.learningSessionFunctions.stopSession(action.node, action.callBackFunction) } break + + default: { + console.log("[WARN] Action sent to Machine-Learning Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Social-Bots/UI/Function-Libraries/ActionSwitch.js b/Projects/Social-Bots/UI/Function-Libraries/ActionSwitch.js index 747eedfbb..4b3ceb156 100644 --- a/Projects/Social-Bots/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Social-Bots/UI/Function-Libraries/ActionSwitch.js @@ -38,6 +38,10 @@ function newSocialBotsActionSwitch() { UI.projects.socialBots.functionLibraries.socialBotsFunctions.sendTwitterTestMessage(action.node, action.callBackFunction) } break + + default: { + console.log("[WARN] Action sent to Social-Bots Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/TensorFlow/UI/Function-Libraries/ActionSwitch.js b/Projects/TensorFlow/UI/Function-Libraries/ActionSwitch.js index c235bee72..78b4af1a0 100644 --- a/Projects/TensorFlow/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/TensorFlow/UI/Function-Libraries/ActionSwitch.js @@ -25,6 +25,9 @@ function newTensorFlowActionSwitch() { break } */ + default: { + console.log("[WARN] Action sent to TensorFlow Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } } diff --git a/Projects/Visual-Scripting/UI/Function-Libraries/ActionSwitch.js b/Projects/Visual-Scripting/UI/Function-Libraries/ActionSwitch.js index 9f2ef055e..785bb7a46 100644 --- a/Projects/Visual-Scripting/UI/Function-Libraries/ActionSwitch.js +++ b/Projects/Visual-Scripting/UI/Function-Libraries/ActionSwitch.js @@ -193,6 +193,10 @@ function newVisualScriptingActionSwitch() { UI.projects.visualScripting.functionLibraries.attachDetach.referenceDetachNode(action.node) } break + + default: { + console.log("[WARN] Action sent to Visual-Scripting Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name) + } } } }