Save rule failed: Unknown global function: sortableSemver
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 232
Description
Bug Description
I get this error when trying to save a suppression rule that includes a sub-rule that has a number comparison:
Save rule failed: Unknown global function: sortableSemver
How to reproduce
- Try to create a new suppression rule
- Add some sub-rule including a number comparison
- Try to save
Debug info
- [ ] PostHog Cloud, Debug information: Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019d574d-8af0-79b9-a265-1686762d319d?t=2637
Admin: http://go/adminOrgUS/01940dfc-e44a-0000-2e95-d95c1aa639ac (project ID 114098)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error through the error-tracking suppression-rules configuration flow, then search the codebase for sortableSemver and the rule-saving entry point. Done means a suppression rule containing a number-comparison sub-rule saves successfully without the unknown-global-function error.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100