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

Add release counts for labels #78

Merged
merged 2 commits into from May 21, 2018
Merged

Add release counts for labels #78

merged 2 commits into from May 21, 2018

Conversation

samj1912
Copy link
Contributor

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

Solution

Action

@@ -238,6 +238,7 @@

F("code", "label_code"),
F("comment", "comment"),
F("releases", "releases.id", transformfunc=len, trigger=False),
Copy link
Member

Choose a reason for hiding this comment

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

Is that basically getting the entire set of results from the database server and just calling len() on it? If so, would it be possible to just add support for using count(*) in the query, or does it need the actual rows for some other purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, I was leaving it as a possible improvement since I just wanted to test initially if it was worth it.

@samj1912
Copy link
Contributor Author

@mwiencek Done, The code is partly based on #79 so we will need to rebase once we merge.

mayhem
mayhem previously approved these changes May 21, 2018
Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

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

⚡️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants