Skip to content

Commit

Permalink
remove code duplicate and add auto qrm update after patternselection
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeisel committed Jul 22, 2024
1 parent 936c38b commit 5170ed2
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import NotificationHandler from "../../../../editor/ui/notifications/Notificatio
import { findSplittingCandidates } from "../../../quantme/ui/splitting/CandidateDetector";
import { rewriteWorkflow } from "../../../quantme/ui/splitting/WorkflowRewriter";
import { invokeScriptSplitter } from "../../../quantme/ui/splitting/splitter/ScriptSplitterHandler";
import { generateQrms } from "../../../quantme/utilities/Utilities";
import {generateQrms, handleQrmUpload} from "../../../quantme/utilities/Utilities";
import { uploadMultipleToGitHub } from "../../../quantme/qrm-manager/git-handler";

const defaultState = {
Expand Down Expand Up @@ -220,11 +220,8 @@ export default class PatternSelectionPlugin extends PureComponent {
);
qrmsActivities = result.qrmActivities;
if (qrmsActivities.length > 0) {
let qrmsToUpload = await generateQrms(qrmsActivities);
console.log(qrmsToUpload);
handleQrmUpload(qrmsActivities, this.modeler);

// upload the generated QRMS to the upload repository
uploadMultipleToGitHub(this.modeler.config, qrmsToUpload);
}
} else {
let collapsedSubprocessStartEvent = elementFactory.createShape({
Expand Down

0 comments on commit 5170ed2

Please sign in to comment.