Add late days column for extensions#392
Open
noahnizamian wants to merge 47 commits intoberkeley-cdss:mainfrom
Open
Add late days column for extensions#392noahnizamian wants to merge 47 commits intoberkeley-cdss:mainfrom
noahnizamian wants to merge 47 commits intoberkeley-cdss:mainfrom
Conversation
- Implemented user_to_courses_controller.rb with role-based authorization - PATCH endpoint to toggle allow_extended_requests on enrollments - Authorization: only teachers can toggle - Uses lms_id FK pattern from LMS credentials refactoring - Added teacher? method to UserToCourse model for role checking - Complete spec with 7 test scenarios (instructor, student, missing resources) - All tests passing: 365 examples, 0 failures, 80.88% coverage
Mass approve/ reject functionality and UI changes for request table PR reviewed and merged into Golden Repo. Thank you!
Adjust DataTables data-priority values so only Actions, Assignment, and Name columns remain visible on small screens. Bulk action buttons are also hidden on mobile via Bootstrap responsive utility classes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
✅ @noahnizamian — Superconductor finished — View implementation | App Preview Standing by for instructions. |
Added developer login + fake data for local testing
Incorrect due dates on Canvas assignments
…lean Mobile view: hide checkbox and status columns on requests page
Main rebase
Add instructor email notifications for pending requests
Support Lead TA course role
The commit is passing all tests after rebasing. I also fixed the authorize_instructor method per the comment below. I'm merging this to main
Add student notes section to instructor view Tested and confirmed this works in development. All tests are passing after rebase
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.
General Info
original CDSS issue: #291
Changes
Adds an "approved days" column to the course enrollments page, where you can see the total number of late days each student has had approved from extension requests. it does not count rejected extensions, and if the student approved more than one request on the same assignment, it counts only the widest one. also the column is blank for staff roles
Testing
I added RSpec tests in spec/models/request_spec.rb for .total_approved_late_days_by_user which
Also added controller spec in spec/controllers/courses_controller_spec.rb to verify that @approved_late_days is assigned
Documentation
No documentation needed
Checklist