Skip to content

Warn about UDA urgency coefficients for non-UDA attributes - #4198

Open
RayanR000 wants to merge 1 commit into
GothenburgBitFactory:developfrom
RayanR000:fix/3726-warn-uda-urgency-builtin
Open

RayanR000 wants to merge 1 commit into
GothenburgBitFactory:developfrom
RayanR000:fix/3726-warn-uda-urgency-builtin

Conversation

@RayanR000

Copy link
Copy Markdown
Contributor

A config key like urgency.uda.tags.foo.coefficient was silently accepted: task show didn't flag it, and it only affected urgency when a task had exactly one tag, because it compared the whole tags value to "foo". The intended key is urgency.user.tag.foo.coefficient.

As suggested in the issue, this now warns instead of trying to process these keys. task show lists urgency.uda.<name>.* entries whose <name> isn't a defined UDA as unrecognized and adds a hint pointing at urgency.user.tag.<tag>.coefficient. Coefficients for built-in attributes like tags are no longer loaded. Real UDAs, including the default priority, are unaffected.

Tested with new cases in show.test.py (flagged for tags, not flagged for a defined UDA or priority) and urgency.test.py (the tags coefficient no longer changes urgency). Full ctest suite passes.

Closes #3726

A key like urgency.uda.tags.foo.coefficient was accepted silently and
only took effect when a task had exactly one tag, since it compared the
whole tags value against "foo". Stop loading urgency.uda.* coefficients
for built-in attributes, and have `task show` list urgency.uda.<name>.*
keys whose <name> is not a defined UDA as unrecognized, with a pointer to
urgency.user.tag.<tag>.coefficient.

Closes GothenburgBitFactory#3726
Copilot AI lite review requested due to automatic review settings September 23, 2026 17:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Tag coefficient not applied when multiple tags exist on a task

2 participants