Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Nov 12, 2026
| a49ff61 |
Give a refunded Stripe charge with a donation no ticket revenue, rather than less than none: with no application fee, a charge's ticket revenue was its balance less the whole donation, while its donations were never more than its balance, so a charge refunded in full, or to less than its donation, counted the donation against the event's Stripe ticket revenue and revenue to the organisation (a refunded £30 order with a £5 donation took £5 off). Ticket revenue is now the balance less the donations counted, so the two add up to the balance |
| 508c086 |
Show an event's Stripe charges when one has no description: the charges table split each charge's description to drop the event's name, which raised for a charge synced with none (one made or edited in Stripe's dashboard), so the page didn't load. A charge with no description now shows an empty cell |
| b98e380 |
Test syncing Stripe charges and balance transactions, and the figures reports read from them: a charge is stored for the organisation whose own secret key listed it, linked to the order, event and account in its metadata (decimal commas read as decimals), across every page, once (syncing it again keeps the stored one and its balance), and with no event when made outside Dandelion; transactions wait for Stripe's report and are stored against their charges; a charge's balance is what its transactions leave of it after refunds and disputes, never less than nothing, in the charge's currency; and its ticket revenue, shares and donations, and an event's totals, work out as they should with and without an application fee |
| 31e3645 |
Drop |
| 33a6425 |
Test the markup helpers with hostile input: md (as HTML, as markdown, inline and trusted), message_html, docs_html, timeago, u and blurred_image_tag are each given scripts, event handlers, javascript:, data: and vbscript: URLs (in mixed case, as entities, with whitespace), frames, SVG, forms, styles, unclosed tags and long input, checking the output is safe and legitimate markup still renders, and a hostile message and ticket type description are checked not to run in the browser. In the general CI group |
| 3da59dd |
Don't feature someone who hid their profile as the Daily's facilitator of the day: Daily.facilitator_id picked any facilitator with a photo and 20 feedbacks, hidden or not, and the page showed their name, photo, profile link and rating to everyone. It now leaves out hidden accounts, and an edition made before they hid it no longer shows them (profile_not_hidden?, as their feedback pages do since 11144e956), but to themselves |
| 8009294 |
Test the Dandelion Daily: which events each story is told from (the day's public, listed events in the site's time zone, never secret, locked, deleted or embeds-only ones; the day before's listings; the feedback on events that ended two days before; trending upcoming events), that an edition is made once a day and not kept when the model gives no story, location editions from their area's or online events and only on days with news, facilitator of the day, and the pages: the latest edition with its links, features and arrows, today's before it's out, a location's editions, and 404s and noindex for dates with none |
| f3a56f6 |
Delete a deleted event's Bluesky/ATProto record: destroying an event soft-deletes it, and the delayed delete_atproto job loads its event with Event.find, which skips deleted events, so the job did nothing and the record stayed public. Records under an organisation's own account were never removed (the nightly check only covers Dandelion's). The job now finds the deleted event itself |
| 5d7686a |
Test publishing events to Bluesky/ATProto: which events are published (not secret or locked ones, nor any when neither the organisation nor Dandelion has an account) and under whose account, the record's title, UTC times, place, links and description, updating the same record on edits, deleting it when an event becomes secret or locked and republishing it when made public again, network failures reported without losing the event, the nightly sync and collection check, never touching another account's records or non-calendar records, and that only an organisation's admins can connect or disconnect its account, with credentials Bluesky refuses not saved. No network: AtprotoClient gives a fake client per account |
| 1dae3d5 |
Block, unblock or mark legit only an ASN that's a number: the URL's ASN went into the Cloudflare rule's expression unchecked, so a mistyped or crafted one such as 1) or (true would have added a clause blocking everyone. Asn.block! and unblock! refuse anything else, as does the legit route |
| 961c429 |
Test ASN blocking: the blocked ASNs are a Cloudflare WAF rule the app keeps, so the tests answer Cloudflare's API from Faraday test stubs, which refuse anything else. Autoblock blocks an ASN that surges over the baseline network's traffic in a complete window after 6am, and whose Radar bot % beats its country's bar (counting the country only when Radar is confident), in one rule update that keeps its action and description, and emails the founder; it never blocks a legit ASN, the big clouds by description or Radar name, or one already blocked, nor anything while the baseline is quiet; and when it can't read the rule or Cloudflare refuses the update it blocks nothing new, reports the error and tells no one. The /stats/asns page and its block, unblock and legit routes are for site admins only, block and unblock edit the rule (refusing without one, or to empty it) and legit toggles the stashed list. In the orders CI group |
| 995bba8 |
Drop activity tags: they were used only to label an organisation's activities, shown to its admins, and as a To option for its mass emails, which six mails ever used, the last in August 2021, and which reached other organisations' members until 905b251e8, as tags are shared across organisations. ActivityTag, ActivityTagship, the tags field on an activity's form, its tag labels and the To option go. Mails once sent to a tag keep that mailable_type, so Pmail#mailable gives them none, and they go to no one and list as an activity tag no longer available. The activity_tags and activity_tagships collections are left in the database |
| 11144e9 |
Refuse the feedback on someone who hid their profile to everyone but them: its show_feedback, feedback, feedback_summary and events routes, which feedback embeds use, didn't check privacy, and an event page they ran alone offered their feedback. They now refuse others when the account chose to hide its profile (profile_not_hidden?), but not when it counts as private only for never having signed in, so facilitators who never signed in keep their public feedback pages and embeds |
| b85d9a6 |
Show someone's age only to them unless they choose otherwise: an account with no date of birth privacy set counted as Public, so its age showed to anyone on its profile and in followers' birthdays, though signing up says the date of birth is never shown publicly. A privacyable field with no level set now takes its default (Account#privacy_level), which for date of birth is Only me, and viewable?, the privacy menu's current level and the birthdays page, home card and feed all go through it. New accounts get Only me stored. Tests and the design guide's sample birthdays that relied on an unset level being public now set Public |
| 2aebadc |
Skip and report an imported event that can't be saved, rather than stopping its feed: the same event in two of an organisation's feeds (an organisation can't have two events with the same title and start) raised a validation error that ended the feed's sync, so its later events weren't imported and its removals didn't run. The event is now left out, counted as failed and listed on the iCal sync page, and the rest of the feed syncs; errors that mean the feed can't be read still stop it |
| 3ce279e |
Give up on an iCal feed or Luma event page that's slow to answer after 10 seconds to connect and 30 to respond, rather than the adapter's minute each, so one slow feed can't stall the hourly calendar sync. A timeout is reported as that feed's error, keeping its events, as other fetch errors are; redirects still aren't followed |
| 73ba006 |
Count only paid donations in an event's donation totals, as its ticket revenue counts only paid tickets: "Received" on the donations page, the stats table's donations columns and the revenue they feed counted donations from checkouts still being paid for. The donations page still lists those, with their spinner |
| 02808eb |
Let only a comment's author add options to its poll, as the page offers, and let the option's creator, the comment's author or a site admin remove one: POST /voptions/create let anyone who could see the discussion add options to any comment's poll, and the remove button showed to site admins and the comment's author while the route let only the option's creator remove it. Voption#removable_by? now decides both the button and the route |
| 503ad2a |
Email an applicant that they've been accepted only when their application becomes Accepted, not each time an admin picks Accepted again: the status select starts blank, so choosing Accepted on an application that already was accepted it again and re-sent the email. Statuses that aren't one of ActivityApplication.statuses, a forged one or the select's blank option, are now refused with a 400 and change nothing |
| 7630f40 |
Report a PayPal capture for a different amount or currency from its order's: an order completed once PayPal said its PayPal order was captured, whatever it captured. It still completes (the money was taken), but a capture whose amount or currency differs from the order's total and currency, as sent to PayPal, is now reported to Sentry with the order, the expected and the captured amount and currency. Amounts are compared as decimals, as PayPal gives them as strings |