forked from SWISDATA/processintel
ui.column_selection: the error message is lost, and select_view can return None #22
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ffrauenberger/ProcessIntel#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: low (the user does not see why the column selection failed)
Where
app/ui/column_selection_ui/column_selection_controller.py:59-92Problem
self.error_message = "Please upload a file first") and then callsto_home(); st.rerun(). The instance is discarded on rerun, so the message is never shown.select_viewhas apassbranch forself.selected_algorithm == ""and returnsNonethere.BaseController.startwould then fail on tuple unpacking. The branch is unreachable today, but it is a trap for future changes.Steps to reproduce
Expected behavior
The user is redirected home and sees "Please upload a file first".
Actual behavior
The user is redirected home without any message.
Fix
Write the message to
st.session_state.errorbefore callingto_home()(which preserveserror). Remove or fix thepassbranch inselect_view.from
issues/BUG-022-column-selection-error-message-lost-and-select-view-returns-none.md(code analysis of commit6bcc646, 2026-10-03)