Skip to content

Database Settings model and fixes#63

Merged
Osayi-ANL merged 5 commits intodevfrom
dev-osayi
Mar 23, 2026
Merged

Database Settings model and fixes#63
Osayi-ANL merged 5 commits intodevfrom
dev-osayi

Conversation

@Osayi-ANL
Copy link
Copy Markdown
Collaborator

add: hierarchical settings tree view with JSON editor, two-step add dialog, edit/delete persistence
add: last-used config auto-save/load for meta, collector, and analysis consumer tabs on run/startup
add: named config save/load buttons for each consumer tab
add: processor file inputs as editable dropdowns populated from CONSUMERS > hpc in DB
add: seed script builds full default settings structure on every init (idempotent)
add: refresh DB button reloads settings tree and consumer fields
change: SettingsManager fully exposed through DatabaseInterface

fix: top level keys in pv configs are editible
remove: toml configuration within scan view
change: pvareader to use settings.py configuration instead of direct toml
add: File output path to Info
remove: database exist print
add: gaurd to prevent init_database to be called after every settings.reload
add: full SettingsManager API in DatabaseInterface
add: idempotent seed_defaults call on every DatabaseInterface init
change: setting lookup matches on name+parent only (removes type from key to prevent duplicates)

Seed script
add: seed_settings_defaults_sql seeds full default structure on every init
add: BEAMLINE_NAME, PATHS (LOG/CONFIGS/OUTPUTS/SCAN/SLICES/CONSUMERS/hpc), APP_DATA/workflow tree

Workflow settings view + UI
add: settings tree view with three-column editor (Setting / Value / Type)
add: two-step add dialog for top-level keys and child keys with type selection
add: JSON editor with Simple tree tab and Raw JSON tab, bidirectional sync
add: named config save/load for meta associator, collector, and analysis consumer tabs
add: last-used config auto-save/load for all three workflow consumer tabs
add: refresh DB button to reload settings tree and repopulate consumer fields
add: edit section dialog for renaming settings nodes
fix: delete in settings view now immediately persists to DB
fix: QFont import moved to QtGui to prevent silent slot exception in JSON editor
remove: Add section from context menu (now subsumed into Add child key type options)

Consumers removed
remove: consumer scripts moved out of repository tree
…MERS > hpc in DB

fix: path resolution uses CONSUMERS.BASE + hpc.BASE + subdir relative to project root
add: hpc.BASE seeded under CONSUMERS > hpc in default settings structure
@Osayi-ANL Osayi-ANL merged commit ea609c0 into dev Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant