[0.19] Implement API for analytics of votes given by a person
This contains some rather complex SQL, but it's not possible to simply replicate that with Diesel without losing performance or consistency afaik.
Generally new features should be on the main branch, otherwise it will be a lot of hassle to keep bug fixes and enhancements in sync across 0.19 and main.
my development target is currently 0.19, as that is the version we run on lemmy.world. when the 0.19 PR is acceptable overall I can create an additional PR against main, but it will duplicate my work having to do all those adjustments on two branches before it's ready. this code is already applied as a patch to lemmy.word with some minor differences, so the 0.19 code doesn't need extra effort for backporting from that. as this only impements new functionality and doesn't change any existing APIs there should be minimal differences to what would be applied to main anyway.
Makes sense. Do you also have some tool to visualize the output of this endpoint? If so it would be nice if we could see some example screenshots.
this is what i got so far, i'll see about having post and comment votes in tables next to each other.
https://github.com/Fedihosting-Foundation-Forks/lemmy-ui/compare/5093717aa64baab6baf5de16ad1ebe7dad5aa1b1...30f0ea6f4c61861ffc5dff9df5554c113eb229b5