vocdoni / vocdoni-node

A set of libraries and tools for the Vocdoni decentralized backend infrastructure, the main ground of our universally verifiable, privacy-centric and scalable digital voting protocol
GNU Affero General Public License v3.0
86 stars 17 forks source link

indexer: query to count elections by type #1114

Open altergui opened 1 year ago

altergui commented 1 year ago

while working on https://github.com/vocdoni/interoperability/issues/83 i found it impossible to "count elections by type"

this would allow advancing towards epic https://github.com/vocdoni/interoperability/issues/23

my understanding of "elections by type" is complex, given by three bools

(am i on track? @jpaulet @p4u)

so i can imagine a func that would receive 3 bool parameters and return the count, would suffice. i'd then query it with different combinations of bools and export the metrics.

mvdan commented 11 months ago

Is this still something that is needed, and I should work on it?

altergui commented 11 months ago

@p4u?

p4u commented 11 months ago

Makes sense