Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 164
    • Issues 164
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #476

Closed
Open
Opened Jun 09, 2025 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

ngrams extraction during `flow` should report errors upstream

Issue #473 fixed the code for insertMasterDocs such that we can now generate the ngrams before we try to persist the documents into the database. However, the ngrams extractions for such documents might fail, so could the insertion of a single document.

In the current state of play, what will happen for the former is that we would skip ngrams extraction for that single document, defaulting to empty (which is defensible behaviour) but in case of the latter the whole transaction would rollback, meaning that a single failure in inserting a document would result in the whole batch to be skipped.

Even though inserting documents should be a relatively safe operation, it would be better if we could improve our error handling strategy such that errors are reported upstream without aborting the whole lot. We could reuse the "warning" API we added a while ago to report documents which failed insertion.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#476