Closed AlexSim93 closed 2 days ago
This pull request includes several changes across multiple files, primarily focusing on analytics and data handling. The sendDiscussionUsage
function has been removed, along with its associated file, indicating a shift in how discussion data is tracked. Modifications have been made to enhance the sendActionError
and sendActionRun
functions by adding new properties for error tracking. Additionally, new functions for processing action times and generating activity time graphs have been introduced, along with updates to the Collection
type to accommodate these changes.
File Path | Change Summary |
---|---|
src/analytics/index.ts | Removed export for sendDiscussionUsage . |
src/analytics/sendActionError.ts | Updated sendActionError to include SHOW_CORRELATION_GRAPHS and SHOW_ACTIVITY_TIME_GRAPHS in tracking. |
src/analytics/sendActionRun.ts | Added SHOW_CORRELATION_GRAPHS and SHOW_ACTIVITY_TIME_GRAPHS to tracking in sendActionRun . |
src/analytics/sendDiscussionUsage.ts | Deleted file containing the sendDiscussionUsage function. |
src/converters/collectData.ts | Added call to prepareActionsTime in collectData . |
src/converters/types.ts | Added actionsTime property to the Collection type. |
src/converters/utils/index.ts | Added export for prepareActionsTime . |
src/converters/utils/prepareActionsTime.ts | Introduced prepareActionsTime function for processing pull request data and events. |
src/createOutput.ts | Added functionality to generate activity time graphs in createOutput . |
src/index.ts | Removed call to sendDiscussionUsage from main function. |
src/view/utils/createActivityTimeMarkdown.ts | Introduced createActivityTimeMarkdown function for generating markdown for activity time data. |
src/view/utils/createActivityXYChart.ts | Introduced createActivityXYChart function for generating XY charts of user activity. |
src/view/utils/createConfigParamsCode.ts | Added "SHOW_ACTIVITY_TIME_GRAPHS" parameter to configuration parameters. |
Collection
type in src/converters/types.ts
, which may relate to the removal of the sendDiscussionUsage
function in the main PR, as both involve analytics and data tracking structures.🐰 In the fields where data flows,
A function's gone, but new life grows.
With graphs and charts, we track the time,
In every action, a reason, a rhyme.
So hop along, let metrics gleam,
In our analytics, we chase the dream! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Pull Request
Description
Added a new graph that displays user activity throughout the day.
Type of Change
How Has This Been Tested?
Run action for different users and periods.
Checklist:
Summary by CodeRabbit
Release Notes
New Features
Improvements
Bug Fixes
sendDiscussionUsage
function, streamlining analytics tracking.Documentation