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

Bug: Admins/Supervisors Learning Hours Tab - Clicking on Volunteer name not routing to Volunteer's Learning Hours Page #5532

Closed
sarvaiyanidhi opened this issue Feb 14, 2024 · 5 comments · Fixed by #5556
Assignees

Comments

@sarvaiyanidhi
Copy link
Contributor

Impacted User Types

  • supervisors?
  • admins?

Current Behavior

As per recent changes implemented in issue #5474 When the Admin or Supervisor clicks on the volunteer's name in the "Learning Hours" page, they are routed to "Learning Hour" show page but by passing volunteer id to find learning hour.

As a result system is throwing below error as it is not able to find Learning Hour for given Volunteer id

error

Expected Behavior

When the Admin or Supervisor clicks on the volunteer's name in "Learning Hours", they should be routed to that Volunteer's Learning Hours page so they see what types of learnings the volunteer has done.

How to Replicate

ex:

  • Log in as a supervisor
  • Click on "Learning Hours" in the left sidebar menu.
  • Click on a volunteer name

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

@sarvaiyanidhi sarvaiyanidhi added Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug labels Feb 14, 2024
@sarvaiyanidhi
Copy link
Contributor Author

While evaluating implementation for current code to add test for issue #5513 I found that in currently implemented code there is issue in implementation as on click of volunteer name in supervisor learning page it is passing learning_hour.user_id and redirecting it to learning_hours controller show page which is trying to find learning hour using user id.

As per requirement mentioned in issue #5474 , we need to show all learning hours of Volunteer and not specific learning hour as implemented.

I also wanted to check instead of redirecting to Volunteer's learning hour page on click of Volunteer name, should we show for Supervisor and Casa Admin learning hours for Volunteer on its learning hour page itself as we do for Other duties so that view is similar across all pages.

other_duties

@bcastillo32
Copy link
Collaborator

While evaluating implementation for current code to add test for issue #5513 I found that in currently implemented code there is issue in implementation as on click of volunteer name in supervisor learning page it is passing learning_hour.user_id and redirecting it to learning_hours controller show page which is trying to find learning hour using user id.

As per requirement mentioned in issue #5474 , we need to show all learning hours of Volunteer and not specific learning hour as implemented.

I also wanted to check instead of redirecting to Volunteer's learning hour page on click of Volunteer name, should we show for Supervisor and Casa Admin learning hours for Volunteer on its learning hour page itself as we do for Other duties so that view is similar across all pages.

other_duties

Hi @sarvaiyanidhi thank you for bringing this to our attention. Yes, you are correct - we want the supervisors/admins to be taken to what the volunteers see on their learning hours page. Those details are important to the supervisors/admins. For Other duties - we can do the same where we take the supervisor/admin to what the volunteer sees. But if you like we can handle it on a separate ticket. Let me know what you prefer.

@sarvaiyanidhi
Copy link
Contributor Author

Thank you for the clarification. Will look into this after completing other tickets. Thanks

@bcastillo32 bcastillo32 removed the Help Wanted This is a special label that enables github to showcase issues that want help label Feb 24, 2024
@jp524
Copy link
Collaborator

jp524 commented Feb 27, 2024

Hi there, I am working on #5550 which is related. Just to let you know that my PR should also resolve this issue.

@sarvaiyanidhi
Copy link
Contributor Author

Thank you Jade for the heads up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants