Repository navigation
Conversation
Issue: OpenIntegrationEngine#456 Issue: OpenIntegrationEngine#457 Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
mgaffigan
requested review from
a team,
NicoPiel,
gibson9583,
jonbartels,
kayyagari,
kpalang,
ssrowe and
tonygermano
October 26, 2026 20:38
NicoPiel
approved these changes
Oct 27, 2026
tonygermano
requested changes
Nov 26, 2026
tonygermano
left a comment
Member
There was a problem hiding this comment.
Not approved yet. #567 merged the same getDashboardChannels fix for #456, with a test, so this PR now conflicts with main. Scoping the storage reads to the requested channels is still worth merging once these are done:
- Rebase onto
main. Drop thegetDashboardChannelschange and therequested()helper (#567 covers them), and remove theIssue: …/issues/456trailer. Also expect conflicts fromTimedDaobeing deleted (a178dfb), so drop its changes, and from theJdbcDaostatistics loop now using try-with-resources (60c77bc), so re-apply the filter there. - Update the PR description. Drop "closes #456" and say #457 is only partly fixed, e.g.: "Partially addresses #457: requests scoped to specific channels only read those channels' statistics tables. Unscoped requests can still fail while a channel is being removed; that remains open in #457."
- Comment the early returns in
getUndeployedDashboardStatusesandgetUndeployedChannelStatistics. Correctness depends on them, because an empty set means every channel further down. Suggested:// Required, not just a shortcut: an empty set means every channel to getStatisticsFromStorage. - Drop the "Paranoia" check in
ChannelStatisticsServlet.getStatistics(String). With #567's filter it's unreachable, and if it did trigger the client would get a bare 500. #567's test guards against a regression. - Make the old overloads delegate to the new ones. Turn
DonkeyDao.getChannelStatistics(String)andgetChannelTotalStatistics(String)intodefaultmethods that passnull, and remove their implementations fromJdbcDao,BufferedDaoandPassthruDao. Do the same incom.mirth.connect.server.controllers.ChannelControllerforgetStatisticsFromStorage(String)andgetTotalStatisticsFromStorage(String), removing their overrides fromDefaultChannelController, as the donkeyChannelControlleralready does.
Follow-up (not for this PR): the rest of #457; see my comment there.
Claude checked (no action needed)
- Traced every caller of the new overloads. Only
getUndeployedDashboardStatusesandgetUndeployedChannelStatisticspass a channel set, and undeployed channels are already filtered bychannelIdsbefore the storage read. Every other caller's behavior is unchanged. JdbcDaostill skips requested channels with no local tables.- A test merge into current
mainconflicts inDonkeyEngineController,JdbcDaoandTimedDao. - CI on this PR: 737 tests passing, none added by this PR.
🤖 Drafted with Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a bug where getChannelStatistics will return other than the requested channel's statistics.
Caught in #449
Closes #456
Related to #457