Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid multiple BT instances initialization #290
Description of problem
Connection to BT is being established every time when object-child of IssueTrackerType is being created. For JIRA specifically, it means that every time new jira.JIRA object is being created and new connection is being established. Taking into account possibility of multiple requests it makes sense to extract establishing the connection to some kind of singleton or classmethod.
Actually, from the first sight I would say that all methods from IssueTrackerType should be static, so calls should look like:
Component (web, API, etc)
For the record you will have to keep a reference to the