CartoDB / observatory-extension

BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

list available dates in obs_search #207

Open andy-esch opened 8 years ago

andy-esch commented 8 years ago

OBS_Search would be more useful if we could expose the available date ranges.

@talos do you have plans for exposing available dates?

cc @AbelVM

talos commented 8 years ago

TBH I don't really think obs_search in its current form is particularly maintainable. I prefer the approach of OBS_GetAvailableNumerators. You could use that function as is, but do a bit of post-filtering based off of name and valid_geom to obtain the same results as OBS_Search.

I could imagine rewriting OBS_Search to make those filters just part of the API. Do you think this would be worthwhile? Do we ever really see anybody but power users using this feature? If not, I think eventually OBS_Search should just be deprecated.

talos commented 8 years ago

Also, do answer the second question... those were planned for sprint but weren't reflected in the issues, so I've opened some: https://github.com/CartoDB/bigmetadata/issues/111 https://github.com/CartoDB/bigmetadata/issues/110

andy-esch commented 8 years ago

Yeah, looks like OBS_GetAvailableNumerators is good for the purposes here. I imagine, though, people using the catalog to find the information about the measures they are interested in instead. I'd be curious about the usage of OBS_Search, and be surprised if it's used more than a dozen or two times.

AbelVM commented 8 years ago

My two cents: source and date should be available and exposed in the catalog and the Builder UI.

talos commented 8 years ago

Agreed. The designs for the Builder UI include both of these things (including a nifty date selector), and I'm working on updating the catalog right now.