Skip to content

Rename IGetAllScheduleInfo to IGetScheduleInfo #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2025
Merged

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 10, 2025

This PR renames the interface IGetAllScheduleInfo to IGetScheduleInfo to better reflect its actual purpose and usage.

Changes Made

  • Interface Definition: Renamed IGetAllScheduleInfo.cs to IGetScheduleInfo.cs
  • Interface Name: Updated interface name from IGetAllScheduleInfo to IGetScheduleInfo
  • Implementation: Updated ScheduledEvent.cs to implement IGetScheduleInfo
  • Usage: Updated Scheduler.cs to use IGetScheduleInfo in the GetSchedules() method

Rationale

The original name IGetAllScheduleInfo was misleading because:

  • The interface only contains a single method GetScheduleInfo() that returns information about one schedule
  • It doesn't provide information about "all" schedules - that functionality is handled by the Scheduler.GetSchedules() method which calls this interface on individual schedule events
  • The new name IGetScheduleInfo more accurately represents what the interface does

Testing

All existing tests continue to pass:

  • ✅ 1,008 unit tests
  • ✅ 67 mailer tests
  • ✅ 15 integration tests

No breaking changes were introduced as this is purely an internal interface rename.

Fixes #444.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…ll references

Co-authored-by: jamesmh <7213174+jamesmh@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] IGetScheduleInfo Rename IGetAllScheduleInfo to IGetScheduleInfo Jul 10, 2025
@Copilot Copilot AI requested a review from jamesmh July 10, 2025 02:24
Copilot finished work on behalf of jamesmh July 10, 2025 02:24
@jamesmh jamesmh marked this pull request as ready for review July 20, 2025 02:48
@Copilot Copilot AI review requested due to automatic review settings July 20, 2025 02:48
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR renames the interface IGetAllScheduleInfo to IGetScheduleInfo to better align the interface name with its actual purpose of providing information about a single schedule rather than all schedules.

  • Renamed interface from IGetAllScheduleInfo to IGetScheduleInfo
  • Updated implementation in ScheduledEvent class
  • Updated usage in Scheduler.GetSchedules() method

Reviewed Changes

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

File Description
IGetScheduleInfo.cs Interface renamed from IGetAllScheduleInfo to IGetScheduleInfo
ScheduledEvent.cs Updated to implement the renamed IGetScheduleInfo interface
Scheduler.cs Updated to use IGetScheduleInfo in the GetSchedules() method

@jamesmh jamesmh merged commit 4072e04 into master Jul 20, 2025
4 checks passed
@jamesmh jamesmh deleted the copilot/fix-444 branch July 20, 2025 02:53
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.

IGetScheduleInfo
2 participants