Skip to content

Conversation

@ndorin
Copy link
Contributor

@ndorin ndorin commented Nov 25, 2025

This pull request enhances the feedback mechanism for the IEssentialsRoomFusionController class by implementing the IHasFeedback interface and ensuring all relevant feedback properties are initialized and added to the feedback collection during construction. The changes streamline feedback management and improve consistency in how feedback is exposed for room fusion controllers.

Feedback mechanism improvements:

  • Implemented the IHasFeedback interface for IEssentialsRoomFusionController, allowing the class to expose a unified feedback collection.
  • Added a FeedbackCollection<Feedback> property named Feedbacks to the class, making feedbacks accessible and manageable.

Feedback initialization and management:

  • Moved initialization of HelpRequestResponseFeedback, HelpRequestSentFeedback, and HelpRequestStatusFeedback from Initialize() to the constructor helper, ensuring they are set up during object construction. [1] [2]
  • Added all relevant feedback instances (HelpRequestResponseFeedback, HelpRequestSentFeedback, HelpRequestStatusFeedback, RoomOccupancyRemoteStringFeedback, and RoomIsOccupiedFeedback) to the Feedbacks collection in the constructor helper for consistent feedback registration.…ller

@ndorin ndorin requested a review from andrew-welker November 25, 2025 00:15
@ndorin ndorin self-assigned this Nov 25, 2025
Copilot AI review requested due to automatic review settings November 25, 2025 00:15
@ndorin ndorin added the enhancement New feature or request label Nov 25, 2025
Copilot finished reviewing on behalf of ndorin November 25, 2025 00:18
Copy link
Contributor

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 pull request attempts to implement the IHasFeedback interface for IEssentialsRoomFusionController by adding a Feedbacks collection property and moving feedback initialization from the Initialize() method to the constructor. However, there are critical bugs introduced by this refactoring that will cause runtime failures.

Key changes:

  • Added IHasFeedback interface implementation with a Feedbacks collection property
  • Moved initialization of help request-related feedbacks (HelpRequestResponseFeedback, HelpRequestSentFeedback, HelpRequestStatusFeedback) from Initialize() to the constructor helper
  • Added all feedbacks to the Feedbacks collection, including occupancy-related feedbacks
  • Minor whitespace/formatting improvements

Critical Issues:
The refactoring introduces two critical bugs:

  1. HelpRequestResponseFeedback is initialized in the constructor before FusionRoom is created, which will cause a NullReferenceException
  2. Occupancy feedbacks (RoomOccupancyRemoteStringFeedback and RoomIsOccupiedFeedback) are conditionally initialized but unconditionally added to the collection, resulting in null values being added

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrew-welker andrew-welker merged commit 03bbb84 into main Nov 25, 2025
2 checks passed
@andrew-welker andrew-welker deleted the feature/add-IHasFeedback-to-IEssentialsRoomFusionController branch November 25, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants