User profile: Show more than last 12 months contributions
Problem to solve
Right now, you can access your contributions of the last 12 months in the contribution graph on your profile page. This means that any activity older than the
last 365 days is not shown anymore. We should extend this to allow to go back further than the last year, so you get a full overview of your work.
- @dimitrieh opened a similar issue #24244 (closed) two years ago.
- Right now, we actually prune event records older than 12 months via this worker, https://gitlab.com/gitlab-org/gitlab-ce/blob/1fbda39c8dd8774d13832d5492e800b66ba90d6d/app/workers/prune_old_events_worker.rb.
We prune old events for two reasons:
- The contribution calendar only displays the last 12 months of data
- Not pruning data will result in this table growing forever, and the table is already 33 GB in size. Assuming linear/even growth that means for 5 years of data we'd need about 170 GB. Since events don't grow linear (I expect them to grow exponentially as GitLab.com becomes more popular) we're probably looking at much more space being necessary.
Let's add a solution that allows accessing activity events of previous years, going back all the way to the day your GitLab account was created. This will allow us to improve the profile page further in future.
What does success look like, and how can we measure that?
(If no way to measure success, link to an issue that will implement a way to measure this)