WikiEduDashboard icon indicating copy to clipboard operation
WikiEduDashboard copied to clipboard

Restore removed self-assigned articles to the pool of available articles

Open Ibom99 opened this issue 1 year ago • 7 comments

Current Behavior:

At the moment, the programs and event dashboard doesn't move self-assigned articles back to the pool of available articles when remove is selected, it deletes the article completely from the program.

Desired Behavior:

The self-assigned articles when removed should return to the list of available articles it should not be deleted from the program entirely.

Additional context:

  1. Self-Assigned Article

Screenshot (70)

  1. After selecting remove

Screenshot (71)

  1. Article not in the list of the available articles Screenshot (72)

Ibom99 avatar Dec 10 '23 21:12 Ibom99

where can i find this file.

chinmay7016 avatar Dec 12 '23 05:12 chinmay7016

This feature would touch a lot of files, mostly involving the Assignment model, along with related controllers and front-end components.

ragesoss avatar Dec 12 '23 16:12 ragesoss

@ragesoss can I take this issue up?

fillingtothemomo avatar Jan 15 '24 10:01 fillingtothemomo

@fillingtothemomo yes, but I think this is a fairly complicated issue that, and it may take a number of iterations to figure out exactly what the implementation should look like.

ragesoss avatar Jan 16 '24 17:01 ragesoss

@ragesoss Can you suggest some newcomer friendly issues for me to work on?

fillingtothemomo avatar Jan 16 '24 23:01 fillingtothemomo

@fillingtothemomo I think you should give #5489 a try. It looks like the other person isn't active on it anymore.

ragesoss avatar Jan 17 '24 16:01 ragesoss

A few clarifications of this issue:

  1. This should account for the possibility that the removed article is already present as an Available Article (and should simply remove the article, in that case).
  2. This new behavior should only apply to courses that are using Available Articles in the first place, but we don't actually have a good way to detect that option right now. Basically, we want this new behavior only for a course where the instructor chose the 'Instructor prepares a list' option in the assignment wizard. I think a good way to address this would be to add choose_articles_from_list as a tag in the researchwrite/wizard.yml file so that the courses where this should apply will have the choose_articles_from_list Tag. Then the behavior can be controlled on the backend in the controller by determining whether the course has that tag.

ragesoss avatar Mar 19 '24 21:03 ragesoss