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
[sip-15] Displaying endpoints for all start/end time ranges #8817
[sip-15] Displaying endpoints for all start/end time ranges #8817
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8817 +/- ##
==========================================
- Coverage 65.84% 59.16% -6.69%
==========================================
Files 483 367 -116
Lines 24177 11679 -12498
Branches 2777 2862 +85
==========================================
- Hits 15920 6910 -9010
+ Misses 8079 4590 -3489
- Partials 178 179 +1
Continue to review full report at Codecov.
|
ping @etr2460 |
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.
accepting to unblock, but i think there's a cleaner way to do this
.map( | ||
(v, idx) => | ||
(v.replace('T00:00:00', '') || (idx === 0 ? '-∞' : '∞')) + | ||
(endpoints && value.includes(SEPARATOR) |
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.
instead of using value.includes
here, i think it's cleaner to use the 3rd argument for the callback in map and check if the length of the array is > 1. see details here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
superset/assets/src/explore/components/controls/DateFilterControl.jsx
Outdated
Show resolved
Hide resolved
superset/assets/src/explore/components/controls/DateFilterControl.jsx
Outdated
Show resolved
Hide resolved
…rol.jsx Co-Authored-By: Erik Ritter <erik.ritter@airbnb.com>
…rol.jsx Co-Authored-By: Erik Ritter <erik.ritter@airbnb.com>
CATEGORY
Choose one
SUMMARY
This PR adds the SIP-15 endpoints to all time ranges which include a start and/or end as not just those containing a timestamp. This helps to provide more transparency. Note the conditional logic has mostly been reverted to what was changed here.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
AFTER
TEST PLAN
CI and manual testing.
ADDITIONAL INFORMATION
REVIEWERS
to: @etr2460 @graceguo-supercat @michellethomas