Skip to content

Fix issue #8623 - Fix circular dependency in repositories - #8624

Merged
Vaalyn merged 1 commit into
AzuraCast:mainfrom
Vaalyn:fix-issue-8623
Sep 17, 2026
Merged

Vaalyn merged 1 commit into
AzuraCast:mainfrom
Vaalyn:fix-issue-8623

Conversation

@Vaalyn

@Vaalyn Vaalyn commented Sep 17, 2026

Copy link
Copy Markdown
Member

Fixes issue:

Proposed changes:
This PR fixes the circular dependency introduced through the combined changes from d5f1f2d & afc8320 which in isolation worked fine but together created a circular dependency chain.

To fix this I moved the reason for the circularity, the resetAllQueues method from the StationPlaylistRepository into a standalone service class.

I've also added a unit test that does a simple instantiation of each repository to verify that we do not introduce circular dependencies again there. Since repositories are one of the most likely places for this to happen I think this should suffice for now.

* Move resetAllQueues to a service class
* Add Repository wiring Unit test to prevent regressions
@Vaalyn Vaalyn changed the title Fix issue #8623 - Fix circular dependency in repositores Fix issue #8623 - Fix circular dependency in repositories Sep 17, 2026
@Vaalyn
Vaalyn merged commit 246e57f into AzuraCast:main Sep 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant