Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignment negative fix #714

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

cdolfi
Copy link
Collaborator

@cdolfi cdolfi commented May 10, 2024

This prevents a negative assignment plot, closes #708

@cdolfi cdolfi requested a review from JamesKunstle May 10, 2024 20:28
assign_value = df_assigned.shape[0] - df_unassign.shape[0]

# prevent negative assignments
assign_value = 0 if assign_value < 0 else assign_value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can this be negative in the given range?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ill be honest its been a while since I implemented this/ I dont think I fully knew at the time either. I think it is if there are assignments before the github apis start point for really large repos (like rust in the example) and then they are unassignments of those it ends up negative

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, at minimum this clip the value which is feature-correct lol

@JamesKunstle JamesKunstle merged commit b7be62c into oss-aspen:dev Jun 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Check into why pull request assignments could be 0
2 participants