Repository navigation
Conversation
wmak
commented
Nov 23, 2026
- This adds a formula filter to dashboards so we can list dashboards still using a formula before a delete
- EXP-1447
- This adds a formula filter to dashboards so we can list dashboards still using a formula before a delete
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 88cd5e8. Configure here.
| if not formula.startswith(FORMULA_PREFIX): | ||
| raise ParseError(f"Formulas start with {FORMULA_PREFIX}") | ||
| escaped = re.escape(formula) | ||
| return rf'(^|[^\\]"|[[:space:]])(-)?{escaped}\([^")]*\)(:|"|$|[[:space:]])' |
There was a problem hiding this comment.
Formula usage regex misses negated, grouped, equation uses
Medium Severity
The regex in saved_formula_regex only matches a formula call that comes right after the start of the text, a quote or whitespace, with an optional -. Dashboard widget queries use the formula in other ways too: negated conditions (!formula.x(...):>1), parenthesized groups ((formula.x(...):>1 OR ...)) and equation aggregates (equation|formula.x(...) * 2). None of these match, so those dashboards are left out of the pre-delete usage list.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 88cd5e8. Configure here.

