biolab / biolab/orange3

The Rank widget uses method name as id as setting

Open Beginner friendly
#7,307 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
5.7k
Forks
1.1k
Avg merge
12d 2h
Merged PRs (30d)
1

Description

**What's wrong?**

`method.name` is a string, like, `"Univariate Regression"` and is translated, yet it is also used as a setting, therefore causing crashes (like presumably #7306) when opening a workflow in another language.

**How can we reproduce the problem?**

See, e.g. https://github.com/biolab/orange3/blob/master/Orange/widgets/data/owrank.py#L264.

**What's your environment?**

- Operating system: N/A
- Orange version: 3.40
- How you installed Orange: N/A

Contributor guide

Open the contributing guide

Research direction

Start at Orange/widgets/data/owrank.py around line 264 and inspect how method.name is used both as a translated label and as a setting. Reproduce by opening a workflow in another language, then verify that the Rank widget uses a stable setting identifier and no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.