Skip to content

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 -

  1. Create a new EventStatsConfigurator subclass for the given year.
  2. 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.
  3. 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.
  4. Add a new case for the new year in the EventStatsViewController initializer to use the new EventStatsConfigurator for the given year.

Clone this wiki locally