Skip to content

fix(server): point digest social media query at communication_plans#228

Merged
GerardPaligot merged 1 commit into
mainfrom
fix/digest-social-media-empty
May 25, 2026
Merged

fix(server): point digest social media query at communication_plans#228
GerardPaligot merged 1 commit into
mainfrom
fix/digest-social-media-empty

Conversation

@GerardPaligot

Copy link
Copy Markdown
Contributor

Summary

  • DigestRepositoryExposed.querySocialMediaDue read PartnershipsTable.communication_publication_date, which was deprecated by MigratePartnershipCommunicationsMigration and is no longer written by any endpoint — the "Communication prévue aujourd'hui" section had been silently empty since the migration
  • Switch to CommunicationPlanEntity.scheduledDate within [startOfDay, endOfDay), keeping only entries linked to a non-declined partnership
  • Remove the now-dead PartnershipEntity.findSocialMediaDue and its unused greaterEq / less imports
  • New DigestSocialMediaTest inserts four plans (today/tomorrow/today-declined/today-unlinked) and asserts only the today + linked + non-declined one surfaces

Test plan

  • ./gradlew :application:test --tests DigestSocialMediaTest
  • ./gradlew :application:detekt :application:ktlintMainSourceSetCheck :application:ktlintTestSourceSetCheck
  • Verify in local/staging: schedule a publication via the UI, hit POST /orgs/{org}/events/{event}/jobs/digest, confirm the Slack section lists the partnership

🤖 Generated with Claude Code

DigestRepositoryExposed.querySocialMediaDue read
PartnershipsTable.communication_publication_date, which was deprecated
by MigratePartnershipCommunicationsMigration and is no longer written
by any endpoint. The "Communication prévue aujourd'hui" digest section
had been silently empty since the migration. Switch to
CommunicationPlanEntity.scheduledDate, keeping only entries linked to
a non-declined partnership.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@GerardPaligot GerardPaligot merged commit 6961642 into main May 25, 2026
1 check passed
@GerardPaligot GerardPaligot deleted the fix/digest-social-media-empty branch May 25, 2026 14:18
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