Dandelion is a fair source project. View the code on Github · See the design guide

Commits on Nov 13, 2026
4248c6b

An organisation's latest news is not found when it has sent no news, rather than an error on the email that isn't there

956d59f

Test the account and organisation routes no test covered: unsubscribing from all emails by a link (only its own account; a forged link changes nobody), resending the confirmation email, resetting a password (site admins and password resetters, not an admin's by a resetter, nobody else, and no password shown to them), the activities, local groups and gatherings on a profile (signed in only, by their privacy, a private profile's only to itself, leaving out hidden memberships and unlisted or secret gatherings), following, unfollowing and starring people and organisations (only as oneself, an admin can't unfollow), an organisation's news and latest news, its embedded subscribe form, its counts, its carousels (admins only, another organisation's carousel not found), Bluesky's client metadata (only the public half of the key), the sign in failure page and the old /accounts/:id and /organisations/:id URLs. Provider disconnecting, confirming and cancelling were tested already, so marked there. In test/accounts/account_routes_test.rb and test/organisations/organisation_routes_test.rb, run in the integrations group

b34e5d6

Mark every gathering page the admin pages test loads: the backfill marked each route once, on the test that requested the fewest routes, so this test, which loads all eleven, was marked with only the two no narrower test requested and read as if it covered only those

d375168

Stop a comment's author adding photos to it once they've left the discussion: can_add_photo_to? only checked that they wrote the comment, while attaching a file to it also needs them to still see the discussion (commentable_viewer?)

1a4d8fe

Refuse a photo that isn't an image with a message rather than an error page: POST /photos/new used create!, so an SVG, PDF or missing file raised a validation error (a 500); now it goes back to the page the photo was for, saying why

98fae89

Test the comment, photo, mail attachment and fragment routes that change things: deleting a comment (a reply, or the thread with its first comment) and its file, only by its author while they can still see the discussion; subscribing to a thread only in a discussion one can see, once, and unsubscribing only oneself; photos added only by a gathering's admins, a comment's author or a ticket type's event admins, only to those, with an SVG refused before ImageMagick sees it, a photo's link going to its page rather than the image, and deleting by the uploader or a site admin; an organisation's mail attachments deleted only by its admins, never another organisation's; and cached fragments cleared only by site admins, matching the text as it is. The nine routes come out of routes_without_tests.yml, and the file joins the payments group

53123e6

Mark the routes each test covers, and fail lint_test on a route no test covers: a test starts with covers_route 'VERB /path', as it does covers for doc claims, and test/lint_test.rb reads the routes from app/app.rb and app/controllers (lib/route_marks.rb, now also the %w[get post].each ... send(verb, '/path') ones) and fails on a route with no covers_route unless test/routes_without_tests.yml says why, and on a covers_route naming no route. So a new route needs a test or a reason. The 456 routes tests already request are marked, each on the test that requested the fewest routes, from a CI run recording which routes each test requests (HEAD now counting as the GET route); the 176 no test requests are listed, 153 as not tested yet, 22 as site admins' stats and diagnostics and WhatsApp as experimental. AGENTS.md says how

8a21881

Record which routes each test requests, for marking the routes tests cover: RECORD_ROUTES=1 writes tmp/routes/

d028aee

Run the opencode bug review on Hy4 at high, its top reasoning setting, instead of GLM 5.3

529d09c

Test bookings racing for the last places: an event's, a ticket type's, a ticket group's and those of tickets taking two places, run in threads let through together, several times each, so exactly as many succeed as there are places and the rest are told there aren't enough left. Also a stale booking lock, one idempotency key sent twice at once, and unpaid holds: a live one keeps its place, one past its time frees it as the hourly errands delete it

ae9da6f

Delete unpaid orders past their hold with Order.destroy_expired_holds, which the hourly errands call, so tests can run the same cleanup

af2d54c

Stop bookings at the same time overselling an event: OrderBuilder checked what was left and then created the tickets, so buyers racing for the last place each saw it free and each took it (ten buyers for an event with one place left made three tickets). Each booking now holds the event's booking lock (booking_lock_token, booking_locked_until, set atomically) while it checks and creates its tickets, so they take turns; the payment provider is still called after. A lock left by a process that died runs out after 20 seconds, and a booking that waits 25 seconds for it is refused

43ac6f9

Refuse any request to Mailgun from a test: Mailer sends through an organisation's own account whenever it has an API key, even in tests, so an email a test didn't record (an organisationship created after its organisation's key was set sends its welcome at once) really reached Mailgun's API. Mailgun::Client now raises in tests, saying to record the email

839128a

Test that every email renders (test/messages/email_templates_test.rb): each template in app/views/emails, and each Mailer.deliver with content:, html: or text: and each send_to_founder, sent by the code that sends it and checked for a recipient, a subject, a body, no placeholders, magic tags or Ruby left in, only absolute links, every %recipient.x% given to each recipient, and an unsubscribe link where there should be one. A new template, or a new Mailer.deliver without one, fails it until it has a case

f01798b

Leave the sign in link out of a ticket emailed to its ticketholder: send_ticket sends to the ticket's email alone, with no account and so no %recipient.token%, so with Show sign in link in ticket emails on, the link signed no one in

4e5eab2

Give a 404 for another organisation's tier under an organisation's URL: editing or deleting a tier looked it up among the organisation's own, and with no such tier rendered or changed nil, a 500

6bd73a9

Test organisation admin: creating, editing and deleting tiers, notes on followers, turning their emails off and on, removing them, exporting and importing them by CSV, choosing to receive feedback, bans, welcome emails, the feedback summary and deleting the organisation. Followers, event managers, others, another organisation's admin and people signed out are refused each of them, notes stay private to the organisation's admins, the followers CSV goes only to the admin who asked, and forged forms can't set the organisation's protected fields or make a tier for another organisation

faaa18e

Order trending events back from today when ?from= isn't a date: from was nil, and trending_ids took a week off it, so /o/:slug/events?order=trending&from=x (and /events) gave a 500

dbecee9

Treat a from or to param that isn't a string (?from[x]=...) as no date rather than raising: parse_date only rescued Date::Error, and Date.parse raises a TypeError on a hash or array, so /o/:slug/events and the other listings that read a date from params gave a 500

992591c

Test an organisation's public event listings: the HTML listing, its JSON (with the calendar and map views) and ICS list the organisation's own and cohosted public events, never secret, locked, deleted or another organisation's events; each filter, past=1, ordering and pagination narrow it as they should; minimal=1 renders the frameable embed layout with the events only shown in embeds; the events block pages its upcoming events; the event lookup is for the organisation's admins only, and stats are refused to everyone else without their data; and odd params give a listing, not an error