-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improve post mgmt #372
Improve post mgmt #372
Conversation
66f36f9
to
707fc93
Compare
Co-Authored-By: Sámuel Fekete <[email protected]> Co-Authored-By: DannySS123 <[email protected]> Co-Authored-By: Beni <[email protected]> Co-Authored-By: Bálint Berente <[email protected]>
707fc93
to
bab9455
Compare
app/controllers/posts_controller.rb
Outdated
@group_post_types = {} | ||
@group.post_types.each { |post_type| @group_post_types[post_type.id] = post_type } |
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.
I think this could be a reduce
app/controllers/posts_controller.rb
Outdated
@post_type_ids = @group.post_types.map(&:id) | ||
@post_type_ids.delete(PostType::LEADER_POST_ID) |
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.
Maybe we can express this as a select after the map to avoid mutations.
app/controllers/posts_controller.rb
Outdated
@memberships = @group.memberships.active.includes(:posts, :user) | ||
@memberships = @memberships.sort { |a, b| hu_compare(a.user.full_name, b.user.full_name) } |
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.
can the sort be chained after the previous call?
Signed-off-by: SepsiLaszlo <[email protected]> fix Signed-off-by: SepsiLaszlo <[email protected]>
Signed-off-by: SepsiLaszlo <[email protected]>
463ab2c
to
79eee2a
Compare
@OmTheTurtle Thank you for the multiple greate comments on this PR! 🎆 |
What's new?
We implemented a new post management system to enable group leaders and evaluation helpers to update multiple posts at one page.
Click on the new
Posztok kezelése
button on your group's page.This will open the post management page, where all meberships and posts are listed in a table view.
Just click on the post in the row of the selected user to perform the action indicated between the parentheses.
We hope this makes administrating posts faster!
Todos: