Repository navigation
v3.3.1
Deployment notes
- Production runs 3.2.0, pinned with
REVEL_TAG=3.2.0. The pin stays until a deploy names a new tag, so deploy with./deploy.sh 3.3.1. A deploy from 3.2.0 directly to 3.3.1 is safe, and 3.3.0 needs no separate step. - Migrations: only
events0159 (from 3.3.0). It changes onlyon_deleteand emits no SQL. This release adds no migration. - Celery: this release adds no task and no beat row. 3.3.0 added the task
events.link_blacklist_entries_for_user. During the rollout, an old 3.2.0 worker can reject this task. The ban still applies, because every check matches the entry identifiers. - After the deploy, check that:
/api/versionanswers 3.3.1.manage.py check_orphaned_beat_tasksshows no orphaned beat rows.- The web and Celery logs show no "unregistered task" errors.
- Loki shows
blacklist_entries_linkedafter an email verification. - The logs show no raw email addresses.
- Staff: some Django admin fields are now read-only, and a save is refused when the row changed after the page opened. Tell staff to reload the admin pages that they opened before the deploy.
- API: the changes are additive only (4 series pass link fields,
has_membership_plans, and the 400/422 answers for series passes). Frontend 2.41.0 and 2.42.0 work with this release. The frontend release that contains frontend #1347 must deploy after backend 3.3.x. - A database deadlock now answers 409
concurrent_change. Before, it answered 500. - Rollback:
./deploy.sh 3.2.0. No database step is necessary.
Added
- Organization admin API: the organization details now include
has_membership_plans(true when the organization has an active membership plan). - Series pass admin API: each coverage row of a pass now includes the covered event's
event_type,event_visibilityandevent_status, and the linked tier'stier_purchasable_by. The admin UI uses these fields to warn about coverage that buyers cannot use.
Changed
- Django admin: the use count of event and organization tokens is read-only. A save of a token page writes only the fields of the form, so claims made while the page is open are kept, and a save over a value that changed after the page opened is refused. To re-open a used-up token, staff raise its maximum uses.
- Django admin: the organization of an event and the series pass of a held pass are fixed after creation, so that an open checkout cannot pay against a new parent.
- Django admin: the admin can no longer change ticket or series pass capacity behind the services.
- Tickets and held series passes cannot be added in the admin. Their status and tier (or pass) are read-only.
- The holder of a held series pass is read-only, and its own delete page is refused. A user delete still removes it.
- The sold count of a ticket tier and of a series pass is read-only, so a save no longer writes back the count shown when the page opened.
- A save of a ticket, ticket tier, series pass, held series pass, discount code or announcement writes only the fields of the form. A sold count, ticket status, check-in, code use count or send status that a service writes during the save is kept. The cancellation reason of a ticket is read-only.
- On these admin pages, a save is refused when a value on the page changed in the database after the page opened. The staff user reloads the page and makes the change again.
- Before, an admin add, status edit or held pass delete left the sold count wrong, so a tier or pass could oversell or lose places.
- Django admin: membership payments and customer profiles are protected like membership subscriptions.
- Membership payments cannot be added in the admin, and an existing payment is view-only.
- Customer profiles cannot be added in the admin. The user and organization of an existing profile are read-only, and its own delete page is refused. A user or organization delete still removes the profile.
- Series passes: a pass holder no longer gets a ticket for a covered event that is in draft. Before, only a cancelled event gave no ticket.
- This applies when a pass is extended to a new event, when a pending pass is activated, and in the sweep that issues missed tickets.
- The sweep issues the ticket when the event is open or closed again. An event that is un-cancelled to draft gives no ticket until then.
- A closed covered event still gives its holders a ticket.
Fixed
- Calendar: a request for week 53 in a year that has only 52 ISO weeks now answers 422. Before, it returned the first week of the next year (#1556).
- Series passes: two changes at the same moment can no longer together break the coverage rule of a series pass. The second change waits for the first, and is then checked against the committed state. It is refused only when it breaks the rule.
- This applies to a new link through the API, and to a change of the event, the tier, or the pass rule or currency.
- It also applies to a stricter tier rule and a looser pass rule on the same link.
- API: a request that the database stops because of a deadlock now answers 409 with the code
concurrent_change, not 500. Nothing of the request is saved, so the client can send it again. - Django admin: a series pass link that is added or changed in the admin now follows the same coverage rules as the API. The event must be public, open and ticketed, and its series must not repeat.
- The admin shows the error on the event field. An existing link stays saveable for other edits.
- A link saved in the admin and a change of its event, tier or pass at the same moment no longer both pass. The second one waits, and is then checked against the committed state. It is refused only when it breaks the rule.
- Series passes: an event that a series pass covers must keep requiring a ticket. A change to RSVP-only is refused while a pass covers the event.
- Ticket tiers and series passes: an ONLINE price below 1 is refused.
- A tier edit that sends the unchanged ONLINE method no longer fails when the organization has no Stripe. The Stripe check runs only when the method changes or the edit resumes sales.
- A tier edit can no longer set an ONLINE price below 1.
- A series pass refuses ONLINE with a price below 1, when it is created or when its price or method changes.
- A pro-rata quote of an ONLINE pass that falls below 1 is raised to 1. A quote of 0 stays free.
- Existing rows below 1 stay editable for other fields. An ONLINE tier below 1 cannot resume sales until its price is 1 or more.
- A forced full delete of an erased account (a superuser admin action) gives back the places of the tickets and series passes that it deletes. A tier or series pass no longer stays too full.
Security
- Log calls no longer pass email addresses, Telegram usernames, email or Telegram ban values, or ban reasons. They name an account by its Revel id. Two operational values stay: the Telegram bot logs the numeric Telegram id, and a processed domain ban logs the normalized banned domain.
- A log processor also masks email-shaped text that a log line still carries, in any field, in a nested value, and in an exception text, also when the "@" is URL-encoded.
- Known limits of that safety net: a rarer character in the local part, encoded dots, dotless domains and full-width at signs (#1632).
- The result of the task that deletes old unverified accounts no longer stores their email addresses.
- The result of the domain-ban task stores the ban id, not the banned domain.
What's Changed
- fix(events): close the admin write paths that bypass capacity, checkout parents and membership services by @biagiodistefano in #1635
- fix(events): lock the rows of a series pass link and of a coverage rule change, so that both cannot pass at the same time by @biagiodistefano in #1626
- feat(events): expose the fields the admin warnings need (#1603) by @biagiodistefano in #1636
- fix(events): refuse a bad pass sales window, an ONLINE pass without Stripe, and FREE with a price (#1602) by @biagiodistefano in #1643
- fix(events): the series pass coverage gate and row locks on every link write path by @biagiodistefano in #1647
- fix(logs): log account ids instead of email addresses, and mask an address in any log field by @biagiodistefano in #1646
- fix(events): series pass holders get no ticket for a covered event in draft by @biagiodistefano in #1652
- fix(events): run the tier Stripe check only on a method change, and refuse ONLINE below the minimum (#1628, #1629) by @biagiodistefano in #1651
- fix(events): make the token use count read-only in the admin and save only the edited fields by @biagiodistefano in #1638
- fix(events): a forced full delete gives back the places of the kept tickets and passes it deletes by @biagiodistefano in #1641
- fix: validate ISO calendar week against target year by @sahil-kumar11 in #1624
- chore(release): v3.3.1 by @biagiodistefano in #1655
New Contributors
- @sahil-kumar11 made their first contribution in #1624
Full Changelog: v3.3.0...v3.3.1