Repository navigation
Export every student's sections, and find a student's sections - #91
Merged
Merged
Conversation
…CSV exports from running formulas Admins can export a CSV of every student in the offering with their section of each type, or "Floating" for a lab or discussion they aren't in, and search students by name or email to see their sections. Exported cells that start with =, +, -, @, a tab or a carriage return get a leading apostrophe so spreadsheets open them as text, in the new export and in Export Rosters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #91 +/- ##
==========================================
+ Coverage 85.41% 85.82% +0.40%
==========================================
Files 31 31
Lines 2359 2406 +47
==========================================
+ Hits 2015 2065 +50
+ Misses 344 341 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🚀 Staging Preview Deployed! URL: https://preview-sections-pr-91-137456085712.us-west1.run.app |
…ters The imports, exports, student search, and remove and reset tools move from General to a new Roster Management tab, between General and Lab. Export Rosters becomes Export Section Assignments, with a note that its format is what Import Section Assignments reads, so it can be edited and imported back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
So exports from different courses don't overwrite each other in a downloads folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
So exports from different semesters of a course don't overwrite each other either. The term comes from the offering's start date, and is left out when the offering has none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Students Only API Keys had a margin above its content; the others sat against the line under the tabs. The margin now goes on the tab strip, for every tab. "Sync bCourses" becomes "Sync bCourses Students", since it only syncs students. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tab opens with the setup steps (sync bCourses students, import sections, import section assignments) and says they're safe to re-run, with Sync bCourses Students now the first button. Then the exports and their notes, student search, the tutoring tools with their note below them, and the remove and reset tools last. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…names The two export notes become one, and notes that name a button quote its exact label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One bullet per export, in button order. "Export Full Attendances" says it includes every student with attendance recorded, even ones removed from a section or the offering. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight rows instead of the browser's default two, so a message of a few lines fits without scrolling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit also moved it below the box and added a label, which wasn't wanted. Only the taller box stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5.
What's new
Export Students (Admin → Roster Management, next to the other exports, admins only): a
students.csvwith one row per student in the offering. It has columnsName,Email, then one column per section type the course has (Lab, Discussion, Tutoring). Each cell gives the section ("Yu Long, M 08:00a, Soda 271"), orFloatingif the student has no lab or discussion section. Tutoring is opt-in, so a student without one gets a blank cell, notFloating. Staff are left out.Find a student (Roster Management): search by part of a name or email. Each result links to the student's history page and lists their sections in this offering, each linking to its section page. It shows "Lab: Floating" / "Discussion: Floating" for the types the course has. The
search_studentsAPI is staff-only and returns up to 25 matches.%and_are matched literally.From the issue's comments
=,+,-,@, a tab or a carriage return now gets a leading', so spreadsheets open it as text. This applies to the new export and to Export Section Assignments (formerly Export Rosters), which had the problem. (The comment points tostate.py:1011, but lines have shifted since. It meantexport_rosters.) Export Full Attendances is JSON, so it doesn't need this.Also
export_rosters, so API key scripts keep working.cs61a-fa26-rosters.csv,cs61a-fa26-students.csv,cs61a-fa26-attendances.json. The course comes from its Canvas code, lowercased with anything but letters and digits dropped ("COMPSCI 61A" givescompsci61a). The term comes from the offering's start date (Jan–Aprsp, May–Julsu, Aug–Decfa) and is left out if the offering has none. Exports from different courses and semesters no longer overwrite each other.export_rostersnow shares its day and time formatting with the new export (section_day_and_start). Its output hasn't changed: weekdays still use the import format's codes (M–F), and other days are blank.Docs
The issue asks for the user docs at berkeley-cdss/docs to be updated: berkeley-cdss/docs#84, stacked on the open Sections docs PRs there.
Testing
tests/unit/test_student_export_search.py: export rows, Floating vs. Tutoring, offering isolation, formula neutralizing in both exports, admin- and staff-only access, and literal search wildcards.tests/e2e/test_admin.py::test_admin_finds_a_students_sections: search in the browser.🤖 Generated with Claude Code