What steps will reproduce the problem?
1. Create JS-workflow "Custom Scrtipt" my-module with
exports.getValue = function () { return false;}
2. Create JS-workflow "On-change Action" my-action with
...
var myModule = require("my-module");
var workflow = require("v1/workflow");
action : function (ctx) {
workflow.check(myModule.getValue(), "It's just FALSE");
workflow.message("Ok!");
}
3. Attach my-action to an Project
4. Do something with any task - it will produce Error
5. Change my-module
exports.getValue = function () { return true;}
6. Do something with any task -
it's still produce Error 7. Open my-action and "insert space, delete space, save"
8. Do something with any task - no error and "Ok" message
What is the expected result?
At step 6 it must use new version of imported script
What happens instead?
It uses (cached?) version of script
Please provide any additional information below.
Attach a code sample as text, a screenshot or screencast if possible
It's very bad if some module is required by many rules.
I think it's not much hard to make static code analyzer which build dependency tree and then using it to upgrade version of dependent rules when imported scripts are changed.