-
Notifications
You must be signed in to change notification settings - Fork 2
feat(affected-users): added chart data #616
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
base: master
Are you sure you want to change the base?
Changes from 4 commits
5949788
9fd3d25
cd49dd4
34cbcf6
ae92c3a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,6 +90,21 @@ module.exports = { | |
| return factory.getEventDailyChart(groupHash, days, timezoneOffset); | ||
| }, | ||
|
|
||
| /** | ||
| * Return chart data for affected users of target event occured in last few days | ||
|
||
| * | ||
| * @param {string} projectId - event's project | ||
| * @param {string} groupHash - event's groupHash | ||
| * @param {number} days - how many days we need to fetch for displaying in a charts | ||
|
||
| * @param {number} timezoneOffset - user's local timezone offset in minutes | ||
| * @returns {Promise<ProjectChartItem[]>} | ||
| */ | ||
| async affectedUsersChartData({ projectId, groupHash }, { days, timezoneOffset }, context) { | ||
| const factory = getEventsFactory(context, projectId); | ||
|
|
||
| return factory.getEventDailyAffectedUsersChart(groupHash, days, timezoneOffset); | ||
| }, | ||
|
|
||
| /** | ||
| * Return AI suggestion for the event | ||
| * | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.