Skip to content

Commit 5815b22

Browse files
committed
issue-814 Rename created_date to updated_date in assignments and related components
issue-814 Rename created_date to updated_date in assignments and related components issue-814 Implement visibility management for assignments with new dropdown component issue - 814 Add local date handling methods and update DateTimePicker to support local time issue-814 Refactor date handling to use canonical UTC methods and improve date formatting in assignment components issue-814 Add DateTimePicker component and update assignment forms to use it issue-814 Add created_date and visible_on fields to assignments issue-814 Rename created_date to updated_date in assignments and related components
1 parent e152918 commit 5815b22

30 files changed

Lines changed: 1756 additions & 199 deletions

File tree

bases/rsptx/admin_server_api/routers/instructor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,7 @@ async def _copy_one_assignment(
10811081
course=target_course.id,
10821082
name=old_assignment.name,
10831083
duedate=due_date,
1084+
updated_date=datetime.datetime.now(),
10841085
description=old_assignment.description,
10851086
points=old_assignment.points,
10861087
threshold_pct=old_assignment.threshold_pct,

bases/rsptx/admin_server_api/routers/lti1p3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
fetch_instructor_courses,
7878
validate_user_credentials,
7979
)
80+
from rsptx.db.crud.assignment import is_assignment_visible_to_students
8081

8182
from rsptx.configuration import settings
8283
from rsptx.logging import rslogger
@@ -445,7 +446,7 @@ async def launch(request: Request):
445446
status_code=400, detail=f"Assignment {lineitem_assign_id} not found"
446447
)
447448

448-
if not rs_assign.visible and not message_launch.check_teacher_access():
449+
if not is_assignment_visible_to_students(rs_assign) and not message_launch.check_teacher_access():
449450
raise HTTPException(
450451
status_code=400,
451452
detail=f"Assignment {rs_assign.name} is not open for students",

0 commit comments

Comments
 (0)