-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Export] Check whether exported data vote counts add up #1889
Comments
Hi @metasoarous Update: I'm digging into this. The current clojure code at polis/math/src/polismath/darwin/export.clj Lines 605 to 616 in 2542ce1
seems to load the votes afresh from the votes table, then aggregating those per comment. It is not using any cached value from another table, at least that I can see. Since you mention (emphasis added):
I'm considering loading all the conversations and comparing the counts to find where the issue occured. Alternatively, to speed things up: could you maybe point to the export files where you've seen the problem, please? (saves me time -- if not no worries). |
I have also checked the new fully Typescript, synchronous real-time export route, as now used in report pages screenshotted below. I can confirm that the comment export code written by @ballPointPenguin and @colinmegill re-computes on-demand the vote sums for each comment straight from the polis/server/src/routes/export.ts Lines 118 to 148 in 2542ce1
So we're clear on that front too, the new exports are good :) To go further, if I have some time I'll load the old data exports and check the tallies, and compare to the new ones. (Setting expectations: I'm a bit busy with a few other issues and pull requests ahead of this :) ) PS: Screenshot of the new export, if you haven't seen them -- they have some Curl URLs too that can be of interest :) |
@metasoarous has flagged in compdemocracy/openData#6 that the previously exported data files have an issue:
We thus need to:
The text was updated successfully, but these errors were encountered: