PostHog / PostHog/posthog

Save rule failed: Unknown global function: sortableSemver

Open
#53,364 0 comments 0 reactions 0 assignees View on GitHub

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

https://us.posthog.com/project/[id]/error_tracking?activeTab=configuration#selectedSetting=error-tracking-suppression-rules

How to reproduce

  1. Try to create a new suppression rule
  2. Add some sub-rule including a number comparison
  3. Try to save
Image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.