hedy icon indicating copy to clipboard operation
hedy copied to clipboard

🪲 Discrepancy in program count

Open Felienne opened this issue 1 year ago • 4 comments

One more from the same school.

It seems teachers see a really different number of programs than students. Here is an example where that happens for user Sofie1bs:

IMG_7851

Other kids in the class also had counts over a hundred. But the teacher sees this:

image

Felienne avatar Mar 01 '24 10:03 Felienne

Maybe another small one for you @hasan-sh? No rush though, more of a palet cleanser between cypress tests and the translation pipeline?

Felienne avatar Mar 01 '24 10:03 Felienne

@Felienne could you explain what the problem here is?

hasan-sh avatar Jun 25 '24 12:06 hasan-sh

As explained in the images, the user shown has 147 programs in their own public page, but only 4 when seen from the teacher's view (I blacked out the names of the other students on the second picture, maybe that is confusing?)

On Tuesday, June 25, 2024, Hasan_sh @.***> wrote:

@Felienne https://github.com/Felienne could you explain what the problem here is?

— Reply to this email directly, view it on GitHub https://github.com/hedyorg/hedy/issues/5199#issuecomment-2188840247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHVBJOKQ4GZZGPSOSNTQTDZJFQ6VAVCNFSM6AAAAABEBQ5J6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYHA2DAMRUG4 . You are receiving this because you were mentioned.Message ID: @.***>

Felienne avatar Jun 25 '24 14:06 Felienne

147 programs in their own public page, but only 4 when seen from the teacher's view

Correct! The problem was that in their public page, the created programs count is actually the account of how many times they run a program; run_programs property from the achievements table. I've changed that to work as the labels suggests; i.e., the number of created programs.

hasan-sh avatar Jul 02 '24 10:07 hasan-sh