chop-dbhi / cilantro

Official client for Harvest (http://harvest.research.chop.edu)
http://cilantro.harvest.io
Other
28 stars 8 forks source link

Wait for context/view save before opening results page #692

Closed naegelyd closed 10 years ago

naegelyd commented 10 years ago

Fix #690.

Signed-off-by: Don Naegely naegelyd@gmail.com

murphyke commented 10 years ago

Hi Don, this works great, but it does reveal the fact that it can take a shockingly long time "merely" to save the view and context.

I will obviously accept this change as is, but I think we need an activity indicator here, maybe with text "Preparing saved query".

Aside: this delay is something that will improve greatly as more caching is implemented. For instance, there are 16 duplicate queries each for every field used in the context, e.g.:

SELECT DISTINCT "core_sample"."status" FROM "core_sample" ORDER BY "core_sample"."status" ASC

if core_sample.status is used in the where clause.

See https://gist.github.com/murphyke/dc1daa75bf65c84ce028 for all database queries issued between clicking a saved query and having the context and view be saved.

murphyke commented 10 years ago

@ByronRuth I know you're multitasking, but I'm interested in this making it into a Cilantro release as soon as is feasible, because saved queries frequently return incorrect results, which is preventing us from publicizing some new public saved queries in PCGC.

bruth commented 10 years ago

@murphyke Creating a release now. Note that this does not include #691

murphyke commented 10 years ago

Ah, I need both but may cobble something together temporarily if I have to.

bruth commented 10 years ago

@murphyke @naegelyd was quick, it will contain the revert, just not the sticky header.

bruth commented 10 years ago

@murphyke That is suitable? At least the cells will not appear destroyed.

murphyke commented 10 years ago

Yes, that's fine

bruth commented 10 years ago

@murphyke https://github.com/cbmi/cilantro/releases/tag/2.3.2

murphyke commented 10 years ago

@bruth thx