-
Notifications
You must be signed in to change notification settings - Fork 42
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
User blocker #201
User blocker #201
Conversation
can the two features be in separate pull requests? it could potentially make the diff lesser and easier to view on github. |
You can see that there are views implementation in the second commit while in fact it should belong to the first one. It was pain to seperate them. |
I will try to review more when I have some more time today maybe, I have only viewed close to 15 files only 😩 as of now, which also include the rst one 😆 that i just skipped. but from what i could see, this think you haven't made the change to pass an extra variable from the templates to check whether pretty similar hack to the one that we use for Comment/comment/templates/comment/static.html Lines 3 to 10 in 0e22c13
|
@abhiabhi94, |
The situation is very bad in India, as you might be aware from news. Some of my family members had tested positive for coronavirus in the past month, but they are stable now. I had a freelancing/part-time job as a python instructor at a place, which is also shut as of now. The most scary thing is the death numbers. The actual numbers could be more than 10 times in most states than the ones you see in news. The governments are hiding actual numbers, but it is sort of an open secret here. Each day, we get to hear about new deaths of nearby people or someone that we might have known. That said, how are you and your family there? What's the situation like there? |
As far as i can see, i think the same permission group used for moderation is also used for blocking. in this case, we will probably also have to edit the |
I hope this pandemic situation will be under control soon. Stay safe and healthy!
We are fine and the situation seems to be under control here since the country is still locked down. |
I am not sure fully understood but I added error log in JS file whenever an error thrown. |
so, now the error will directly be shown in the console. What i thought would be better to show these only when in developoment i.e. |
@abhiabhi94, |
This will add the required models/managers and utils to allow comment's moderator to block users or emails of commenting or reaction with the comments. The view implementation along with the API are implemented in the next commit.
This will use status code 403 for access deneid in comment mixins and handle it in JS functions. Implement blocking views and the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Promise me not to make so much of changes in one pull request unless it is absolutely necessary 😄 .
I am sorry, couldn't really split it. BTW the API list view is not paginated and we need to open an issue for it. |
Maybe we can keep the issue open to see if there are requirements for it to the people. If we have positive feedback, it can be implemented. |
closes #143
closes #190