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

Commits on Nov 13, 2026
cad7798

Unsubscribe from all emails only by the subscriptions form, a POST: GET /accounts/unsubscribe opted the signed-in person out of every email, so an pointing at it on any page or in any message did it to whoever looked. Nothing links to it any more, so old emails' links now open the subscriptions page, saying to tick Opt out of all emails from Dandelion and save

8fb48bf

Update packages to the newest releases out of the 7-day cooldown, from script/update_packages.rb (the package updates workflow) (#307)

3ad67ff

Split test/test_config.rb into test/setup, a file a job: outside_services.rb (refusing Mailgun, no DNS for email domains, the geocoder's test lookup), fake_imagemagick.rb, capybara.rb (the Cuprite driver), cleanup.rb (each run's database and screenshots, and those of runs that didn't finish), route_recording.rb and coverage.rb (was test/test_coverage.rb). test_config.rb boots the app, loads them and says how each test runs, in 85 lines rather than 259

db25754

Fake ImageMagick in tests, so they don't need it installed: Dragonfly only runs identify and convert, which test/test_config.rb answers from the file's header (JPEG, PNG, GIF, WebP and HEIC sizes) and by copying it, or writing a JPEG of its size when asked for one, and refuses a file that isn't an image as our policy would. MiniMagick is refused, so a test stubs it: the YouTube thumbnail test gets images that record the crop and composite asked of them. Only a test of ImageMagick itself runs the real one, inside with_imagemagick: images_test's policy and JPEG conversion tests, in the group that installs it. So messages/comment_routes goes back to the payments group, and AGENTS.md says how

1ac9bf6

Define each test helper once, and fail lint_test on one defined in two files: a test file's copy of a helper another also defined could drift apart, or one name mean two things. The ones that agreed, or that one keyword argument reconciles, are shared: assert_redirected_to, xhr, xhr_get, without_imagemagick and others any test uses in TestHelpers, and the rest in area modules (GatheringsHelpers, OrganisationsHelpers, CommentsHelpers, and the existing bookings, orders and checkout webhook ones). Those that are different things under one name get names of their own in their files. test_test_helpers_are_defined_once counts only the methods of test classes and helper modules, not of the fakes a test defines

240ef6f

Run messages/comment_routes in the general group, which installs ImageMagick: its photo uploads need it, so in the payments group, whose runner has none, every photo test failed. And keep each CI group under five minutes rather than about two, as the slowest group's time is what matters; AGENTS.md says so, and that a file uploading images to ImageMagick goes in the group with images

8472f7c

Test an event's admin routes and a ticket's: duplicating (ticket types, facilitators, secret and capacity copied, no orders, tickets, waitlist or stars), the sessions box and removing sessions (not another event's), a session's calendar file (404 once the event's deleted), the progress, linked image, audience stats, waitlist, ticket type waitlists and ticket type photos pages (others turned away without the attendees in the response), starring only as yourself, deleting only your own draft, revenue payments (the organisation's admins only, not facilitators or the revenue sharer, nor another event's payment), the check-in scanner (event admins, or the event's own secret, remembered for the session), the event boosts Stripe webhook signed for real (completes a boost once, one admin notification; bad signatures, unpaid checkouts and unknown sessions do nothing, with a 200), and changing a ticket's price or ticket type and resending it (event admins only; another event's ticket type refused; the order's value stays; the event's sold-out cache follows the move; the resent ticket stays in its order), and the old confirm_destroy link going on to confirm_cancel with its query string. The 26 routes come out of routes_without_tests.yml, and both files join the ticket_types CI group

0bede35

Keep a locked activity's feedback and its summary to its admins, as its page is: GET /o/:organisation_slug/a/:slug/feedback_summary and /show_feedback showed them to anyone who asked, so the summary and public answers of a locked activity's events reached people signed out. Both now send them to the organisation (403 for a pagelet), through locked_activity_admins_only!, which the activity's page now uses too

97257f5

Test the activity and local group routes not tested yet: making and removing admins (the last admin isn't offered removal), turning followers' emails off and on and removing them, importing followers by CSV, event and audience stats and the mailer showing only their own events and mails, deleting one (its events stay in the organisation, its followings and mails go), unsubscribing signed in or through a link (only one's own following, and an activity makes none for someone who has none while a local group makes an unsubscribed one), the follow button's pagelet, an activity's feedback summary, and the old /activities/:id and /local_groups/:id URLs redirecting to the slug ones with their method and query. Through Rack, followers, another activity's or group's admin, another organisation's admin and people signed out are sent away from each admin route without its data, and another's admin can't reach these records under their own URL. In test/organisations/activity_admin_test.rb and local_group_routes_test.rb, added to the tours group, and the 28 routes come off test/routes_without_tests.yml

9e201d2

Show who selected an option only to those the options page shows it to: GET /g/:slug/options/:id listed the members of an option that hides them to any member, and every option's to members who hadn't paid, though the page links the list only for admins and members who've paid, and not for options that hide their members unless they're admins. It now needs a confirmed membership, and a 403 for an option that hides its members unless they're an admin

d9cf381

Unschedule a timetable's activities fully when their space or slot is deleted: deleting either cleared only its own id, so an activity in a deleted slot kept its space and showed in neither the grid nor Unscheduled (which lists those with no space), and one in a deleted space kept a slot. Both now go back to Unscheduled with neither

a02c61b

Ignore ids that aren't the timetable's or rota's when reordering its spaces, slots, roles or rota slots: each id was found in the timetable or rota and set, so an id from another one (another gathering's, or one deleted while the list was open) found nothing and raised a 500, after reordering the ids before it

d5457fa

Test the gathering routes no test covered (test/gatherings/gathering_routes_test.rb, in the calendar group): deleting a gathering, which takes its memberships, timetables, rotas, shifts and teams with it but keeps its payments, and only for its admins; turning a member's email notifications back on and hiding a gathering from their sidebar, for its members only; gathering autocomplete, which lists only one's own gatherings, secret ones included; deleting timetable spaces and slots and adding someone to a shift, for admins only and not another gathering's; who selected an option, a team's unsubscribe link (one's own teamship, or the team), a team's budget, which any member sets as on the budget page, and withdrawing a verdict, which only its author can. Each route another gathering's record id under this gathering's URL 404s

bdba1fd

Keep private profiles out of map popups: GET /points/:model/:id showed a person's name, picture and facilitator details whenever their location privacy was Public, even if they'd made their profile private, which is visible only to them. Now it refuses a private profile, or an application or membership of one, as it does a location that isn't public, except to the account itself and admins

0e661bb

Answer a map popup for a record that's gone with a 404: GET /points/:model/:id rendered the popup with nil, raising (a 500), when the map's point had since been deleted

12b82e4

Check an editor upload's first bytes before asking ImageMagick whether it's an image: POST /upload called image?, which runs identify, on whatever was uploaded, so SVGs and other files reached ImageMagick, leaving only its policy to refuse them. Now only JPEG, PNG, GIF, WebP and HEIC bytes (ImageSignature) get that far, as the Upload model's own processing already required

34ffd00

Test the site's own pages and routes: the policy, contact, features, comparison, code, docs, books and films pages, a location's page, recommended people and events, claiming a referral reward, feedback and questions to the founder and collapsing the sidebar, in the browser (test/site_pages_test.rb); and in Rack (test/site_routes_test.rb) the health check, error pages, MCP's stateless GET and DELETE, icons, the wheel of the year, the homepage map, map popups, editor uploads, YouTube thumbnails, the Stripe row splitter, and who may send feedback and questions, claim a referral reward, mark messages and notifications checked and search their network. Both run in CI's general group, and their 40 routes come off test/routes_without_tests.yml

2dbb4ce

Disconnecting a provider there isn't is not found, rather than an error

8b693b8

Starring, unstarring or showing the star of a follow that isn't one's own is not found, rather than an error

fbb847a

Ordering an organisation's carousels with an id that isn't one of them is not found, before any is moved, rather than an error part way through