From 11869705346a8098d56588c5920d056faca0ed3e Mon Sep 17 00:00:00 2001 From: Evgeny Kochetkov Date: Wed, 27 Feb 2019 17:14:10 +0300 Subject: [PATCH 1/2] fix(xod-client): update deduced type on node arity change Closes #1692 --- packages/xod-client/src/hinting/typeDeduction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xod-client/src/hinting/typeDeduction.js b/packages/xod-client/src/hinting/typeDeduction.js index b9e78eb6..52bf96a7 100644 --- a/packages/xod-client/src/hinting/typeDeduction.js +++ b/packages/xod-client/src/hinting/typeDeduction.js @@ -36,7 +36,6 @@ export const shallDeduceTypes = R.curry((project, action) => isAmong([ PAT.PROJECT_UPDATE_META, PAT.NODE_ADD, - PAT.NODE_CHANGE_ARITY_LEVEL, PAT.NODE_RESIZE, PAT.COMMENT_ADD, PAT.COMMENT_RESIZE, @@ -52,6 +51,7 @@ export const shallDeduceTypes = R.curry((project, action) => // PAT.PATCH_RENAME, // PAT.BULK_DELETE_ENTITIES, // PAT.LINK_ADD, + // PAT.NODE_CHANGE_ARITY_LEVEL, // PAT.NODE_CHANGE_SPECIALIZATION, // For NODE_UPDATE_PROPERTY will be a special check ]) From 5c8e3994bff9411a17d9fe48cad6fc0743a55375 Mon Sep 17 00:00:00 2001 From: Evgeny Kochetkov Date: Wed, 27 Feb 2019 17:14:51 +0300 Subject: [PATCH 2/2] fix(xod-client): update patch markers on library install Closes #1697 --- packages/xod-client/src/hinting/patchMarkers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/xod-client/src/hinting/patchMarkers.js b/packages/xod-client/src/hinting/patchMarkers.js index 1cdda539..e39f5fc7 100644 --- a/packages/xod-client/src/hinting/patchMarkers.js +++ b/packages/xod-client/src/hinting/patchMarkers.js @@ -6,7 +6,11 @@ import * as EAT from '../editor/actionTypes'; // :: Action -> Boolean const isLoadingProjectAction = R.propSatisfies( - isAmong([PAT.PROJECT_IMPORT, PAT.PROJECT_OPEN]), + isAmong([ + PAT.PROJECT_IMPORT, + PAT.PROJECT_OPEN, + EAT.INSTALL_LIBRARIES_COMPLETE, + ]), 'type' );