Repository navigation
v3.2.0
Added
- Storage: a daily task counts the stored image files (logos, cover images, profile pictures, OAuth application logos and their derived images) that no row uses and that are older than 7 days.
- It starts as a dry run that only counts.
- An admin can turn on its deletes in the beat task settings, with no deploy.
Changed
- API: OpenAPI operationIds no longer end in a random 8-character suffix, so they are the same in every schema dump (for example
auth_obtain_token). A generated client gets stable type names after one regeneration. - Uploads: a new logo, cover image, profile picture or OAuth application logo is now stored under a random file name, not the name of the uploaded file. Files that are already stored keep their names.
Fixed
- Image uploads (profile pictures, organization, event and series logos and cover images, OAuth application logos): the messages for an image that is too large ("Image must be under …MB.", "… megapixels.") and for a file that is not an image are now translated.
- An uploaded file whose content is not an image now gets "File is not a valid image." from the field check itself. A file that is already in storage is not read again.
- Series passes: a pass holder who was on the waitlist of a covered event now leaves that waitlist when the pass gives a ticket for the event (free and offline passes, the offline confirmation, and tickets for events added to the pass later). An open waitlist offer of the holder for that event is withdrawn, so the spot goes to the next person. Before, the holder stayed on the waitlist and could get offers for a spot.
- Django admin: the "delete selected" action on organizations now removes the stored image files of the organizations and of their events and series (logos, cover art and their derived images) that no other row uses.
- OAuth applications: deleting an application (in the app settings, through client registration management, or in the Django admin, also with "delete selected") now removes its stored logo files that no other application uses.
- Series passes: a checkout of a pass that moves to another event series or organization at the same moment now answers 409 ("The events of this pass changed. Please try again."). The buyer can then try again with the pass as it is now.
- Admin: deleting a ticket in the Django admin now gives its place back to the ticket tier, and the admin refuses to delete a failed payment whose Stripe Checkout session is still open.
- Django admin: the membership admins can no longer change billing data past the subscription service. An existing subscription is view-only, and the add view is refused. A history revert is refused on the subscription, plan, payment and customer-profile pages; the history stays viewable. Subscriptions and payments cannot be deleted from their own admin pages, while deleting a user still works.
- Accounts: the set-password email that follows the email verification of a contested account now carries the return hint of the white-label organization site where the person signed up, as the other account emails do. The link stays on the platform, and the hint is added only while that organization site is still active.
What's Changed
- fix(events): refuse a series pass checkout when the pass moves to another series or organization by @biagiodistefano in #1580
- refactor: split the five files near the 1000-line cap by @biagiodistefano in #1582
- fix: remove image files on an organization admin bulk delete and an OAuth app delete by @biagiodistefano in #1585
- fix(events): remove a pass holder from the waitlists of the events the pass tickets by @biagiodistefano in #1587
- fix(common): refuse bytes that are not an image in validate_image_file and translate its messages by @biagiodistefano in #1589
- feat: store new image uploads under random file names by @biagiodistefano in #1590
- feat(common): daily sweep of image files that no row names, as a dry run first by @biagiodistefano in #1591
- test: random-letter names for factory users, so that no blacklist entry matches them by chance by @biagiodistefano in #1586
- feat(api): stable OpenAPI operationIds through the project api_controller by @biagiodistefano in #1592
- fix(events): admin ticket delete releases tier capacity; refuse deleting a failed payment with an open session by @biagiodistefano in #1583
- fix(events): make the membership admins view-only for lifecycle data, with no own delete or history revert by @biagiodistefano in #1581
- fix(accounts): keep the tenant return host through email verification by @biagiodistefano in #1588
- ci: pin GitHub Actions to commit SHAs by @biagiodistefano in #1584
- chore(release): v3.2.0 by @biagiodistefano in #1609
Full Changelog: v3.1.2...v3.2.0