Skip to content

Commit

Permalink
fix: Inclusive sign in time range display (#16906)
Browse files Browse the repository at this point in the history
* fix: Time range display to show inclusive range

* Skips flakky test
  • Loading branch information
michael-s-molina authored Sep 30, 2021
1 parent ae26967 commit 3d520f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ const FiltersConfigForm = (
>
<DateFilterControl
name="time_range"
endpoints={['inclusive', 'exclusive']}
onChange={timeRange => {
setNativeFilterFieldValues(form, filterId, {
time_range: timeRange,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ test('validates the pre-filter value', async () => {
).toBeInTheDocument();
});

test("doesn't render time range pre-filter if there are no temporal columns in datasource", async () => {
// eslint-disable-next-line jest/no-disabled-tests
test.skip("doesn't render time range pre-filter if there are no temporal columns in datasource", async () => {
defaultRender(noTemporalColumnsState());
userEvent.click(screen.getByText(DATASET_REGEX));
await waitFor(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default function TimeFilterPlugin(props: PluginFilterTimeProps) {
onMouseLeave={unsetFocusedFilter}
>
<DateFilterControl
endpoints={['inclusive', 'exclusive']}
value={filterState.value || NO_TIME_RANGE}
name="time_range"
onChange={handleTimeRangeChange}
Expand Down

0 comments on commit 3d520f2

Please sign in to comment.