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

Allow supervisors to see *all* volunteers (including those without learning hours) #6066

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

Conversation

lenikadali
Copy link

@lenikadali lenikadali commented Oct 3, 2024

What github issue is this PR for, if any?

Resolves #5979

What changed, and why?

We need to add a new query that shows all volunteers. The current implementation only shows volunteers with hours entered, and not volunteers who've been added but do not have learning hours entered.

How is this tested? (please write tests!) 💖💪

This is a work in progress but should we settle on the implementation, there should be tests in spec/models/supervisor_volunteer.rb for the newly added scope.

Note: if you see a flake in your test build in github actions, please post in slack #casa "Flaky test: " :) 💪
Note: We love capybara tests! If you are writing both haml/js and ruby, please try to test your work with tests at every level including system tests like https://github.com/rubyforgood/casa/tree/main/spec/system

Screenshots please :)

None yet.

Feelings gif (optional)

alt text

Added a new scope to SupervisorVolunteer so that we can return
the learning hours of *all* volunteers (including those without
hours entered)

Also added the supervisor_volunteer variable to the templates
so that we use it instead of @learning_hour
@github-actions github-actions bot added ruby Pull requests that update Ruby code erb labels Oct 3, 2024
@lenikadali lenikadali changed the title Add scope, variable to templates Allow supervisors to see *all* volunteers (including those without learning hours) Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erb ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Cannot access Learning Hours Report for volunteers as Supervisor
1 participant