Fixes
This commit is contained in:
1 parent
04794aea54
commit
cfd31f398c
61 files changed
+2062
-254
No files matched your search
@@ -1587,6 +1587,28 @@ func (p *Pipeline) processOne(ctx context.Context, companyID, jobID uuid.UUID, i
|
||||
if err != nil {
|
||||
return false, 0, StepResult{}, err
|
||||
}
|
||||
if strings.EqualFold(strings.TrimSpace(processingType), "seo_meta") {
|
||||
// SEO metadata processing must not rewrite product display content.
|
||||
if in.PriorProcessedName != "" {
|
||||
result.ProcessedName = in.PriorProcessedName
|
||||
}
|
||||
if in.PriorProcessedDescription != "" {
|
||||
result.ProcessedDescription = in.PriorProcessedDescription
|
||||
}
|
||||
if in.PriorCategory != "" {
|
||||
result.Category = in.PriorCategory
|
||||
}
|
||||
for lang, fields := range result.LocalizedContent {
|
||||
previous := company.FieldsForLanguage(in.PriorLocalized, lang)
|
||||
if previous.ProcessedName != "" {
|
||||
fields.ProcessedName = previous.ProcessedName
|
||||
}
|
||||
if previous.ProcessedDescription != "" {
|
||||
fields.ProcessedDescription = previous.ProcessedDescription
|
||||
}
|
||||
result.LocalizedContent[lang] = fields
|
||||
}
|
||||
}
|
||||
// Persist mapped unique_id only when it exists in the company taxonomy.
|
||||
// Coerce display names (feed/vector) → unique_id before filtering so A1-style
|
||||
// name tokens are not wiped. Empty taxonomy set skips filtering (unit tests).
|
||||
|
||||
Reference in new issue
Block a user