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

Limit displayed override duration to 'Hours of Prediction' after current time #363

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

bjorkert
Copy link
Contributor

Solves #354

This PR limits displayed override duration to 'Hours of Prediction' after current time.

@bjorkert bjorkert requested a review from marionbarker January 28, 2025 08:13
@marionbarker
Copy link
Collaborator

Status

This PR fixes the problem reported in Issue #354

Code Review

The proposed change will use duration of prediction for showing the currently acting override. This will limit how far in the future all overrides will be shown. Especially important for Trio (soon to be released as 1.0) which uses 30 days to indicate an indefinite override duration.

Test

Begin without the modification in this PR.
Set an infinite duration on the Trio phone that feeds the URL.
Build onto phone with the modification in this PR.

Graphic below shows before applying the PR on the left and with the PR on the right.

lf-pr-363

Copy link
Collaborator

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

2 participants