Skip to content

refactor send_messages to remove an almost entirely duplicate code path#3297

Merged
sgoggins merged 1 commit intomainfrom
collection_util-duplicate-code
Oct 16, 2025
Merged

refactor send_messages to remove an almost entirely duplicate code path#3297
sgoggins merged 1 commit intomainfrom
collection_util-duplicate-code

Conversation

@MoralCode
Copy link
Contributor

Description

This change is identical to that proposed in #3271, except it contains a fix for the problem where other jobs were not being scheduled and thus had to be reverted (in #3292)

In reviewing the code, there was a spot in there that was intended to exit early and skip that iteration. I had used return (which exits the whole function) in the refactor rather than continue (which skips one loop iteration) because I was focused on deduplicating the if statement and didnt see that it was in a loop.

This is a refactor and doesnt fix an explicit issue, but helps generally reduce tech debt

Notes for Reviewers
When testing, ensure that all jobs are getting scheduled correctly.

Signed commits

  • Yes, I signed my commits.

@MoralCode MoralCode changed the title refactor send_messages to remove a almost entirely duplicate code path refactor send_messages to remove an almost entirely duplicate code path Oct 1, 2025
@MoralCode MoralCode requested a review from sgoggins October 14, 2025 20:08
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

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

Lets give it a try!

@sgoggins sgoggins added the bug-fix Fixes a bug label Oct 14, 2025
@MoralCode MoralCode self-assigned this Oct 14, 2025
@MoralCode MoralCode removed the bug-fix Fixes a bug label Oct 15, 2025
@MoralCode
Copy link
Contributor Author

MoralCode commented Oct 15, 2025

This doesnt really fix a bug so much as it improves the quality of the code (yes theres the detail that the original version of this introduced a bug but that was already reverted so for all intents and purposes this is a new refactoring change)

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode force-pushed the collection_util-duplicate-code branch from 7312fbe to 9ebc4eb Compare October 15, 2025 14:10
@MoralCode MoralCode added security Related to keeping Augur secure ready Items tested and seeking additional approvals or a merge. Usually for items under active development and removed security Related to keeping Augur secure labels Oct 16, 2025
@sgoggins sgoggins merged commit 9aa72ee into main Oct 16, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Items tested and seeking additional approvals or a merge. Usually for items under active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants