bigtsquery icon indicating copy to clipboard operation
bigtsquery copied to clipboard

Report hit count

Open DanielRosenwasser opened this issue 7 years ago • 6 comments

@rbuckton and I were trying to use this to determine the number of projects that currently use an exported decorated class, but unfortunately the tool doesn't report a count of results. Is there a way to display

  • the number of files returned that satisfies the query?
  • the number of total files on GitHub that satisfy the query?

DanielRosenwasser avatar Jul 10 '18 19:07 DanielRosenwasser

First one is pretty trivial, I will add it.

As for the second one - this means we will have to run the query twice, once for the results and once for the count (in there are more than 100 results). Perhaps we could add a button that will run the query a second time to fetch an estimate of total results.?

urish avatar Jul 10 '18 22:07 urish

Was there any progress on this?

rbuckton avatar Sep 24 '18 22:09 rbuckton

Perhaps we could add a button that will run the query a second time to fetch an estimate of total results.?

That would be great!

rbuckton avatar Sep 24 '18 22:09 rbuckton

@urish I started tinkering with this in #8, but can't really verify behavior since there's no documentation on how to set up all the backing data. Honestly, I was hoping just to get some metrics to include in a presentation to TC39 this week, though I doubt the timeframe to get this in will work out,

rbuckton avatar Sep 24 '18 23:09 rbuckton

My end goal is to run this query: ClassDeclaration:has(ExportKeyword):has(Decorator) and determine the number of hits across all public projects.

rbuckton avatar Sep 24 '18 23:09 rbuckton

@rbuckton Thank you!

Regarding the documentation - please let me know what is missing and let's create it together. Let's discuss in your PR

urish avatar Sep 25 '18 13:09 urish