pycon icon indicating copy to clipboard operation
pycon copied to clipboard

Move API concerns from pretix/__init__.py to api/pretix/types.py

Open marcoacierno opened this issue 1 month ago • 2 comments

Fixes #3976

Summary

This PR moves Strawberry GraphQL types from pretix/__init__.py to api/pretix/types.py to improve code organization and separate API concerns from the Pretix HTTP client logic.

Changes

  • Moved all Strawberry GraphQL types and inputs to api/pretix/types.py
  • Updated imports in affected files
  • Added __all__ to pretix/__init__.py for backward compatibility
  • Reduced pretix/__init__.py from 686 to 497 lines

Testing

All imports have been updated and backward compatibility is maintained through re-exports.

Generated with Claude Code

marcoacierno avatar Nov 18 '25 01:11 marcoacierno

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

Project Deployment Preview Updated (UTC)
pycon Ready Ready Preview Nov 18, 2025 1:12am

vercel[bot] avatar Nov 18 '25 01:11 vercel[bot]

Codecov Report

:x: Patch coverage is 99.32886% with 1 line in your changes missing coverage. Please review. :white_check_mark: Project coverage is 94.52%. Comparing base (cf5a642) to head (7fb0e02).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4496   +/-   ##
=======================================
  Coverage   94.52%   94.52%           
=======================================
  Files         352      352           
  Lines       10127    10127           
  Branches      731      731           
=======================================
  Hits         9573     9573           
  Misses        461      461           
  Partials       93       93           
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Nov 18 '25 01:11 codecov[bot]