Skip to content

fix(importer): add handler for manual import exceptions - #1143

Merged
kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
kpsherva:importer-handlers
Nov 25, 2026
Merged

kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
kpsherva:importer-handlers

Conversation

@kpsherva

@kpsherva kpsherva commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
  • ensures that import is not aborted half-way

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of cases where an import requires manual intervention, providing a more consistent response instead of an unhandled error.

* ensures that import is not aborted half-way
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Importer exception handling

Layer / File(s) Summary
Register manual import exception
cds_ils/importer/handlers.py
ManualImportRequired now maps to importer_exception_handler.

Change: Bug fix

Merge Risk: Minimal · up to e8da5

This change routes manual-import-required errors through the importer's dedicated failure handling, so imports are less likely to stop part-way through. No merge-blocking risk was found.

Architecture risk: Low · up to e8da5

The change affects 1 system.

Changed systems: cds_ils

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — cds_ils (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in cds_ils/importer/handlers.py: Adds ManualImportRequired to importer_exception_handlers, routing it to importer_exception_handler.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3bdf02c8-c41d-4798-b647-cbcad37f2d5e
Commits

Reviewing files that changed from the base of the PR and between 1dcfc06 and e8da525.

Files selected for processing: 1

  • cds_ils/importer/handlers.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@kpsherva
kpsherva merged commit 8038762 into CERNDocumentServer:master Nov 25, 2026
3 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

Development

Successfully merging this pull request may close these issues.

1 participant