Skip to content

ignore scheduled rules when processing put_events#7848

Merged
dominikschubert merged 1 commit intomasterfrom
fix_ignore-scheduled-rule-for-putevents
Mar 13, 2023
Merged

ignore scheduled rules when processing put_events#7848
dominikschubert merged 1 commit intomasterfrom
fix_ignore-scheduled-rule-for-putevents

Conversation

@dominikschubert
Copy link
Member

Addresses #7847

Since scheduled events don't have a pattern and it defaults to a "{}" pattern, they were always unintentionally triggering the targets of the scheduled event rule when calling put_events (which should only consider pattern-based event rules).

To fix this we now ignore any rules that have a scheduled_expression set (which would otherwise default to None).

@dominikschubert dominikschubert requested a review from dfangl as a code owner March 13, 2023 13:38
@dominikschubert dominikschubert self-assigned this Mar 13, 2023
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests March 13, 2023 13:38 — with GitHub Actions Inactive
@coveralls
Copy link

Coverage Status

Coverage: 85.127% (-0.03%) from 85.159% when pulling 0badb48 on fix_ignore-scheduled-rule-for-putevents into b5be94a on master.

@github-actions
Copy link

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 41m 0s ⏱️ - 2m 46s
1 798 tests +1  1 416 ✔️ +1  382 💤 ±0  0 ±0 
2 524 runs  +1  1 790 ✔️ +1  734 💤 ±0  0 ±0 

Results for commit 0badb48. ± Comparison against base commit b5be94a.

Copy link
Member

@dfangl dfangl left a comment

Choose a reason for hiding this comment

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

LGTM

@dominikschubert dominikschubert merged commit d75d25c into master Mar 13, 2023
@dominikschubert dominikschubert deleted the fix_ignore-scheduled-rule-for-putevents branch March 13, 2023 22:09
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.

3 participants