Skip to content
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

fix: Grouping filter not working for grouping question #1469

Merged
merged 4 commits into from
Feb 4, 2025

Conversation

Veikkosuhonen
Copy link
Member

Fixes #1454

@Veikkosuhonen Veikkosuhonen merged commit 7051381 into master Feb 4, 2025
12 checks passed
@@ -105,7 +109,6 @@ const GroupSelector: React.FC<GroupSelectorProps> = ({
teachers: group.teachers,
studentCount: group.studentCount,
}))
.filter(group => group.studentCount && group.studentCount > 0 && group.studentCount < studentCount)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tätä mietin voiko Sisun datasta johtuen tulla näkyviin paljon ryhmiä joissa ei ole opiskelijoita (silloin kun kyseessä SISUn ryhmät eikä ryhmittelykysymys). Tuo group.studentCount < studentCount varmasti hyvä ottaa pois, koska voi jäädä joku ryhmä näkymättä jos esim. kaikki opiskelijat ovat ryhmässä Luennot, mutta vain osa ryhmässä harjoitukset.

@Veikkosuhonen Veikkosuhonen deleted the fix-grouping-question branch February 6, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ryhmittelykysymys ei toimi tuloksissa
2 participants