Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Oct 12, 2026
| d689e70 |
Trim and reorganise AGENTS.md. Add a code map; drop the Atlas MCP setup steps, keeping that the MongoDB MCP is read-only; condense the hinted and unique-index rules into a checklist, saying explicitly that UUIDs and other SecureRandom tokens get a unique index but no validates_uniqueness_of; split Everything else into Conventions and Build/vendored code, moving the Bootstrap build rule there; and fold the .presence rule into the params note. |
| 0b6db25 |
Only admins and event managers of the host organisation can add cohosts. Admins of a cohost organisation can see attendee emails even when show_emails is off, and activity and local-group admins could add cohosts, so they could add an organisation they admin and read emails they couldn't otherwise see. /events/:id/cohostships/new now requires organisation_admins_or_event_managers? on the host organisation, and the event page only shows them the add control. Activity and local-group admins can still remove cohosts. |
| 589a7c9 |
Attendees can cancel complimentary tickets, as they can free orders. Ticket#cancellable? covers free tickets with no order that belong to the account (and have no separate ticketholder email); /tickets/:id/confirm_cancel and /tickets/:id/destroy mirror the order routes, sharing the confirm page, and send the RSVP cancelled email. The event sidebar and upcoming events list show complimentary tickets with a Cancel RSVP link, and the ticket and reminder emails include Cancel your RSVP for them. Priced complimentary tickets can't be cancelled by attendees. |
| ed20402 |
Enable YJIT in the web process Only Puma enables it: the worker has come close to its 2 GB limit, and YJIT can add up to 128 MB per process. |
Commits on Oct 11, 2026
| 78af5b7 |
Read event cards' preloaded tags and cohosts rather than querying them event_tags and cohosts (has_many_through) query every time, so an event card missing from the fragment cache queried its tags and cohosts even when with_key_includes had loaded event_tagships: :event_tag and cohostships: :organisation. The tag labels and facilitators partials now read the targets from those joins, and image_source finds the cohostship among the event's cohostships rather than querying for it. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| 58a396d |
Look up the events grid's and carousels' cached cards in one query The events grid (up to 100 cards) and organisation carousels looked up each card's fragment on its own. Both now prefetch their cards' fragments in one query, as event lists do. The carousel card's cache key, written out in four views, moves to event_block_carousel_cache_key, and the carousel loads its events once before prefetching, as featured_events is a criteria. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| 2374a16 |
Look up a list's cached event cards in one query Each event card in a list looked up its fragment on its own, one query per card: on a trending page of 20 cards, 20 queries of 1.5-4 ms. events/blocks now loads the fragments for every card's key in one $in query (prefetch_fragments), and cp uses what it found, a nil meaning not cached, before querying a key itself. The card's cache key moves to event_block_cache_key so the prefetch and cp build it the same way. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| e857138 |
Load only the page of events shown in trending and random order Trending and random order loaded every ranked event, with descriptions and its key includes, then paginated that list in the view: a homepage trending page loaded 100 events to show 20, taking ~270 ms before rendering began, of which only ~70 ms was database time. apply_random_or_trending_order now returns EventIds, the ordered ids as an Array, so empty?, the views' paginate and will_paginate's links work as before; its paginate swaps the page's ids for events loaded without the heavy fields (which cards don't read), with their key includes. capped_events takes the grid's first 101 as a page. Event.trending_ids gives the ranking on its own; Event.trending still returns loaded events for its other callers. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| d49c452 |
Make the trending test's events eligible for the homepage Event.trending always applies the homepage conditions (browsable, has_image, not hidden_from_homepage), even when called on a criteria, as self is Event inside a class method. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| aaf5af2 |
Rank trending events from the week's orders rather than a lookup per event Event.trending ran a $lookup into orders for every candidate event, about 5,000 for the homepage's trending pagelet (/events?home=1&images=1&order=trending), which averaged 760-840 ms over ~135 requests an hour. It now counts the week's paid orders by event in one aggregation (1,572 orders across 425 events this week), ranks the candidates that have any (or are flagged trending), and fills up to the limit with the soonest of the rest. Deleted orders no longer count. The hourly feedback request task also loads its events once and counts them in Ruby, rather than running the same query again as a count for its log line. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| 05dce32 |
Hint the hosts index on /o/:slug/events Left to the planner, the largest organisation's /o/:slug/events queries spent 215-380 ms planning on every request (the $or on start, end and evergreen can't keep a cached plan), then mostly chose the hosts index anyway. Unfiltered page loads went from 166 to 241 ms on average (p95 682 to 1,385 ms) after the hint was taken off. A hinted scan of that organisation's ~2,800 events usually takes 50-270 ms, so hinting wins for unfiltered and carousel-filtered requests; only _id-filtered ones scan more. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| d8af072 |
Hint the hosts index only at the call sites that need it events_including_cohosted hinted Event::HOSTS_INDEX, and the hint carried through every query built on it. For the largest organisation (about 2,800 events) that made MongoDB read all of them for queries another index answers from a handful: a /o/:slug/events query filtered by _id read 2,892 events in 698 ms where _id_ reads 8 in 9 ms, and carousel queries read 2,783 to find none where deleted_at_1_carousel_ids_1 reads 0 in 3 ms. events_including_cohosted no longer hints. The organisation's future and current event listings (the events block pagelet, the organisation page's exists? check, the events search form and the post-feedback redirect) hint it explicitly, as their $or costs the planner ~300 ms per query for the largest organisation. Everything else is left to the planner, including carousels, in_id_order and /o/:slug/events, most of whose requests filter by search, tag or carousel. Claude-Session: https://claude.ai/code/session_01AWMrjzwLu9WdP12rY2YFU8 |
| c6fde7b |
Stop the event tickets and orders tables loading the event once per order and their page of records several times. A GET /events/:id/tickets with 42 tickets took 2.85 s, with 42 find events from order_email_viewer?, which loaded order.event for each order (a ticket's order isn't loaded through the event, so it doesn't share @event), and 4 loads of the tickets page, as @tickets is a criteria that map, each and pagination_details each ran again. order_email_viewer? now uses @event when it is the order's event, each table loads its page into a list once, and pagination_details works from will_paginate's total_entries rather than loading the page and counting again. With 5 tickets in 5 orders, the tickets page goes from 4 find events and 5 find tickets to 2 and 2, and the orders page from 5 find orders to 3. |
| 7759b8d |
Link the path on /stats/traces/:id for GET requests, so the page a trace was for is a click away. Other methods keep it as plain text, since a link would make a GET to the URL. |
| 545046f |
Find a new member's local groups with a 2dsphere index on a new LocalGroup#area field. Organisationship#relevant_local_groups ran $geoIntersects on the embedded polygons, which no index covered: on a Zapier POST /accounts/new for an organisation with 412 local groups (13.5 MB of polygons), it examined every one and took 1.3 s of a 2.8 s request. A 2dsphere index can't cover polygons, since it reads a trailing array of GeoJSON objects as a legacy point, so area holds the group's GeoJSON Polygon or MultiPolygon, set in before_validation, and organisation_id_1_area_2dsphere (created directly in the database) covers it. The same query now examines 5 documents in 34 ms. The index rejects shapes MongoDB considers invalid, so before_validation checks the shape with a $geoIntersects query that matches nothing and adds a validation error rather than failing on save. Each embedded polygon now keeps all its rings: a Polygon's rings were each saved as their own polygon, so a hole matched members and was drawn filled in. The map draws every ring, which also suits polygons saved the old way. |
| 06b9411 |
Send the XHR header in the test of the 100-event cap on embedded organisation event lists. Without it, GET /o/:slug/events renders the page shell, whose event list is a pagelet placeholder, so the test counted 5 placeholder blocks rather than 100 events, and its check that See all events is absent passed only because the shell has no list. |
| 286a20b |
Put the date in the heading of /stats/traces/:id, without the year (Sun 11th Oct, 10:13am), and badge XHR requests there as the traces list does, so pagelets read apart from the pages they share routes with. The line under the heading now starts with the duration. |
| 5c2aba3 |
Show the account on /stats/traces/:id alongside the user agent rather than in the line with the time and duration, so who made the request and from what browser read together. |
| 4d7293d |
Tidy the header of /stats/traces/:id and use the app's date formats on the trace pages. The transaction's name is a plain heading rather than code, the URL shows only as its path and query when that says more than the name (for routes with params), and the line under it is muted throughout: the duration isn't bold, the account and commit links take its colour, and the span count is gone (the ops table has it). Dates use the default format on the trace page, and a new short_no_year format (no_year with Oct rather than October, as no_year is also used for events) in the traces list and the release select, rather than strftime. |
| 30051e3 |
Link p100 on /stats/transactions to the transaction's slowest trace, and p99 too when it matches p100, which it always does under 100 traces (the nearest-rank p99 of fewer than 100 values is the largest). The links go to a new GET /stats/traces/slowest, which finds the trace and redirects to it, so Trace.summary still reads only SUMMARY_INDEX rather than loading every trace to get its id. |