-
Notifications
You must be signed in to change notification settings - Fork 76
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
Warn if draft creator/submitter is blocked #106
Comments
@enterprisey Can I work in this issue ? |
Hey @enterprisey and @AntiCompositeNumber , I'd love to work on this issue |
Hey @enterprisey, if this issue is still open I would like to work on it. |
hey @enterprisey can i be assigned in this issue? i would love to work with it |
@codeswithroh @Yash-g17 @vartikaSaxena sorry for the late reply. if you're still interested in working on this issue, please add a comment here saying that. If two or more people are interested, the one who posted the original comment earlier has precedence. Or if you want to work together I'd be happy with that too. |
@enterprisey I'm still interested |
@Yash-g17 hey can we work together? |
@abarsha Yeah sure , but I'm not sure if this task requires two people , @enterprisey can you please guide us on this |
@Yash-g17 well even if this task needs one person other one can have experience and learn things which all we need. I guess it will beneficial for both of us |
yeah, two people will be fine. there are many ways it can be split up. one way we can split it up is one person does the user interface (the message "this user is blocked", and it should also show the block reason), and the other person does the API call. If that sounds good let me know. there are other ways it can be split up, too. we can coordinate on Zulip if you both would like. |
yeah. for this PR you will add a new function checkIsSubmitterBlocked() inside getSubmissionWarnings(), which is in src/modules.submissions.js. |
@enterprisey hey is there any deadline? |
Nope :) |
@enterprisey I'm done with my part |
@Yash-g17 cool. Can you post your code in this discussion if it's not too long? paul-111 also finished their part and I've asked them to post it here as well. You all are making great progress. |
@enterprisey I'm sorry i was away for a while , anyways here's the code |
hey @Yash-g17 if i merge both of our code does this look okey? function checkIfSubmitterIsBlocked(userName){
}``` |
I think we should wait for @enterprisey for their opinion |
yup okey |
Yes, that looks pretty good! Try testing the code. I have prepared https://test.wikipedia.org/wiki/Draft:AFCH_Issue_106, which is a draft created by a blocked user. If you put the checkIfSubmitterIsBlocked function above into the script, and also add |
hey ! I see no assignees to this project . I would love to contribute to the project . Since I'm quite new here , it would be really helpful if you can guide whenever necessary . @enterprisey |
If the person who created a draft has been blocked, it would be useful for AFCH to warn reviewers like it does for a lack of {{reflist}} or a deleted page. Users might be blocked for sockpuppetry, spam, paid editing, or other reasons that would necessitate a closer review.
The text was updated successfully, but these errors were encountered: