more debug logs w/ burnettk

This commit is contained in:
jasquat 2023-01-09 17:05:27 -05:00
parent 6adc01a432
commit 39fce185eb
2 changed files with 8 additions and 2 deletions

View File

@ -54,6 +54,9 @@ class ProcessModelInfo:
return False return False
# for use with os.path.join so it can work on windows # 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: def id_for_file_path(self) -> str:
"""Id_for_file_path.""" """Id_for_file_path."""
return self.id.replace("/", os.sep) return self.id.replace("/", os.sep)

View File

@ -735,7 +735,7 @@ export default function ProcessModelEditDiagram() {
); );
}; };
const onLaunchMarkdownEditor = ( const onLaunchMarkdownEditor = (
element: any, _element: any,
markdown: string, markdown: string,
eventBus: any eventBus: any
) => { ) => {
@ -771,7 +771,7 @@ export default function ProcessModelEditDiagram() {
}; };
const onSearchProcessModels = ( const onSearchProcessModels = (
processId: string, _processId: string,
eventBus: any, eventBus: any,
element: any element: any
) => { ) => {
@ -791,11 +791,13 @@ export default function ProcessModelEditDiagram() {
}; };
const processModelSelector = () => { const processModelSelector = () => {
console.log('IN MODEL SELECTOR: ', processes);
return ( return (
<Modal <Modal
open={showProcessSearch} open={showProcessSearch}
modalHeading="Select Process Model" modalHeading="Select Process Model"
primaryButtonText="Close" primaryButtonText="Close"
onRequestClose={processSearchOnClose}
onRequestSubmit={processSearchOnClose} onRequestSubmit={processSearchOnClose}
size="lg" size="lg"
> >
@ -964,6 +966,7 @@ export default function ProcessModelEditDiagram() {
{scriptEditorAndTests()} {scriptEditorAndTests()}
{markdownEditor()} {markdownEditor()}
{processModelSelector()} {processModelSelector()}
{`Processes length: ${processes.length}`}
<div id="diagram-container" /> <div id="diagram-container" />
</> </>
); );