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

frontend: provide statistics on how many users submitted at least one build in past month #3401

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

xsuchy
Copy link
Member

@xsuchy xsuchy commented Sep 4, 2024

Fixes: #3315

"""
result = db.session.query(models.Build.user_id)\
.join(models.BuildChroot)\
.filter(models.BuildChroot.ended_on > start)\
Copy link
Member

Choose a reason for hiding this comment

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

This filter seems redundant. To check that the user is active, it is enough to monitor the "started_on" field.

Copy link
Member Author

Choose a reason for hiding this comment

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

True for the params we are passing. But not true for any time period.
And I basically steal this from the fuction above.

@xsuchy
Copy link
Member Author

xsuchy commented Sep 5, 2024

The failing lint is on file that I did not touch. I am going to ignore it.

@praiskup
Copy link
Member

praiskup commented Sep 6, 2024

The failing lint is on file that I did not touch. I am going to ignore it.

Yes, please ignore. These files have been modified recently (the warnings disappeared) in the main branch, and since the linter doesn't rebase - your latest commit still contains those (the diff is done against the old and new code).

@praiskup
Copy link
Member

praiskup commented Sep 6, 2024

I believe I finally fixed the linter, seems green now.

@praiskup praiskup merged commit 11cdd66 into fedora-copr:main Sep 6, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Statistic showing how many active users we have
2 participants