Skip to content

ILLDEV-493 Don't send email if no patron requests are found - #740

Merged
JanisSaldabols merged 5 commits into
mainfrom
ILLDEV-493
Sep 1, 2026
Merged

ILLDEV-493 Don't send email if no patron requests are found#740
JanisSaldabols merged 5 commits into
mainfrom
ILLDEV-493

Conversation

@JanisSaldabols

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings August 28, 2026 10:11

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.

Pull request overview

Prevents pull-slip emails when no patron requests match.

Changes:

  • Returns a successful no-op result for empty batches.
  • Updates tests to cover empty and non-empty results.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
broker/scheduler/service/email_sender.go Skips email generation for empty batches.
broker/scheduler/service/email_sender_test.go Adjusts and adds email-sending tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread broker/scheduler/service/email_sender.go Outdated
Comment thread broker/scheduler/service/email_sender.go Outdated
Comment thread broker/scheduler/service/email_sender.go Outdated
@jakub-id

Copy link
Copy Markdown
Contributor

@JanisSaldabols for sure we should not include the pdf if there's no results. But could we make the sendig configurable with an action param? Eg sendEmpty true or false?

@JanisSaldabols
JanisSaldabols enabled auto-merge (squash) September 1, 2026 12:16
@JanisSaldabols
JanisSaldabols merged commit befd928 into main Sep 1, 2026
7 checks passed
@JanisSaldabols
JanisSaldabols deleted the ILLDEV-493 branch September 1, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants