-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fix: update the time filter for 'Last Year' option in explore #10829
fix: update the time filter for 'Last Year' option in explore #10829
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10829 +/- ##
==========================================
+ Coverage 61.23% 65.47% +4.24%
==========================================
Files 802 803 +1
Lines 37815 37930 +115
Branches 3557 3559 +2
==========================================
+ Hits 23155 24836 +1681
+ Misses 14474 12988 -1486
+ Partials 186 106 -80
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Let's get some tests around this. Date functionality is weird enough :) |
b63167c
to
601cd5f
Compare
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.
LGTM, thanks for adding some tests
…l_access/dashboard_by_id_endpoints * upstream/master: (29 commits) fix(presto): default unknown types to string type (apache#10753) feat(row-level-security): add base filter type and filter grouping (apache#10946) docs: add gallery screenshot & link in README (apache#10988) docs: add a "Gallery" page (apache#10968) build: add PR lint action (apache#10990) adding filters back that caused issues (apache#10989) chore: selectors refactor in SQLLab test suite (Cypress) (apache#10944) ESLint: Remove ts-ignore comments (apache#10933) style: fix checkbox color (apache#10970) fix: changed disabled rules in datasets module (apache#10979) fix: update the time filter for 'Last Year' option in explore (apache#10829) fix: use nullpool even for user lookup in the celery (apache#10938) Allow empty observations in alerting (apache#10939) fix: re-enabling several globally disabled lint rules (apache#10957) fix: setting specific exceptions common/query_context.py (apache#10942) Pylint disabled rule `pointless-string-statement` is not raising warining anymore - removing (apache#10975) fix: pylint disabled rules in dashboard/api.py (apache#10976) fix: removed disabled lint rule `too-many-locals` in connectors/base/models.py (apache#10958) ESLint: Re-enable rule no-access-state-in-setstate (apache#10870) fix: simply is_adhoc_metric (apache#10964) ...
…#10829) * Update explore time filter ranges * rm console statements * only update moment calculation for years * tests * add open/close test
SUMMARY
Currently in the explore > time > defaults > LAST YEAR filter, relative time is used, resulting in a filter that shows the past 365 days from the current date. We want it to apply to the full previous year (in this case, 01/01/2019-01/01/2020).
moment
logic inDateFilterControl
foryears
unitBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TEST PLAN
ADDITIONAL INFORMATION