-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:restored removed article to available articles #6060
base: master
Are you sure you want to change the base?
fix:restored removed article to available articles #6060
Conversation
In this PR, I have added Ruby test cases for the The scenarios covered are as follows:
|
@ragesoss the test is passing locally in my system |
…ssigned-articles-5549
@ragesoss, I'm not entirely sure, but the multiwiki_assignment_spec.rb test seems to be failing after the latest commit merge. Additionally, the account_requests_spec.rb test is failing both on my local setup and in the master branch. However, this failure appears to be unrelated to the changes I made. |
@shishiro26 yes, i'm not sure why it started failing, but i'm going to look into it. |
Does this implementation differentiate articles that started as Available Articles versus ones that the student chose via title without starting as an Available Article? I think we need this to only apply for ones that started as Available Articles. |
I’m not sure if you’re referring to this one, sir User: If so, then yes, it doesn’t differentiate between the two. It removes both from the assigned ones and keeps them in the available articles, sir. |
Sir, I would like to know if there is any user-specific association, such as a user_id or something similar, that tracks whether a particular person created or added an article. Is there an existing reference to identify the user who created or added the article? From the logs I’ve seen, there are references to users, but they seem to be related to assignments rather than article creation. If such an association doesn’t currently exist, would it be possible for me to add a user_id field to the articles table and link it to the user who created or added the article? |
I think you could use |
Sir, I believe there is no change in the flags field, as it remains NULL in both cases in the SQL database. There appears to be no update to Assignment.flags. |
Right, you would need to implement that. |
okay, sir! 😄 |
Could you please review this, sir? This is just a rough implementation. If this method looks fine, the |
I will plan to review this next week. |
Okay sir |
NOTE: Please review the pull request process before opening your first PR: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/CONTRIBUTING.md#pull-request-process
What this PR does
This PR restores both self-assigned and admin-assigned articles back to the pool of available articles.
I have written a test case for the controller to ensure that the changes work as expected.
Screenshots
After:
https://github.com/user-attachments/assets/db77ecb3-734d-4693-94d2-cfd235297c90
Open questions and concerns
With this change, when removing an article, a dialog appears with the message: "Are you sure you want to delete this program?"
#5549