Skip to content

Participation type#1699

Closed
MImran2002 wants to merge 13 commits into
developmentfrom
participationType
Closed

Participation type#1699
MImran2002 wants to merge 13 commits into
developmentfrom
participationType

Conversation

@MImran2002
Copy link
Copy Markdown
Contributor

Issue Description

Fixes #1631

  • In participation history accordion on the user's page, there should be a participation type: volunteer, labor, attendee

Changes

  • Added participation type table in Sidebar > Search Student > User profile > participation History drop down
image
  • Refactored the getParticipatedEventsForUser(user) function to also add the column of event participant type and if the event is for volunteer the student participation type is volunteer, if the event is labor only it is labor else it is attendees.

  • Rationale: This implementation can only be accurate if the eventParticiapant table has a new column which is participant type and we would need a script to populate it. However, this implementation is to give an approximation before the full implementation.

Testing

  • Switch to the participationType - git checkout participationType
  • Pull the changes - git pull & git fetch origin
  • Reset the database - database/reset_database.sh from-backup
  • Run the application - flask run
  • Go to Sidebar > Search Student > User profile > participation History drop down to see the changes

@MImran2002 MImran2002 requested a review from bakobagassas April 27, 2026 17:48
Copy link
Copy Markdown
Contributor

@bakobagassas bakobagassas left a comment

Choose a reason for hiding this comment

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

We need to have an option for Volunteer too as per the issue description. I created an event that earned volunteer hours however the person was marked as an attendee only.

Image

Copy link
Copy Markdown
Contributor

@bakobagassas bakobagassas left a comment

Choose a reason for hiding this comment

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

I think you also need to figure out how to label people who attend events that are marked as both "Labor only" and "Earns volunteer hours". Are those people attendees? are they Volunteers ? or is it just Labor?

@MImran2002
Copy link
Copy Markdown
Contributor Author

I think you also need to figure out how to label people who attend events that are marked as both "Labor only" and "Earns volunteer hours". Are those people attendees? are they Volunteers ? or is it just Labor?

Solved it


return dict(programParticipationDict)

def graduatingSeniorsVolunteerHours(academicYear):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe I'm missing something but why do we need the function for graduating seniors hours? I thought we were looking at the event participation types for this PR

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

View Code Coverage

@MImran2002 MImran2002 closed this May 2, 2026
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.

Include participation type in participation history

3 participants