Closed moshthepitt closed 4 years ago
My suspicion is that our actionCreators that we're calling should be wrapped in a conditional to only save results to stores when there are results to save.
@cKellyDesign I think we should do that regardless, but I feel that it is not the core problem - whether something goes into the Redux store or not shouldn't matter - ama?
So Zambia is currently doing this
@cKellyDesign ^^
@moshthepitt Is there a level 0 Jurisdiction for Zambia
?
yes there is
right now Zambia loads actually (coz we got some data synced) @cKellyDesign
@moshthepitt looks like it's working now in production
yeah we got data in. The screenshot above yours happens when there is no data for jurisdictions
@cKellyDesign also, currently the map page is not showing on my end in Zambia
currently the map page is not showing on my end in Zambia
@moshthepitt Seems there are no Jurisdicitons in the superset slice with this planId: https://superset.reveal-zm.smartregister.org/superset/slice_json/160?form_data={%22adhoc_filters%22:[{%22clause%22:%22WHERE%22,%22expressionType%22:%22SIMPLE%22,%22comparator%22:%229f1e0cfa-5313-49ff-af2c-f7dbf4fbdb9d%22,%22operator%22:%22==%22,%22subject%22:%22plan_id%22}],%22row_limit%22:1}
@cKellyDesign this is 100% Superset behaving badly, the unfiltered slice https://superset.reveal-zm.smartregister.org/superset/slice_json/160 has all the jurisdictions with that plan id :(
@moshthepitt yeah actually I just realized, it's passing when in the table, seems the only reason this is failing is because the map is not calling it with the sorting parameter which is being used in the Table.
@cKellyDesign I believe it is caused by weird caching behaviour in Superset where that particular query was cached with no results
ah yeah i was also wondering about the caching, how long does the cache persist?
1200 sec right now
@moshthepitt is this still an issue?
Not sure. Lets close for now.
As in the site completely breaks with no recourse apart from a refresh. We should handle this more gracefully. Currently happening in Zambia production.