question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table isn't displayed with Date filter

See original GitHub issue

Issue Summary

The table breaks if there is a date filter

Steps to Reproduce

  1. with Python executor:
add_result_column(result, 'name', 'name', TYPE_STRING)
add_result_column(result, 'month__filter', 'month__filter', TYPE_DATE)
add_result_column(result, 'section__filter', section__filter', TYPE_STRING)


add_result_row(result, {
    'section__filter': 'c', 
    'month__filter': '2019-01-01', 
    'name': 'a'
})
  1. comment month__filter column both in add column and row sections and the table will be shown.

Technical details:

  • Redash Version: master

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
arikfrcommented, May 28, 2019

@gabrieldutra the keys idea is interesting.

I took at a stab at it while exploring what’s the issue and came up with:

https://github.com/getredash/redash/compare/fix-3836?expand=1

But it has the following flaws:

  1. Formats both dates and datetimes as datetime (we can live with this for now).
  2. Converts to string for comparison – this can be resolved with your suggestion.

You’re welcome to take it from here 😃

0reactions
gabrieldutracommented, May 28, 2019

I ran a few tests on it yesterday, this is caused by Antd Select not supporting data that is not String or Number, so Moment values get this error. I’ll try to open a PR for this today. My idea is to use the keys in the Select Options and then translate them on the onChange method by using values[key].

Read more comments on GitHub >

github_iconTop Results From Across the Web

Date table is not filtering the related table
Hi all, I have created the date Table and related the date column of date table to dateofpurchase column of Purchase table. And...
Read more >
Excel Not Grouping Dates in Filters? How to Fix It!
Reason 1: Grouping dates in filters is disabled · In Excel, go to File. · Click on Options (usually in the left bottom...
Read more >
Unable to filter data table based on date fields
I want to be able to filter based on date fields, not text fields, but this does not seem to be ... which...
Read more >
Date filter on table not working correctly - Mr. Excel
Hi Guys I have a table in i use to track orders I filter the column the order dates are in to organize...
Read more >
Date Table Filter Not Working on New Data Source - Power BI
I have the Enterprise DNA Date table active in my Power BI app and it is working successfully throughout the application except for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found