diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/models/process_model.py b/spiffworkflow-backend/src/spiffworkflow_backend/models/process_model.py index 5e0ba6ca0..d39f0d742 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/models/process_model.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/models/process_model.py @@ -54,6 +54,9 @@ class ProcessModelInfo: return False # for use with os.path.join so it can work on windows + # NOTE: in APIs, ids should always have forward slashes, even in windows. + # this is because we have to store ids in the database, and we want the same + # database snapshot to work on any OS. def id_for_file_path(self) -> str: """Id_for_file_path.""" return self.id.replace("/", os.sep) diff --git a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx index 302462ab7..f04ee4d1d 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx @@ -735,7 +735,7 @@ export default function ProcessModelEditDiagram() { ); }; const onLaunchMarkdownEditor = ( - element: any, + _element: any, markdown: string, eventBus: any ) => { @@ -771,7 +771,7 @@ export default function ProcessModelEditDiagram() { }; const onSearchProcessModels = ( - processId: string, + _processId: string, eventBus: any, element: any ) => { @@ -791,11 +791,13 @@ export default function ProcessModelEditDiagram() { }; const processModelSelector = () => { + console.log('IN MODEL SELECTOR: ', processes); return ( @@ -964,6 +966,7 @@ export default function ProcessModelEditDiagram() { {scriptEditorAndTests()} {markdownEditor()} {processModelSelector()} + {`Processes length: ${processes.length}`}
);