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.
Further details
- @dimitrieh opened a similar issue https://gitlab.com/gitlab-org/gitlab-ce/issues/24244 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.
Considerations
Context by @yorickpeterse in https://gitlab.com/gitlab-org/gitlab-ce/issues/24244#note_60995986:
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.
Proposal
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)
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.