-
Notifications
You must be signed in to change notification settings - Fork 23
Event Insights
Zachary Orr edited this page Feb 16, 2020
·
3 revisions
The Blue Alliance surfaces Event stats under Event -> Stats -> EventStats
. The Blue Alliance for iOS usually mirrors what The Blue Alliance does on web.
Example: 2020 Event Insights PR
To support Event Insights for a new year -
- Create a new
EventStatsConfigurator
subclass for the given year. - Confirm the values to display from web and their corresponding API field name. We don't surface the same information web does. For instance - web might show the auto, teleop, and overall averages for a given metric. On mobile, we usually only surface the overall number in those cases. See the
/event/{event_key}/insights
endpoint to map rows to data. - Fill in the
NSDiffableDataSourceSnapshot
with data for the given year. Use other years as a template. Helper methods have been written for common use cases, such as showing a High Score match. - Add a new case for the new year in the
EventStatsViewController
initializer to use the newEventStatsConfigurator
for the given year.