gtech-mulearn / mulearn

µLearn is a synergic philosophy of education, with a culture of mutual learning through micro groups of peers. µLearn is here to assist you in breaking through the echo chambers and free you from the shackles that have you grounded.
https://mulearn.org/
39 stars 74 forks source link

mu-dev- Task Management - Tasks - Task deletion doesn't reduce the karma points availed for it #1526

Closed vidhya-vjkumar closed 1 month ago

vidhya-vjkumar commented 1 month ago

Describe your issue

When a task is submitted on discord, the karma points are awarded. But if the task is deleted, the total karma points don't decrease. The task completion is removed from karma history, mu voyage and the heatmap. But total karma doesn’t decrease. The same issue with deleting task type. When the task type is deleted, the corresponding tasks get deleted but the awarded karma points don't get deducted from the total karma. Deleting the task submission message on discord after the task has been deleted also doesn’t decrease the karma points awarded for the task

Steps to reproduce

  1. Submit a task on discord and avail karma points
  2. Go to https://dev-app-mulearn.vercel.app/dashboard/tasks
  3. Delete the task that was submitted on discord
  4. Go to profile and check the karma points and karma history

What was the expected result?

I expected the total karma points to go down when a task for which karma points were availed is deleted.

Put here any screenshots or videos (optional)

Screenshot (398) Screenshot (399)

https://github.com/gtech-mulearn/mulearn/assets/106170027/4720435d-93e2-41a6-b264-d4e5807bbb13

Would you like to work on this issue?

None