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

Inconsistent Results When Using Default 'From Date' and 'To Date' Values in Job Query Page #507

Open
ashenr opened this issue Jun 6, 2024 · 1 comment
Labels
component:sonalyze sonalyze/* component:sonarlog sonalyze/sonarlog/* task:bug Something isn't working

Comments

@ashenr
Copy link
Contributor

ashenr commented Jun 6, 2024

In the job query page, the default values for "From date" and "To date" are mentioned as "yesterday" and "today" respectively.

But when these values are typed in the input fields with the dates for yesterday and today, the results are different than they were set empty.

The results shown in the table should be the same when they are empty or when correct dates are set.

@ashenr ashenr added task:bug Something isn't working component:dashboard HTML and JS component:sonalyzed sonalyzed/* and related and removed component:dashboard HTML and JS labels Jun 6, 2024
@lars-t-hansen
Copy link
Collaborator

Yeah... technically I think that the default for "from" is "24 h before now" which will be rounded down to the beginning of yesterday, and the default for "to" is "now" which will be rounded up to the beginning of tomorrow. These are probably the correct defaults, all things considered, but I'm happy to discuss that. Maybe the text for the "to date" should be something else, or maybe the rounding on an explicit "to date" is broken / should be something other than what it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sonalyze sonalyze/* component:sonarlog sonalyze/sonarlog/* task:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants