datart icon indicating copy to clipboard operation
datart copied to clipboard

Reopen: Dashboard date filter issues

Open clementchong opened this issue 2 years ago • 3 comments

Datart Version 1.0.0b4

Describe the bug With reference to https://github.com/running-elephant/datart/issues/1247, the dashboard date filters are still having inconsistencies for good user experience. The user selections are not always used as per expectation and can lead to incorrect data results.

This is regression test result, sharing for your reference and fix.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

OK: Exact date start/end filter works. The SQL uses < for end date is fine since it is not visible to user. image

NOT OK: From frontend, user specified start/end timestamp should be both inclusive but SQL shows >= and <. image

NOT OK: Changing from datetime to date does not reset the time to 00:00:00 image

NOT OK: Relative date uses 1st day of the month as reference. The end date displayed is not with SQL filter. image image

NOT OK: The relative date using "FROM" does not allow negative value, so effectively is same as current month. When value 2 is specified, the start date is +2 months to 1st day of current month. However, the frontend and SQL are different. image

Environmental details: (optional, depending on where the bug occurs)

  • OS: [e.g. Windows 10]
  • Source Database: [e.g. MySQL 8.0.26]
  • Browser: [e.g. chrome 94, safari 15]

Additional context Add any other context about the problem here.

clementchong avatar Jul 21 '22 04:07 clementchong

We will add a new setting with user timezone setting in user profile, it will help to resolve related time issue.

Cuiyansong avatar Aug 05 '22 02:08 Cuiyansong

We will add a new setting with user timezone setting in user profile, it will help to resolve related time issue. ok but I do not understand how timezone setting would cause this reported issue. When this new setting is available, I would check. Thank you.

clementchong avatar Aug 05 '22 02:08 clementchong

@lyp000119 please help to look at this date issue

Cuiyansong avatar Aug 18 '22 05:08 Cuiyansong