Skip to content

feat: add is_scheduled column to submission admin#4587

Open
marcoacierno wants to merge 2 commits intomainfrom
claude/issue-4585-20260217-0951
Open

feat: add is_scheduled column to submission admin#4587
marcoacierno wants to merge 2 commits intomainfrom
claude/issue-4585-20260217-0951

Conversation

@marcoacierno
Copy link
Member

Add a new column in the submission admin that shows whether a submission is scheduled in the conference.

Closes #4585

Generated with Claude Code

Add a new column in the submission admin that shows whether a submission
is scheduled in the conference. The column displays a boolean checkmark
using Django's admin.display decorator with boolean=True.

- Add `is_scheduled` to list_display in SubmissionAdmin
- Implement `is_scheduled` method that checks if submission has schedule items
- Optimize queryset with prefetch_related for schedule_items to avoid N+1
- Add tests for the new is_scheduled method

Closes #4585

Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pycon Error Error Mar 6, 2026 9:03am

@claude
Copy link
Contributor

claude bot commented Feb 17, 2026

Adds an is_scheduled boolean column to the submission admin list view, backed by a prefetch of schedule_items to avoid N+1 queries.

No issues found.

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.46%. Comparing base (62a0f4e) to head (8c29757).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4587      +/-   ##
==========================================
- Coverage   92.52%   92.46%   -0.07%     
==========================================
  Files         357      359       +2     
  Lines       10690    10760      +70     
  Branches      812      816       +4     
==========================================
+ Hits         9891     9949      +58     
- Misses        687      699      +12     
  Partials      112      112              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marcoacierno
Copy link
Member Author

@claude it could be more useful to show when it is scheduled too

@claude
Copy link
Contributor

claude bot commented Mar 6, 2026

Claude finished @marcoacierno's task in 3m 10s —— View job


Enhancing is_scheduled column to show scheduled time

  • Read current implementation
  • Update column to show scheduled datetime instead of boolean
  • Update tests
  • Push changes

Done! The is_scheduled column now shows the scheduled datetime(s) in YYYY-MM-DD HH:MM format instead of a boolean checkmark. If a submission has multiple schedule items, they will be shown comma-separated. Unscheduled submissions show "-".

Changes:

  • backend/submissions/admin.py - Updated is_scheduled method to return formatted datetime strings
  • Updated prefetch to include schedule_items__slot__day for efficient queries
  • Updated tests to verify the new behavior
    |

Update the is_scheduled column to display the actual scheduled datetime(s)
instead of just a boolean checkmark. This makes it easier for admins to
see when a submission is scheduled without having to open the schedule.

Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

Add a column in the submission admin that tells if the submission is scheduled in the conference

1 participant