biolab / biolab/orange-widget-base

[RFC] User-only settings

Open
#92 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
28
Forks
62
PR merge metrics
No merged PRs in 30d

Description

We discussed this at a meeting and postponed the idea, but I've thought about this a bit more...

There's a use case for saving a Setting locally, as opposed to in the workflow file.
- recent paths (OWFile) and any absolute paths (widgets inheriting OWSaveBase) (biolab/orange3#4919)
- vim mode (OWPythonScript) (biolab/orange3#4402)

This could be done not with QSettings, but the following way:
- each workflow is assigned a randomly generated ID
- each widget is assigned a sequential ID
- a JSON file named `.json` is created somewhere in the data directory (~/Library/Application Support/Orange on Mac), mapping widgets to their user-only setting values

Contributor guide

Open the contributing guide

Research direction

The issue names OWFile, OWSaveBase, OWPythonScript, QSettings, and the data directory, but no implementation files or tests. Start by locating those widget classes and their setting handling, then clarify the workflow/widget ID and JSON storage design; done requires an agreed, tested implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.