domain: add person enrichment fields, event, port
This commit is contained in:
@@ -223,7 +223,7 @@ impl PersonQuery for FakePersonQuery {
|
||||
}
|
||||
|
||||
async fn get_credits(&self, id: &PersonId) -> Result<PersonCredits, DomainError> {
|
||||
let dummy = Person::new(
|
||||
let dummy = Person::basic(
|
||||
id.clone(),
|
||||
ExternalPersonId::new("tmdb:0"),
|
||||
"Unknown".into(),
|
||||
|
||||
@@ -5,7 +5,8 @@ use crate::{
|
||||
models::{
|
||||
AnnotatedRow, DiaryEntry, DiaryFilter, EntityType, ExportFormat, ExternalPersonId,
|
||||
FeedEntry, FieldMapping, FileFormat, ImportError, ImportProfile, ImportSession,
|
||||
IndexableDocument, MovieProfile, MovieStats, ParsedFile, Person, PersonCredits, PersonId,
|
||||
IndexableDocument, MovieProfile, MovieStats, ParsedFile, Person, PersonCredits,
|
||||
PersonEnrichmentData, PersonId,
|
||||
ReviewHistory, SearchQuery, SearchResults, UserStats, UserTrends,
|
||||
collections::{PageParams, Paginated},
|
||||
},
|
||||
@@ -150,6 +151,13 @@ impl PersonCommand for PanicPersonCommand {
|
||||
async fn backfill_from_credits_batch(&self, _: u32) -> Result<(u64, bool), DomainError> {
|
||||
panic!("PanicPersonCommand called")
|
||||
}
|
||||
async fn update_enrichment(
|
||||
&self,
|
||||
_: &PersonId,
|
||||
_: &PersonEnrichmentData,
|
||||
) -> Result<(), DomainError> {
|
||||
panic!("PanicPersonCommand called")
|
||||
}
|
||||
}
|
||||
|
||||
pub struct PanicPersonQuery;
|
||||
|
||||
Reference in New Issue
Block a user