Skip to content

v3.3.0

Choose a tag to compare

@revel-release-bot revel-release-bot released this 28 Nov 13:33
b311735

Deployment notes

  • Deploy order from production v3.1.0: do not deploy this release in one jump.
    1. Deploy the 3.2.0 image tag first, and let it run for about one day. If the v3.1.0 Stripe webhook step is not done yet, do it before this deploy. Use the 3.2.0 checks: showmigrations lists accounts 0042, common 0027, events 0158 and oauth 0003; the three new beat rows exist; the image sweep has dry_run: true.
    2. Then deploy 3.3.0 directly. 3.2.1 needs no separate step.
  • This release has one migration, events 0159. It changes only on_delete and emits no SQL.
  • After the deploy, check that:
    • manage.py showmigrations events lists 0159 as applied.
    • The Celery worker lists the new task events.link_blacklist_entries_for_user.
    • The web and Celery logs show no "unregistered task" errors. During the rollout, an old worker drops this task; the ban still applies, because every check matches the entry identifiers.
  • In the first hour, look for these events in Loki: blacklist_entries_linked, blacklist_link_task_not_queued, blacklist_link_after_verification_failed. A blacklist create answers 201 or 400, and no longer 500.
  • A rollback to 3.2.0 needs no reverse migration.

Changed

  • Django admin: the parent of a product is now fixed after creation, so that an open checkout cannot pay or issue tickets against a new parent.
    • The series of a series pass, the organization of an event series and the event of a ticket tier are read-only on the change page.
  • Django admin: the event series admin shows more about the visibility of each series.
    • The series list shows the organization visibility (also as a filter) and the number of events, with a link to them.
    • The series page shows its effective public visibility and the reason for it.

Fixed

  • Series passes: an event that a series pass covers can no longer become private or members-only, or move to another series or out of its series.
    • The API answers 400 on event_type or event_series, and the Django admin shows the error on that field.
    • An event that already broke this rule before the check can still be saved for other edits.
  • Ticket tiers: a tier that a series pass covers can no longer get a stricter purchase rule (a stricter "purchasable by" value, or a first membership-tier restriction) than the pass. The change answers 400; change the pass or unlink the tier first.
  • Event series: a series page (by id, or by organization and series slug) now opens when the visitor can see at least one event of the series, also when the organization is private.
    • Before, a public event of a private organization linked to a series page that answered 404.
    • The visitor can follow such a series.
    • The series list and search, the series passes and the series resources still follow the organization rule, so they show nothing of a private organization.
  • RSVPs, invitations, notification preferences and event-cancellation refunds: a failure to queue the attendee count update no longer turns a saved change into an error response, and no longer stops the steps after it (for example the staff notification of an RSVP). For an RSVP save or a ticket write that stamps its update time, a sweep every 15 minutes then corrects the count; after an RSVP delete, a lost update stays until the next rebuild of that event. An RSVP change also queues the update once, not twice.
  • Blacklist: an entry stays in place when its linked account is deleted or erased.
    • The entry is no longer linked to the account.
    • It keeps its email, phone number, Telegram username and reason.
    • It loses its name fields.
    • It also keeps the email that the account had at the time of deletion.
    • It keeps the account's phone number and Telegram username only when the account is a known holder of the organization.
    • A value that the entry does not hold yet goes on it when the field is empty.
    • Otherwise the value goes on one new entry of the organization, unless another unlinked entry already holds it.
    • An identifier that another unlinked entry of the organization already holds stays on that entry.
    • The other identifiers move to that entry when it has no value for them.
    • The entry is deleted only when no identifier is left.
    • A new account that matches a kept entry is blacklisted at once.
    • Each organization links one matching entry to the new account, the oldest one. A match by email counts only when the email is verified, at registration or later.
    • A save of a blacklist entry in the Django admin now waits for the organization lock.
  • Blacklist: a manual entry with the phone number or the Telegram handle of an existing entry now answers 400 with a clear message. Before, it answered 500. When the account already has an entry, or the linked entry of another (erased) account holds its email, quick mode and manual mode now refuse with "This user is already blacklisted.". When an unlinked entry holds the account's verified email, that entry is linked to the account and no second entry is created. A phone number or Telegram handle typed in manual mode is added to that entry. The response of a linked entry now shows its real creator.
  • Blacklist: a registration or a Telegram connect no longer fails when two entries of one organization match the person, or when the account already has a linked entry there. Each organization links at most one entry to the account, and the ban applies in every matched organization, also when the only match is the entry of an erased account. Verifying an email, converting a guest account or changing to a new verified email now also links the matching entries. A registration links an entry by email only when the email is verified and the account is not a guest.
  • Blacklist: an entry that matches several accounts of the organization now applies the consequences to each one. For example, an entry that links one account by its email and also holds the phone number of a staff member now removes that staff member too. The owner is never affected.

What's Changed

  • ci(docs): build the docs from locked dependencies and deploy from a separate job by @biagiodistefano in #1604
  • fix(events): dispatch every attendee rebuild independently of the other commit callbacks by @biagiodistefano in #1608
  • feat(events): a series page opens through a visible event of the series; show the series visibility in the admin by @biagiodistefano in #1611
  • fix(events): refuse a stricter purchase rule on a tier that a series pass covers by @biagiodistefano in #1607
  • fix(events): keep blacklist entries in place when the linked account is deleted or erased by @biagiodistefano in #1613
  • fix(events): refuse a stricter event type, or a series change, on an event that a series pass covers by @biagiodistefano in #1623
  • fix(events): refuse duplicate blacklist identifiers and link one entry per organization by @biagiodistefano in #1621
  • fix(events): fix the parent of a series pass, a series and a ticket tier after creation in the admin by @biagiodistefano in #1620
  • chore(release): v3.3.0 by @biagiodistefano in #1630

Full Changelog: v3.2.1...v3.3.0