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

Fix user tasks stats #5068

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Fix user tasks stats #5068

merged 1 commit into from
Apr 21, 2022

Conversation

Aadesh-Baral
Copy link
Contributor

@Aadesh-Baral Aadesh-Baral commented Apr 5, 2022

Currently, user task stats is being calculated from the task_history table.
This PR fixes #3895 by adding a filter to count distinct rows by project_id, task_id, and action_text so that the same action on a task of the project cannot be counted more than once while calculating user tasks stats.

@Aadesh-Baral Aadesh-Baral linked an issue Apr 5, 2022 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Apr 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Aadesh-Baral Aadesh-Baral merged commit 58f27f5 into develop Apr 21, 2022
@Aadesh-Baral Aadesh-Baral deleted the hotfix/3895-fix-user-stats branch April 21, 2022 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Deployed to production
Development

Successfully merging this pull request may close these issues.

User tasks stats is returning wrong values
1 participant