Skip to content

feat: make it possible to get all the mentors related to an event: went, didn't go#191

Open
ruilopesm wants to merge 1 commit into
mainfrom
rl/mentors-attendance
Open

feat: make it possible to get all the mentors related to an event: went, didn't go#191
ruilopesm wants to merge 1 commit into
mainfrom
rl/mentors-attendance

Conversation

@ruilopesm
Copy link
Copy Markdown
Member

@ruilopesm ruilopesm commented Aug 12, 2023

I've also migrated, to Phoenix 1.7, all the controllers/views I had to work on/with.

@ruilopesm ruilopesm self-assigned this Aug 12, 2023
@ruilopesm ruilopesm changed the title Make it possible to get all the mentors related to an event: went, didn't go feat: make it possible to get all the mentors related to an event: went, didn't go Aug 18, 2023
Comment thread lib/bokken/events.ex
Comment on lines +853 to +856
Accounts.list_users()
|> Enum.filter(fn user ->
user.active and user.verified and user.role in [:guardian, :mentor]
end)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be part of the query and not filtered in memory 💡

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.

Make it possible to get all the mentors related to a session: went, didn't go

2 participants