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 Jun 24, 2021 · 9 revisions

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

ReqMgrReader

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

Python 2 Python 3 tested notes
utils.py/getAgentConfig() src/python/Services/ReqMgr/ReqMgrReader.getAgentConfig()
utils.py/getReqmgrInfo() src/python/Services/ReqMgr/ReqMgrReader.getReqmgrInfo()
utils.py/getWorkload() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowSchema() * there is duplicated code in utils.py/workflowInfo() (~line 3814) doing the same thing, use try_cache=True if keeping the same behavior
utils.py/getWorkflowByCampaign() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowSchemaByCampaign()
utils.py/getWorkflowById() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowSchemaByPrepId() * changed endpoint from couchdb, so dicts don't have the keys: _rev and _attachments
utils.py/getWorkflowByOutput() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowSchemaByOutput() * changed endpoint from couchdb, so dicts don't have the keys: _rev and _attachments
utils.py/getWorkflows() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowsByStatus()
utils.py/getWorkflowsByName() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowSchemaByName()
utils.py/workflowInfo.getSplittingsNew() src/python/Services/ReqMgr/ReqMgrReader.getSplittingsNew()
utils.py/workflowInfo.getSchema() src/python/Services/ReqMgr/ReqMgrReader.getWorkflowSchema() * use drop_null=True and make_copy=True to get the same behavior

Clone this wiki locally