Skip to content
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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ruilopesm
Copy link
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 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
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