Issues generating grade reports with hidden content

Hello there!

I’m investigating an issue on ironwood.2 where the grade report fails to recalculate grades when some content is hidden based on start and due dates. The task works fine for staff users but fail for students. The documentation states that using schedules is the right way of hiding graded content.

The task properly recalculated grades when the subsections were scheduled to be visible.

After some debugging, I found that the subsection gets hidden when fetching the structure for these students because of the default transformers applied here.

If I force the grading to use no transformers whatsoever by including transformers=BlockStructureTransformers(transformers=None) it does work.

Does anyone know if this is a bug or something that might be the cause for this?