Skip to content

Conversation

gnclmorais
Copy link
Contributor

@gnclmorais gnclmorais commented Oct 8, 2025

Previously, we were fetching and making it selectable all of the existing members, which actually slowed down the whole page when trying to edit organisers.

Previously, we were fetching and making it selectable all of the
existing members, which actually slowed down the whole page.
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the workshop edit page by limiting the organiser selection dropdown to only show chapter organisers instead of all members. This change improves page performance by reducing the number of options in the dropdown.

  • Changed the collection source from Member.all to @workshop.chapter.organisers
  • Updated the selected value extraction to use pluck(:id) instead of map(&:id)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <[email protected]>
@gnclmorais gnclmorais requested a review from Copilot October 9, 2025 13:37
Copilot

This comment was marked as resolved.

Copy link
Contributor

@KimberleyCook KimberleyCook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thaaaanks 🎉

@matyikriszta matyikriszta merged commit 59ff009 into codebar:master Oct 12, 2025
2 checks passed
@gnclmorais gnclmorais deleted the fetch-only-chapter-organisers-on-workshop-edit-page branch October 13, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants