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

[front] - fix(analytics): workspace analytics computation #11515

Merged
merged 2 commits into from
Mar 21, 2025

Conversation

JulesBelveze
Copy link
Contributor

Description

This PR aims at fixing the active users computation that is being displayed in the workspace analytics.

References:

Risk

Low

Deploy Plan

Deploy front

…query

 - Simplified and optimized the query for calculating active user counts and growth percentages
 - Replaced multiple common table expressions with a more efficient single CTE approach
 - Removed unnecessary group by and having clauses to streamline the query execution
 - Improved performance by reducing the complexity of conditional counting within the query
…percentage calculation

 - Replace hardcoded workspace identifier with dynamic parameter binding in SQL query for analytics
 - Multiply month-over-month and week-over-week growth percentages by 100 for accurate representation
@JulesBelveze JulesBelveze merged commit 189b218 into main Mar 21, 2025
6 checks passed
@JulesBelveze JulesBelveze deleted the fix/workspace-analytics branch March 21, 2025 09:11
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.

2 participants