Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Python3 Migration Notes

Amanda Goldani edited this page Aug 4, 2021 · 9 revisions

This page is intended to show the differences between the old version of the code and the new one.

Note that all Python3 top levels are located in src/python/, this was omitted in the details for convenience.

Services

ReqMgr

Includes all helper functions from utils.py talking to the request manager.

Details
Python 2 Python 3 tested notes
utils.py/getAgentConfig Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getAgentConfig
utils.py/getReqmgrInfo Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getReqmgrInfo
utils.py/getWorkflowByCampaign Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowsByCampaign
utils.py/getWorkflowByName Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowsByNames
utils.py/getWorkflowByOutput Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowsByOutput * endpoint changed from CouchDB to the RESTful api
utils.py/getWorkflowById Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowsByPrepId * endpoint changed from CouchDB to the RESTful api
utils.py/getWorkflows Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowsByStatus
utils.py/getWorkload Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowSchema
utils.py/workflowInfo.getSchema Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getWorkflowSchema * use makeCopy = True to keep the same behavior
utils.py/workflowInfo.getSplittingsNew Services/ReqMgr/ReqMgrReader.py/ReqMgrReader.getSplittingsSchema * only does the request, input args strip and allTasks are not included here but in the migration of workflowInfo

Utilities

Includes all helper functions from utils.py that are used for authentication, configuration, etc.

Details
Python 2 Python 3 tested notes
utils.py/make_x509_conn Utilities/Authenticate.py/getX509Conn
utils.py/unifiedConfiguration Utilities/ConfigurationHandler.py/ConfigurationHandler
utils.py/runWithRetries Utilities/Decorators.py/runWithRetries
utils.py/GET Utilities/WebTools.py/getResponse
Clone this wiki locally