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 158
    • Issues 158
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • 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
  • #89

Closed
Open
Opened Oct 18, 2021 by Quentin Lobbé@qlobbe
  • Report abuse
  • New issue
Report abuse New issue

Map terms containing a double whitespace break the Gargantext.Core.Text.Terms.WithList module

Hi, I've noticed that some Map terms might contain double white-space such as :

"photo net":{"size":1,"list":"MapTerm","children":[]}

I don't know the origin of those double white-spaces (maybe a parsing issue with bad-encoded dots as the original word here was "photo.net") but they induce a malfunction of the Gargantext.Core.Text.Terms.WithList module and more precisely the buildPatterns function. When this function tries to reconstruct the map term as a pattern, "photo net" turns into ["photo","","net"]. The presence of "" in the alt list induces an error and ends the entire buildPatterns process.

Maybe we should remove "" and other artifacts upstream of the alt list before processing it.

Thx

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#89