-
Notifications
You must be signed in to change notification settings - Fork 27
Remove support for speakers and sessions #161
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
Conversation
|
Hi @matrixise. Are you looking for another approval on this? |
|
I'm going to update this branch with the latest changes from master, and then I'll request a review from @ArcaneIRE. |
bb4a763 to
e37ccab
Compare
ArcaneIRE
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
pythonie/pythonie/settings/base.py
Outdated
|
|
||
| # Absolute filesystem path to the Django project directory: | ||
| PROJECT_ROOT = dirname(dirname(dirname(abspath(__file__)))) | ||
| print(f'{PROJECT_ROOT=}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thank you and sorry for the delay!
- Resolved modify/delete conflicts by keeping speakers app deletion - Updated CLAUDE.md to remove references to speakers/sessions functionality - Merged latest changes from master including CI/CD improvements
- Removed speakers/sessions directory completely including remaining migrations - Updated CLAUDE.md to remove speakers app documentation - Updated README.md to remove speakers/sessions references - Updated CONTRIBUTING.md with alternative examples - Updated DEVELOPMENT.md to remove all speakers/sessions sections - Removed speakers.html template - Updated generate_sample_data.py to remove Speakers page creation - Updated .claude/commands/commit.md examples to use alternative models
- Removed pycon:import:sessionize task - Removed pycon:import:sessionize:json task These management commands no longer exist after speakers app removal.
Creates core migration 0010_remove_speakers_tables.py that: - Drops all database tables from the removed speakers app - Handles table dependencies correctly (CASCADE) - Drops tables in order: junction tables, then FK tables, then base tables - Is irreversible (requires backup to rollback) Tables dropped: - speakers_session_speakers (M2M junction table) - speakers_session - speakers_speaker - speakers_room - speakers_talkspage - speakers_speakerspage This migration should be run on production before deploying the code that removes the speakers app from INSTALLED_APPS.
Documents the complete deployment procedure including: - Pre-deployment checklist - Step-by-step migration instructions - Rollback procedure - Troubleshooting guide - Post-deployment cleanup This guide should be followed when deploying PR #161 to production.
Updates core.0010_remove_speakers_tables to: - Detect database vendor (PostgreSQL vs SQLite) - Use CASCADE only for PostgreSQL (not supported in SQLite) - Temporarily disable foreign keys for SQLite - Use f-strings for conditional CASCADE syntax This allows the migration to run on both development (SQLite) and production (PostgreSQL) environments. Tested successfully on SQLite - all speakers tables removed.
- Added django:migrate:postgres task to run migrations on PostgreSQL in docker-compose - Added django:showmigrations task to view migration status with PostgreSQL - Both tasks use pythonie.settings.pgdev for PostgreSQL database configuration Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
- Update quote style to use double quotes consistently Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Remove the support of the speakers because we don't use them in the site.