Skip to content

Conversation

@ArnavBallinCode
Copy link
Contributor

@ArnavBallinCode ArnavBallinCode commented Nov 20, 2025

Work In progress

Implements #276

- Add AttendeeProfile model to store anonymized demographic data
  - Fields: job_role, job_title, country, region, experience_level, languages, industry, company_size, heard_about
  - Automatically populated from pretix registration data via webhook

- Update webhook handler to create/update AttendeeProfile for paid orders
  - Only creates profiles for completed (paid) registrations
  - Extracts demographic data from pretix answers

- Enhance fetch_pretix_orders management command
  - Syncs attendee profiles alongside orders
  - Provides detailed progress feedback

- Add attendee statistics calculations with caching
  - Breakdown by role, country, region, experience, industry, company size
  - 5-minute cache TTL for performance
  - Integrates with existing stats infrastructure

- Add attendee stats display with Google Charts
  - New templates for stats and charts
  - Horizontal bar charts for demographic breakdowns
  - Integrated into main /stats page

- Add comprehensive test coverage
  - Model tests for AttendeeProfile
  - Webhook tests for profile creation/exclusion
  - Statistics calculation tests
  - 100% code coverage maintained

- Register AttendeeProfile in Django admin
  - List display with key fields
  - Filters and search capabilities
- Fix column header format in arrayToDataTable
- Change from outputting raw Python list to proper JS array format
- Now matches volunteer/sponsorship chart template pattern
@netlify
Copy link

netlify bot commented Nov 20, 2025

Deploy Preview for pyladiescon-portal-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit efb0d4a
🔍 Latest deploy log https://app.netlify.com/projects/pyladiescon-portal-docs/deploys/691f6a2c0bc1a40007c24b6f
😎 Deploy Preview https://deploy-preview-290--pyladiescon-portal-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ArnavBallinCode ArnavBallinCode marked this pull request as draft November 28, 2025 15:12
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.

1 participant