WikiEduDashboard icon indicating copy to clipboard operation
WikiEduDashboard copied to clipboard

IndividualStatisticsPresenter and user profile page rely on Revisions table

Open ragesoss opened this issue 1 year ago • 4 comments

We are deprecating the Revisions table and have removed old revisions from the production databases. However, the user profile pages — particularly, the feature for showing 'contributions as a student' — still relies on data from this table.

We need to either update the way this works so that it does not rely on the Revisions table (which may mean displaying a more limited amount of stats) or just remove this feature entirely.

ragesoss avatar Oct 11 '24 18:10 ragesoss

I will work on this

osujipius avatar Oct 11 '24 20:10 osujipius

@ragesoss I would also like to work on this. After looking through the IndividualStatisticsPresenter query logic responsible for extracting the data, I was thinking if it was okay for the statistics section of the dashboard to now focus on articles created by a student rather than those edited (i.e. revisions).

EmmanuelEmp avatar Oct 12 '24 17:10 EmmanuelEmp

@ragesoss Sir, for removing revisions table dependency there were two approaches:

Strategy 1: Create New Contribution Tracking

  • Create a focused StudentContribution model for essential metrics only.
  • Track:
    • Characters
    • References
    • Article creation
    • Views
  • Update statistics presenter to use the new model.
  • Migrate critical historical data.

Strategy 2: Remove Feature

  • Remove the StudentStats component.
  • Remove IndividualStatisticsPresenter.
  • Clean up UI/routes.

Conclusion

  • Strategy 1 if contribution tracking matters for program assessment.
  • Strategy 2 if the feature isn't critical for core functionality.

Kindly share your thoughts on which approach would be best to follow.

omChauhanDev avatar Jan 18 '25 12:01 omChauhanDev

@omChauhanDev I think Strategy 2 is the best option at this point. We can look into an efficient way to replace it with similar functionality later on, perhaps, but it's not critical.

ragesoss avatar Feb 12 '25 22:02 ragesoss

@ragesoss Seems this issue is still pending, I'll start working on it. :)

lupamo avatar Apr 03 '25 16:04 lupamo

@lupamo I think @gabina is already working on this.

ragesoss avatar Apr 04 '25 17:04 ragesoss

@lupamo I think @gabina is already working on this.

That's fine, let me find another one.

lupamo avatar Apr 05 '25 03:04 lupamo

closed with #6278

ragesoss avatar Apr 07 '25 16:04 ragesoss