CentreForDigitalHumanities / CentreForDigitalHumanities/Textcavator

Compare similarity graph breaks with several terms at once

Open
#1,032 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
12
Forks
3
Avg merge
3d 3m
Merged PRs (30d)
9

Description

The 'compare similarity' graph seems to crash when requesting several terms at the same time.

Notes:
- This does not happen locally
- Each term makes a separate HTTP request so there is nothing special about the requests themselves.

I'm guessing this is because requesting several terms at once causes time-outs. This could be resolved by running these as celery tasks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the compare-similarity graph entry point and the code that issues one HTTP request per term. Reproduce the failure with several terms, then investigate whether request time-outs cause the crash and review how Celery tasks are used in the project. Done means multi-term comparisons no longer crash and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.