Skip to content

Adding ability to enable / disable online evaluation rules #2728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

YarivHashaiComet
Copy link
Contributor

@YarivHashaiComet YarivHashaiComet commented Jul 15, 2025

Adding ability to enable & disable online evaluation rules

image image image

@YarivHashaiComet YarivHashaiComet requested a review from Copilot July 15, 2025 09:16
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds the ability to enable and disable online evaluation rules through a new boolean enabled field. This allows users to pause rule execution without deleting the rules or setting sampling rates to zero.

  • Added enabled field to all automation rule models and API classes throughout the stack
  • Added UI support with a toggle switch in the rules table and filtering capabilities
  • Updated evaluation logic to skip disabled rules during trace processing

Reviewed Changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Database migration Adds enabled column to automation_rules table with default TRUE
Frontend types Adds boolean column type and != filter operator for enabled field
Frontend components Adds enabled column with toggle switch to rules tables
Backend models Updates all automation rule models to include enabled field
Backend DAOs Updates database queries to handle enabled field
Backend services Updates rule evaluation logic to check enabled status before sampling

@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch 2 times, most recently from 798f5fe to 3f27a00 Compare July 16, 2025 10:03
Copy link
Contributor

github-actions bot commented Jul 16, 2025

SDK E2E Tests Results

58 tests   57 ✅  1m 51s ⏱️
 1 suites   0 💤
 1 files     1 ❌

For more details on these failures, see this check.

Results for commit bb34eed.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 16, 2025

Backend Tests Results

  187 files    187 suites   19m 21s ⏱️
4 376 tests 4 373 ✅ 3 💤 0 ❌
4 309 runs  4 306 ✅ 3 💤 0 ❌

Results for commit f1dcd81.

♻️ This comment has been updated with latest results.

@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch 8 times, most recently from 0049ddc to 256f812 Compare July 16, 2025 15:55
@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch from 46870f1 to 7ad3953 Compare July 16, 2025 17:20
@YarivHashaiComet YarivHashaiComet marked this pull request as ready for review July 17, 2025 04:35
@YarivHashaiComet YarivHashaiComet requested a review from a team as a code owner July 17, 2025 04:35
andriidudar
andriidudar previously approved these changes Jul 17, 2025
Copy link
Contributor

@andriidudar andriidudar left a comment

Choose a reason for hiding this comment

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

Looks good from the code perspective from FE side. I left a few small comments but them are not blockers.

Copy link
Collaborator

@andrescrz andrescrz left a comment

Choose a reason for hiding this comment

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

This is generally in the right direction, but please address the open comments first.

Additionally, I'll send you the link for our PR guidelines. The Cursor automation is great, but we have the convention of self-reviewing PRs before submitting them to the team.

There are some gaps here that would speed up the review and merge process, if the contributor supervises first the PR.

@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch 3 times, most recently from bb34eed to 43ecd12 Compare July 18, 2025 08:25
@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch from 43ecd12 to a516a40 Compare July 18, 2025 08:30
@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch 4 times, most recently from f8ef216 to a61e014 Compare July 18, 2025 10:05
@YarivHashaiComet YarivHashaiComet force-pushed the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch from a61e014 to f1dcd81 Compare July 18, 2025 10:07
Copy link
Contributor

@andriidudar andriidudar left a comment

Choose a reason for hiding this comment

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

It looks good from the FE side, thanks for handling comments!

@YarivHashaiComet YarivHashaiComet merged commit 1b3f991 into main Jul 20, 2025
13 checks passed
@YarivHashaiComet YarivHashaiComet deleted the OPIK-2063-supprting-enable-disable-online-evaluations-rules branch July 20, 2025 06:58
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.

5 participants