Skip to content

Conversation

@grahamalama
Copy link
Contributor

@grahamalama grahamalama commented Dec 11, 2023

From the commit message for fd46133:

In v6.3.6, we bumped atlassian-python-api from 3.41.4. That bump included a PR which changed the way the library fetched projects. This somehow affected our project when we fetched visible projects and issue types in the heartbeat. We never fully determined the root cause, but the while loop in the linked PR was suspect.

In this commit, we make further improvements to the code that's involved in the heartbeat to make it more efficient.

Note that one of the tradeoffs we made for now was hardcoding the maximum number of projects that may be configured at 50. This is due to the way we fetch issue types by project. This is something that we can fix in the future, but is not a problem that we need to solve for now since we only have 26 projects configured.

@grahamalama grahamalama requested a review from a team as a code owner December 11, 2023 18:29
The `spy` method this package provides is super useful
@grahamalama grahamalama force-pushed the more-efficent-heartbeat-code branch from 7c99daf to 7a4591a Compare December 11, 2023 18:30
@grahamalama grahamalama changed the title More efficent heartbeat code Change method for fetching visible projects and issue types in __heartbeat__ Dec 11, 2023
@grahamalama grahamalama force-pushed the more-efficent-heartbeat-code branch 2 times, most recently from 31c7605 to 0d08b75 Compare December 11, 2023 18:36
In v6.3.6, we bumped atlassian-python-api from 3.41.4. That bump
included a [PR](atlassian-api/atlassian-python-api#1270)
which changed the way library fetched projects. This somehow affected
our project when we fetched visible projects and issue types in the
heartbeat. We never fully determined the root cause, but the while loop
in the linked PR was suspect.

In this commit, we make further improvements to the code that's involved
in the heartbeat to make it more efficent.

Note that one of the tradeoffs we made for now was hardcoding the
maximum number of projects that may be configured at 50. This is due to
the way we fetch issue types by project. This is something that we can
fix in the future, but is not a problem that we need to solve for now
since we only have 26 project configured.
@grahamalama grahamalama force-pushed the more-efficent-heartbeat-code branch from 0d08b75 to 415bed8 Compare December 11, 2023 18:38
@grahamalama grahamalama added the bug Something isn't working label Dec 11, 2023
@grahamalama grahamalama merged commit e960885 into main Dec 11, 2023
@grahamalama grahamalama deleted the more-efficent-heartbeat-code branch December 11, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants