Skip to content

chore: Clean up dead code methods in AggregationOrchestrator#650

Merged
SandeepTuniki merged 3 commits into
masterfrom
fix-dead-code-in-orchestrator
Jul 16, 2026
Merged

chore: Clean up dead code methods in AggregationOrchestrator#650
SandeepTuniki merged 3 commits into
masterfrom
fix-dead-code-in-orchestrator

Conversation

@SandeepTuniki

@SandeepTuniki SandeepTuniki commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

I noticed that Jetski created some dead code in orchestrator.py that is only called in unit tests and not in production code. I missed this previously.

This PR cleans them up and rewrites the unit tests to avoid relying on such unused code.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics -8 complexity

Metric Results
Complexity -8

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the unused 'get_active_stages' and 'execute_stage' methods from the orchestrator, refactoring the corresponding tests to use the 'run' method instead. Feedback suggests enhancing the 'test_run_entity_aggregation' test to verify that the entity generator is called with the correct configuration and that the aggregation deleter is properly invoked.

@SandeepTuniki
SandeepTuniki marked this pull request as ready for review July 16, 2026 13:10
@SandeepTuniki
SandeepTuniki enabled auto-merge (squash) July 16, 2026 13:42
@SandeepTuniki
SandeepTuniki merged commit 006e6a3 into master Jul 16, 2026
11 checks passed
@SandeepTuniki
SandeepTuniki deleted the fix-dead-code-in-orchestrator branch July 16, 2026 13:48
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.

2 participants