You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored for improved timing -- using stats from server profile
**Overview**
Enhances the user profile data retrieval process by incorporating newly
stored statistics (`pipeline_range`, `total_trips`, `labeled_trips`, and
`last_call`) into the existing `with` block. These statistics are now
seamlessly integrated into the `user` dictionary, providing a more
comprehensive set of user metrics for further analysis and dashboard
visualization.
1. **Enhanced Profile Data Retrieval**
- **Existing Functionality**:
- The `with` block previously retrieved basic profile information such as `platform`, `manufacturer`, `app_version`, `os_version`, and `phone_lang` from the database and assigned them to the `user` dictionary.
- **New Enhancements**:
- **Pipeline Range**:
- Retrieved `pipeline_range` data, including `start_ts` and `end_ts`, to understand the timeframe of the user's activity pipeline.
- **Trip Counts**:
- Extracted `total_trips` and `labeled_trips` to provide insights into the user's trip data and the extent of trip labeling.
- **Last API Call Timestamp**:
- Obtained `last_call` to track the most recent API interaction by the user.
- **Optional Formatting**:
- Included a formatted version of the `last_call` timestamp for better readability in reports and dashboards.
2. **Updated `with` Block Structure**
- **Integration of New Statistics**:
- The `with` block now not only fetches and assigns basic profile attributes but also retrieves and assigns the newly stored statistics from the database.
Additional commits squashed into this:
- Accidentally removed the process loop
- Simplified else block for user data
- Merge
- Addressed comment, modified else if block
- Updated COLS to be uniform like the other constants. Updated ADD USER STATS
0 commit comments