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

Create a policy with a time span or evaluation time, and using operators '<=" or '>', not working properly #846

Closed
jkbquabeck opened this issue Sep 24, 2024 · 0 comments · Fixed by #851
Assignees
Labels
kind/bug Something isn't working. The software does not behave as expected or specified.

Comments

@jkbquabeck
Copy link
Collaborator

Description - What happened? *

When using the "less than" policy with a time restriction, for example, < 24/09/2024, the tooltip currently displays 2024-09-24T21:00:00.000Z, which is an ISO timestamp. However, since we are applying a "less than" restriction, the tooltip should display the beginning of the day, not the end. In my opinion, it should show 2024-09-23T21:00:00.000Z instead.

As previously mentioned in the earlier comments, the issue regarding the operators < and > within the policy time span restrictions is not fully resolved. After retesting, we have found that the fix is still not working as expected in certain scenarios.

Attached is a screenshot showing the failing scenarios, which are as follows:

"Less than today" scenario - The data offer is still being displayed when it should not be visible.
"Higher than today" scenario - Similarly, the data offer is being displayed when it shouldn't, as the policy dictates that it should not be visible.

image

Expected Behavior *

stated above

Observed Behavior *

stated above

Steps to Reproduce

No response

Context Information

No response

Relevant log output

No response

Screenshots

No response

@jkbquabeck jkbquabeck added the kind/bug Something isn't working. The software does not behave as expected or specified. label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working. The software does not behave as expected or specified.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants