chore: wire WrapUpStatsQuery panic stub into binaries
Some checks failed
CI / Check / Test (push) Failing after 44s
Some checks failed
CI / Check / Test (push) Failing after 44s
This commit is contained in:
@@ -992,6 +992,21 @@ impl crate::ports::WebhookTokenRepository for PanicWebhookTokenRepository {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ── PanicWrapUpStatsQuery ───────────────────────────────────────────────────
|
||||||
|
|
||||||
|
pub struct PanicWrapUpStatsQuery;
|
||||||
|
|
||||||
|
#[async_trait]
|
||||||
|
impl crate::ports::WrapUpStatsQuery for PanicWrapUpStatsQuery {
|
||||||
|
async fn get_reviews_with_profiles(
|
||||||
|
&self,
|
||||||
|
_scope: &crate::models::wrapup::WrapUpScope,
|
||||||
|
_range: &crate::models::wrapup::DateRange,
|
||||||
|
) -> Result<Vec<crate::ports::WrapUpMovieRow>, DomainError> {
|
||||||
|
unimplemented!("WrapUpStatsQuery not wired")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ── InMemoryWrapUpStatsQuery ────────────────────────────────────────────────
|
// ── InMemoryWrapUpStatsQuery ────────────────────────────────────────────────
|
||||||
|
|
||||||
pub struct InMemoryWrapUpStatsQuery {
|
pub struct InMemoryWrapUpStatsQuery {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ chrono = { workspace = true }
|
|||||||
async-trait = { workspace = true }
|
async-trait = { workspace = true }
|
||||||
|
|
||||||
api-types = { workspace = true }
|
api-types = { workspace = true }
|
||||||
domain = { workspace = true }
|
domain = { workspace = true, features = ["test-helpers"] }
|
||||||
application = { workspace = true }
|
application = { workspace = true }
|
||||||
auth = { workspace = true }
|
auth = { workspace = true }
|
||||||
metadata = { workspace = true }
|
metadata = { workspace = true }
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ async fn wire_dependencies() -> anyhow::Result<(AppState, axum::Router)> {
|
|||||||
social_query: social_query.clone(),
|
social_query: social_query.clone(),
|
||||||
#[cfg(not(feature = "federation"))]
|
#[cfg(not(feature = "federation"))]
|
||||||
social_query: Arc::new(domain::testing::NoopSocialQueryPort),
|
social_query: Arc::new(domain::testing::NoopSocialQueryPort),
|
||||||
|
wrapup_stats: Arc::new(domain::testing::PanicWrapUpStatsQuery) as Arc<dyn domain::ports::WrapUpStatsQuery>,
|
||||||
},
|
},
|
||||||
services: Services {
|
services: Services {
|
||||||
auth: auth_service,
|
auth: auth_service,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ sqlite-federation = ["sqlite", "dep:sqlite-federation", "dep:activitypub", "fede
|
|||||||
postgres-federation = ["postgres", "dep:postgres-federation", "dep:activitypub", "federation"]
|
postgres-federation = ["postgres", "dep:postgres-federation", "dep:activitypub", "federation"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
domain = { workspace = true }
|
domain = { workspace = true, features = ["test-helpers"] }
|
||||||
application = { workspace = true }
|
application = { workspace = true }
|
||||||
tokio = { workspace = true }
|
tokio = { workspace = true }
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
social_query: fed_social_query,
|
social_query: fed_social_query,
|
||||||
#[cfg(not(feature = "federation"))]
|
#[cfg(not(feature = "federation"))]
|
||||||
social_query: Arc::new(domain::testing::NoopSocialQueryPort),
|
social_query: Arc::new(domain::testing::NoopSocialQueryPort),
|
||||||
|
wrapup_stats: Arc::new(domain::testing::PanicWrapUpStatsQuery) as Arc<dyn domain::ports::WrapUpStatsQuery>,
|
||||||
},
|
},
|
||||||
services: Services {
|
services: Services {
|
||||||
auth: auth_service,
|
auth: auth_service,
|
||||||
|
|||||||
Reference in New Issue
Block a user