Skip to content

Affiliations: default start date to the actual date, not first of month - #2176

Draft
maebeale wants to merge 2 commits into
mainfrom
maebeale/affiliated-since-default
Draft

Affiliations: default start date to the actual date, not first of month#2176
maebeale wants to merge 2 commits into
mainfrom
maebeale/affiliated-since-default

Conversation

@maebeale

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 small, contained default-date change in one service + one form default

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

  • A facilitator affiliation created on registration was dated to the first of the training's month, so a training early in a month showed "Affiliated since" as the month before. Now it starts on the training date itself.
  • The manual "+ Add Affiliation" form row defaulted to the first of the current month; now it defaults to today.

How did you approach the change?

  • AffiliationServices::CreateFromRegistration#facilitator_start_date: dropped .beginning_of_month.
  • affiliations/_fields.html.erb: new-row start_date default Date.current.beginning_of_monthDate.current.
  • Updated the two service specs and stale comments.

Anything else to add?

  • Org-program-status reporting (EventRegistration#program_statuses) still uses the 1st of the event's month as its point-in-time reference — unchanged, per discussion.

The facilitator affiliation minted on registration was dated to the first
of the training's month, which read as "affiliated since the month before"
when a training landed early in a month. Start it on the training date
itself instead. Likewise default the manual "+ Add Affiliation" row to
today rather than the first of the current month.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 12, 2026 15:41

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 12, 2026 15:42

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants