FeatureBaseDB / demo-taxi

BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Reusable general-purpose query builder #4

Open alanbernstein opened 7 years ago

alanbernstein commented 7 years ago

I'd rather put this on the pilosa repo, but I think not all the info here is appropriate for that.

@yuce's PR at https://github.com/pilosa/demo-taxi/pull/3 expands the "Intersect" tab to allow intersections of (unions within a frame). This makes the intersect queries more practically meaningful because they work on ranges of numerical values instead of single values. This is an improvement, but it's also a special-case step in the direction of a general query builder. Our next efforts in front-end work should at least be aware of that goal.

This issue is already ticketed at https://github.com/pilosa/pilosa/issues/240. That gives us a good starting point for building a general-purpose app to demonstrate the power of Pilosa. We will also want to expand on that. With a little planning, we can identify lower-level reusable components and build those as the need arises.

Ideally, we could use the same components for both the webUI and this demo app (or others - maybe a demo section on pilosa.com?). This is blocked by a few things:

yuce commented 7 years ago

I think this is a great note to start the discussion on UI development for Pilosa. In addition to @alanbernstein 's thoughts:

We have a (currently under review) way of adding arbitrary handlers to the Pilosa server at the compile time in the form of handler plugins. I think both the taxi demo and webui (and even docs) are perfect candidates to be packaged as handler plugins. Packaging taxi demo and webui (probably docs too) as plugin bundles has the following advantages: