skills icon indicating copy to clipboard operation
skills copied to clipboard

Team Skill Tracking over time read snapshot data

Open Miguel7373 opened this issue 9 months ago • 0 comments

Introduction

Now that paper_trail is configured to save the history of skill-related data, we need to implement the functionality to get and display this historical data. The primary goal is to show the state of team skills for specific pastime points (e.g., weekly or monthly).

Requirements:

Controller Action:
  • Create a controller action that accepts department_id, skill_id, and a timestamp (or date) as input parameters.
Get Data:
  • Query paper_trail versions (e.g., using version_at or similar) to find the state of skill records (e.g., UserSkill model) as
    they existed at the specified timestamp.
  • Filter these historical records based on the provided department_id (likely via user association) and skill_id.
Data Processing:
  • Group the filtered, historical records by the skill_level attribute they had at that timestamp.

Documentation

paper_trail README

To-Do

  • [ ] Create Controller
  • [ ] Get the historical filtered by the department_id and the skill.
  • [ ] Split data based on skill level
  • [ ] Tests

Miguel7373 avatar Apr 04 '25 13:04 Miguel7373