-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Feature moderator take care of #1627
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
felipecalvo
commented
Jun 10, 2021
felipecalvo
force-pushed
the
feature-moderator-ill-do-it
branch
from
June 10, 2021 15:50
4b57d33
to
0c98543
Compare
julian-berbel
approved these changes
Jun 10, 2021
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.
Looks good! ❤️
A moderator uses /discussion/:id/responsible to post their intention; the autogenerated responsible_*_discussion_path routes (with * being exercise, chapter or lesson) are not needed for this use case. I don't know why they're needed for subscription or upvotes either, but I don't want to risk breaking backwards compatibility as those features are not tested for some reason.
felipecalvo
force-pushed
the
feature-moderator-ill-do-it
branch
from
June 10, 2021 19:34
0c98543
to
344b832
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 Goal
Adds the necessary buttons, texts and locales for letting a moderator take care of a discussion. Does not show last moderator access anymore.
📝 Details
📸 Screenshots
I'll take care of it
buttonConfirmation toast when clicking. Button changes to `I won't take care of it'
If another moderator beats you to it, there's also an error toast
You can see who's taking care of it on the discussion view
And also on the discussion index
Requires mumuki/mumuki-domain#218
🔙 Backwards compatibility
We're no longer showing a moderator's last access to a discussion, replacing it with who's taking care of it instead.
🔜 Future work
There's an unlikely to occur bug which can be solved by refreshing: #1626