Improve communication between MAP-Client and PMR #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses issues occurring with the communication between the MAP-Client and the Physiome Model Repository (PMR).
The usage in the MAP-Client of a couple pmr2.wfctrl classes has been updated to align with the current PMR2 API:
CmdWorkspace
class requires a Cmd object instance as an argument. Theget_cmd_by_name
method we are using in the MAP-Client returns a class type so the return value must be instantiated before passing it to theCmdWorkspace
constructor.BaseDvcsCmd
subclasses now output the Git command return-code in addition to the stdout and stderr streams. This can be used to more accurately filter error messages passed to the MAP-Client from the pmr2.wfctrl package. This is now being used in the MAP-Client to address an issue we have been having where some of the Git push commands we are executing to submit content to PMR return error messages even when the return_code shows that the push was successful.Two methods have been added to the
WorkflowStepMountPoint
:gitInclude
andcreateGitIgnore
.gitInclude
method can be overridden by a plugin implementation to specify a list of files or file types that should be included under the step's workflow sub-directory in the version control of the workflow.createGitIgnore
method is called by the MAP-Client to create a .gitignore file for each of the workflow steps in the workflow directory. This will ignore all files in the step's workflow sub-directory except those specified by the plugin'sgitInclude
method. TheWorkflowWidget._commitChanges
method has been updated slightly so that step workflow sub-directories are included in the commit to PMR. Note that since the plugin specific .gitignore files exclude all file types by default, the step workflow directory will only be committed to PMR if the plugin implements thegitInclude
method.