objectscript / LightPivotTable

Lightweight pivot table representation for MDX2JSON source for InterSystems Cache
MIT License
3 stars 4 forks source link

Can't quit from listing mode in case of "no data" filter #10

Closed evshvarov closed 6 years ago

evshvarov commented 7 years ago

If the filter results in now rows LPT switches into "no rows" mode and never back. Reproduce here: http://146.185.143.59/dsw/index.html#!/d/Date%20Filter%20Demo.dashboard?ns=SAMPLES#%2F%3Fns=SAMPLES lptlistingbug

Another strange but similar thing can be reproduced here: https://analytics.community.intersystems.com/dswpub/index.html#!/d/Public/Authors/AuthorsStats.dashboard?ns=COMMUNITY&embed=1 After running the filter with no rows it turns listing mode on and shows no data forever. lptlistingbug2

nikitaeverywhere commented 7 years ago

Thanks Evgeny! Will look at this issues on the next week, I'm currently out for a while.

nikitaeverywhere commented 7 years ago

Regarding to (1), it is most likely DSW issue. Technically, when the filter is set, DSW triggers changeBasicMDX method of LPT. See what I was able to debug:

2017-07-29_143641 2017-07-29_144024

And now if I uncheck all, the MDX gets magically changed to DRILLTHROUGH:

2017-07-29_143911

Which gives the exact result you demonstrated.

nikitaeverywhere commented 7 years ago

P.S. Special thanks for the GIFs! :)

nikitaeverywhere commented 7 years ago

I see the same issue with (2):

2017-07-29_144726 2017-07-29_144820

The incoming MDX changes to DRILLTHROUGH.

nikitaeverywhere commented 6 years ago

Closing as duplicate of #14.