Skip to content

Cognate analysis long result is not hidden #1132

@vmonakhov

Description

@vmonakhov

A long result after cognate analysis should be skipped. We should see:

Skipping text output, too long.

But this does not occur. May be this is correct after some changes in code. Please check it.

You can get steps to reproduce from the sctipt:
https://gitlab.ispras.ru/modis-tests/lingvodoc/-/blob/master/frontend/tests/test_cognate_suggest_match_off.py

From frontend code src/components/CognateAnalysisModal/index.js:

    if (result.length > 1048576 && (this.props.mode === "suggestions" || this.props.mode === "multi_suggestions")) {
      result = this.context("Skipping text output, too long.");
    }

Metadata

Metadata

Assignees

Labels

frontendbug is related to frontendoptimizationsomething that improves performance or storage space

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions