lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

[0.19] Implement API for analytics of votes given by a person

Open MrKaplan-lw opened this issue 8 months ago • 4 comments

This contains some rather complex SQL, but it's not possible to simply replicate that with Diesel without losing performance or consistency afaik.

MrKaplan-lw avatar May 08 '25 14:05 MrKaplan-lw

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.

Nutomic avatar May 09 '25 09:05 Nutomic

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.

MrKaplan-lw avatar May 09 '25 10:05 MrKaplan-lw

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.

Nutomic avatar May 09 '25 10:05 Nutomic

image

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

MrKaplan-lw avatar May 09 '25 10:05 MrKaplan-lw