Skip to content

Removed labor meetings from participation history#1685

Open
Karina-Agliullova wants to merge 4 commits intodevelopmentfrom
labor-meetings-removal
Open

Removed labor meetings from participation history#1685
Karina-Agliullova wants to merge 4 commits intodevelopmentfrom
labor-meetings-removal

Conversation

@Karina-Agliullova
Copy link
Contributor

Fixes #1683

There was a request to remove labor meeting events from the Participation history. And also, those labor meetings should be tracked in reports for each academic year per each term. The problem with removing it from participation history was inconsistency in naming of labor meetings and also filtering: sometimes they are named "CELTS labor meeting" or "Labor meeting(date)", so it was confusing to remove Labor only events as there are trainings that are also filtered the exact same way.

Changes

  • Added a new function to exclude anything labeled labor meeting
  • Got rid of labor meetings from participation history, while preserving trainings

Testing

  • Go to the user profile from backup data, such as Kai Craig
  • Go to participation history
  • Check if there are no labor meetings
  • Download the report for AY 2025-2026, and find the column Labor Meetings
  • Check their name, Kai Craig, as an attendee (confirming that there is data with labor meetings under their name)

@Karina-Agliullova Karina-Agliullova self-assigned this Feb 27, 2026
MImran2002
MImran2002 previously approved these changes Feb 27, 2026
Copy link
Contributor

@MImran2002 MImran2002 left a comment

Choose a reason for hiding this comment

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

I don't think I have any changes in mind, this is a quick fix and I have talked to Karina that a long-term fixed would possibly be an attribute but for now I think it is a great fix.

.join(EventParticipant)
.where(Event.isAllVolunteerTraining == True,
EventParticipant.user == user))
EventParticipant.user == user, ~((Event.isLaborOnly == True) & excLaborMeeting), ~((Event.isTraining == True) & excLaborMeeting)))
Copy link
Contributor

Choose a reason for hiding this comment

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

All Volunteer is always All Volunteer, without other qualifiers. If they screw up the data entry, that's on them.

.join(EventParticipant)
.where(EventParticipant.user == user,
Event.isAllVolunteerTraining == False, Event.deletionDate == None)
Event.isAllVolunteerTraining == False, Event.deletionDate == None, ~((Event.isLaborOnly == True) & excLaborMeeting), ~((Event.isTraining == True) & excLaborMeeting))
Copy link
Contributor

Choose a reason for hiding this comment

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

We can simplify this by just excluding Labor Meetings. There aren't going to be other labor meetings that we want to put in this list.


return eventsList

def excludeLaborMeeting():
Copy link
Contributor

Choose a reason for hiding this comment

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

This function makes a clause that determines if the event IS a labor meeting, but is called excludeLaborMeeting


return (
eventName.contains("labor meeting") |
eventName.contains("celts labor meeting") |
Copy link
Contributor

Choose a reason for hiding this comment

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

redundant, because this would be caught be the first check.

return (
eventName.contains("labor meeting") |
eventName.contains("celts labor meeting") |
eventDescription.contains("labor meeting")
Copy link
Contributor

Choose a reason for hiding this comment

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

This could potentially catch too much. Let's not check event description.

@github-actions
Copy link

View Code Coverage

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.

Remove "Labor Meetings" from participation history for CELTS students and track it separately

3 participants