Skip to content
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

Implement dedicated rollingwindow constraint node #1128

Merged

Conversation

JoelCourtney
Copy link
Contributor

@JoelCourtney JoelCourtney commented Sep 5, 2023

Description

Adds a new node Constraint.RollingThreshold(spans, width, threshold, algorithm) that detects when the cumulative duration of spans exceeds or falls short of threshold in any width interval. algorithm decides both whether violations are reported by highlighting the individual spans that caused the violation or by highlighting the whole interval over which it happened, and whether it looks for excess or deficit duration.

Verification

  • ast and edsl compilation tests

Documentation

  • tutorial docs

I know that the constraints documentation is seriously lacking, especially in tutorials for common constraint patterns. I'll get that section started with this.

Future work

  • gimmie just a minute I'm gonna add an algorithm option to require minimum cumulative duration

@JoelCourtney JoelCourtney added feature A new feature or feature request constraints Anything related to the constraints domain labels Sep 5, 2023
@JoelCourtney JoelCourtney self-assigned this Sep 5, 2023
@JoelCourtney JoelCourtney requested a review from a team as a code owner September 5, 2023 22:08
@JoelCourtney JoelCourtney linked an issue Sep 5, 2023 that may be closed by this pull request
@JoelCourtney JoelCourtney temporarily deployed to e2e-test September 5, 2023 22:08 — with GitHub Actions Inactive
@JoelCourtney JoelCourtney temporarily deployed to e2e-test September 5, 2023 23:05 — with GitHub Actions Inactive
@JoelCourtney JoelCourtney force-pushed the 1015-implement-dedicated-rollingwindow-constraint-node branch from d6e68bd to 794143e Compare September 13, 2023 20:34
@JoelCourtney JoelCourtney temporarily deployed to e2e-test September 13, 2023 20:34 — with GitHub Actions Inactive
@JoelCourtney JoelCourtney temporarily deployed to e2e-test September 13, 2023 22:25 — with GitHub Actions Inactive
@JoelCourtney JoelCourtney force-pushed the 1015-implement-dedicated-rollingwindow-constraint-node branch from e013ee9 to 130e132 Compare September 15, 2023 23:15
@JoelCourtney JoelCourtney temporarily deployed to e2e-test September 15, 2023 23:15 — with GitHub Actions Inactive
@JoelCourtney JoelCourtney merged commit 0c7891d into develop Sep 18, 2023
6 checks passed
@JoelCourtney JoelCourtney deleted the 1015-implement-dedicated-rollingwindow-constraint-node branch September 18, 2023 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
constraints Anything related to the constraints domain feature A new feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement dedicated RollingWindow constraint node
2 participants