feat(editor): Use resource locator at Simple Vector Store memory key, allow cross workflow use (#15421)

Remove workflow isolation from in-memory Simple Vector Store, making it possible to use vector stores created on other workflows. Display all current in-memory vector stores with a resource locator at Memory Key picker.

Note that these vector stores are still intended for non-production development use. Any users of an instance can access data in all in-memory vector stores as they aren't bound to workflows.
This commit is contained in:
Jaakko Husso
2025-05-22 23:34:59 +03:00
committed by GitHub
parent a86bc43f50
commit e5c2aea6fe
16 changed files with 392 additions and 36 deletions

View File

@@ -3,7 +3,7 @@ import { setCredentialValues } from '../composables/modals/credential-modal';
import {
clickCreateNewCredential,
getNdvContainer,
selectResourceLocatorItem,
selectResourceLocatorAddResourceItem,
} from '../composables/ndv';
import * as projects from '../composables/projects';
import {
@@ -299,9 +299,11 @@ describe('Projects', { disableAutoLogin: true }, () => {
workflowPage.actions.saveWorkflowOnButtonClick();
workflowPage.actions.addNodeToCanvas('Execute Workflow', true, true);
// This mock fails when running with `test:e2e:dev` but works with `test:e2e:ui`,
// at least on macOS at version 1.94.0. ¯\_(ツ)_/¯
cy.window().then((win) => cy.stub(win, 'open').callsFake((url) => cy.visit(url)));
selectResourceLocatorItem('workflowId', 0, 'Create a');
selectResourceLocatorAddResourceItem('workflowId', 'Create a');
// Need to wait for the trigger node to auto-open after a delay
getNdvContainer().should('be.visible');
cy.get('body').type('{esc}');