Skip to content

Person show affiliation dates display#1071

Merged
maebeale merged 5 commits intomainfrom
fix-facilitator-since
Feb 18, 2026
Merged

Person show affiliation dates display#1071
maebeale merged 5 commits intomainfrom
fix-facilitator-since

Conversation

@maebeale
Copy link
Collaborator

@maebeale maebeale commented Feb 18, 2026

  • This work Closes [link an issue]

What is the goal of this PR and why is this important?

  • Show Affiliated since and Facilitator since on Person and Org show pages
    (these used to be manual fields, but now autocalculating based on associated affiliations, if present)

How did you approach the change?

Anything else to add?

@maebeale maebeale marked this pull request as ready for review February 18, 2026 13:37
@maebeale maebeale changed the title WIP: person show affiliation dates display Person show affiliation dates display Feb 18, 2026

def member_since_year
member_since ? member_since.year : nil
facilitator_since_date&.year
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we're moving forward assuming member_since meant facilitator since, and introducing affiliated since.

status_active = joins(:organization_status).where(organization_statuses: { name: "Active" })
affiliation_active = where(id: Affiliation.active.select(:organization_id))
status_active.or(affiliation_active)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

using affiliations to determine active status now

def published? # needed for my_bookmarks
organization_status&.name == "Active"
return true if organization_status&.name == "Active"
affiliations.active.exists?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this has potential to be an issue. will leave it like this for now.

"app/views/monthly_reports/edit.html.erb" => "admin-or-owner",

"app/views/notifications/show.html.erb" => "admin-or-owner",
"app/views/organizations/show.html.erb" => "admin-or-auth",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is moot for now until the feature is launched

@maebeale maebeale merged commit 1b785cb into main Feb 18, 2026
3 checks passed
@maebeale maebeale deleted the fix-facilitator-since branch February 18, 2026 16:45
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.

1 participant

Comments