-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/backend/deep user based analytics #355
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… improved performance
… improved performance Refactor Attendance struct field names for consistency Refactor Attendance struct field names for consistency Refactor ToggleOnsite function to use switch statement for clarity Preallocate result slices in analytics functions
…gregation pipeline
…alculating average in-office hours by weekday
…stead of AverageInOfficeHoursByWeekday
…erformance using aggregation pipeline
… if both time range and filter are present
…ilter in GroupOfficeHoursByDay
… TestBusiestHoursByWeekday and update the function call in the test case
…TimesByWeekday function
…ions to use GetResultsAndCount helper
waveyboym
added
type: documentation
Improvements or additions to documentation
type: feature
A new feature
type: fix
Introduces a fix for a previous issue
type: testing
This affects one or more tests
labels
Sep 9, 2024
waveyboym
added
For: api
This is mainly for the api
For: backend
This is mainly for the backend code
priority: medium
This does/did not need to be addressed soon but should have plans in place to be addressed
status: pending
This is awaiting approval
effort: 5
This may require/required hours of work
For: deployment
This will affect our deployed system
labels
Sep 9, 2024
…to feat/backend/deep-user-based-analytics
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #355 +/- ##
===========================================
+ Coverage 88.53% 94.01% +5.48%
===========================================
Files 53 11 -42
Lines 3392 3006 -386
Branches 84 0 -84
===========================================
- Hits 3003 2826 -177
+ Misses 303 136 -167
+ Partials 86 44 -42 ☔ View full report in Codecov by Sentry. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
effort: 5
This may require/required hours of work
For: api
This is mainly for the api
For: backend
This is mainly for the backend code
For: deployment
This will affect our deployed system
priority: medium
This does/did not need to be addressed soon but should have plans in place to be addressed
status: pending
This is awaiting approval
type: documentation
Improvements or additions to documentation
type: feature
A new feature
type: fix
Introduces a fix for a previous issue
type: testing
This affects one or more tests
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pr is a revamp and refactor is analytics based operations. We go from processing and crunching the data on the backend to doing the operations on the database, thereby hopefully introducing major performance improvements for big data computation. We use mongo db's aggregation functions for these operations.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: