-
Notifications
You must be signed in to change notification settings - Fork 21
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
[AERIE-1911] - Range check recurrence interval #232
Merged
pranav-super
merged 3 commits into
develop
from
feature/AERIE-1911--range-check-recurrence-interval
Jul 7, 2022
Merged
[AERIE-1911] - Range check recurrence interval #232
pranav-super
merged 3 commits into
develop
from
feature/AERIE-1911--range-check-recurrence-interval
Jul 7, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pranav-super
requested review from
patkenneally,
pcrosemurgy,
mattdailis,
goetzrrGit,
dyst5422,
adrienmaillard,
camargo and
JoelCourtney
as code owners
June 22, 2022 23:42
mattdailis
reviewed
Jun 23, 2022
scheduler/src/main/java/gov/nasa/jpl/aerie/scheduler/goals/RecurrenceGoal.java
Outdated
Show resolved
Hide resolved
patkenneally
requested changes
Jun 24, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔻 Issues to address before merge
🔶 Requests that should not block merge, but should at least be discussed
🔵 Recommendations that can be ignored if desired
scheduler/src/main/java/gov/nasa/jpl/aerie/scheduler/goals/RecurrenceGoal.java
Outdated
Show resolved
Hide resolved
scheduler/src/test/java/gov/nasa/jpl/aerie/scheduler/TestRecurrenceGoal.java
Outdated
Show resolved
Hide resolved
scheduler/src/main/java/gov/nasa/jpl/aerie/scheduler/goals/RecurrenceGoal.java
Outdated
Show resolved
Hide resolved
scheduler/src/main/java/gov/nasa/jpl/aerie/scheduler/goals/RecurrenceGoal.java
Show resolved
Hide resolved
pranav-super
force-pushed
the
feature/AERIE-1911--range-check-recurrence-interval
branch
3 times, most recently
from
June 28, 2022 20:23
6167879
to
03acf09
Compare
JoelCourtney
approved these changes
Jun 28, 2022
scheduler/src/main/java/gov/nasa/jpl/aerie/scheduler/goals/RecurrenceGoal.java
Outdated
Show resolved
Hide resolved
pranav-super
force-pushed
the
feature/AERIE-1911--range-check-recurrence-interval
branch
2 times, most recently
from
July 5, 2022 21:30
8dabd66
to
fb59945
Compare
patkenneally
approved these changes
Jul 7, 2022
pranav-super
force-pushed
the
feature/AERIE-1911--range-check-recurrence-interval
branch
from
July 7, 2022 17:48
fb59945
to
579708b
Compare
pranav-super
deleted the
feature/AERIE-1911--range-check-recurrence-interval
branch
July 7, 2022 18:03
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The focus of the PR is to range check recurrence intervals, that is, not allow negative recurrence intervals. To do this, we catch the error within the builder of the
RecurrenceGoal
(specifically infill()
). Also, since the RecurrenceGoal stores its interval as a window (with the start representing a minimum recurrence interval, the end representing a maximum, a feature not yet supported), that was replaced with a recordMinMaxAllowableRecurrenceInterval
just to make it more explicit.Verification
A new test was added to the existing recurrence goal tests - TestRecurrenceGoal.
Similarly, another test was added to the integration tests, to verify the entire process worked.
Documentation
Just an update to the recurrence goal section.
Future work
This might play weird with the AnalyzeWhen ([AERIE-1880]) PR, just because of the
MinMaxAllowableRecurrenceInterval
fix.