Skip to content

Fetch the filter fields even when their column is hidden - #46

Open
fedonman wants to merge 1 commit into
mainfrom
fixed/hidden-column-breaks-its-filter
Open

Fetch the filter fields even when their column is hidden#46
fedonman wants to merge 1 commit into
mainfrom
fixed/hidden-column-breaks-its-filter

Conversation

@fedonman

@fedonman fedonman commented Sep 6, 2026

Copy link
Copy Markdown
Owner

The squeue --format string was built from the visible columns alone, so hiding the User or Name column stopped %u or %j being requested at all. Both filters run client side against those values, which then stayed empty, and the table emptied while the flash bar said the filter had worked. The two codes are now forced into the format string when their filter is set, the same way %Z is already forced when a custom widget needs the working directory. The assembly moved into a format_codes helper so it can be tested, and five tests cover it, including a decode of squeue output through a format string with the User column hidden.

Closes #10

rebuild_format built the squeue format string from the visible columns
only, so hiding User or Name stopped %u or %j being requested. The two
regex filters run client side against those values, which stayed empty,
so the filter matched nothing and emptied the table while the flash bar
reported it working. Force the codes the same way %Z is already forced
for the custom widgets.
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.

[Bug]: Hiding a column stops its field being fetched, so its filter matches nothing

1 participant