DevOps Adoption MVC (backend)
This is the data collection backend implementation issue for #247112 (closed)
Proposal
We already have models for storing segments and the boolean flags (collected data), however the data collection part is missing.
- Create a service class that collects the boolean flags (and stores it in the Snapshot model) for a time period (30) day for a given Segment.
- Snapshot model definition with the boolean flags: !47388 (diffs)
- The service should use group level finders to collect info about the following data points: #247112 (comment 425512083)
- Example calculation for merge requests opened:
merge_request_opened = MergeRequestsFinder.new(group: Segment.groups).execute.last.created_at < 30.days.ago
- Define a cron job (monthly) which runs the service and persists the data (in a snapshot)
Edited by Adam Hegyi