Skip to content

Exploration rate limit#6337

Merged
zoldar merged 19 commits into
masterfrom
exploration-rate-limit
May 12, 2026
Merged

Exploration rate limit#6337
zoldar merged 19 commits into
masterfrom
exploration-rate-limit

Conversation

@aerosol
Copy link
Copy Markdown
Member

@aerosol aerosol commented May 11, 2026

This PR:

  • does a minor code re-org, extracts Journey.Step module to its own file and changes "interesting funnel" to "featured funnel"
  • enables ApiError to store http status so the details can be reliably inspected for extra error handling
  • introduces generous rate limiting to per-site journey API calls (10 for 10s bursts and 600/h - per single server instance)

Comment thread assets/js/dashboard/segments/segment-modals.tsx Outdated
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6337

@aerosol aerosol force-pushed the exploration-rate-limit branch from ebb2374 to b3f669a Compare May 12, 2026 05:48
@aerosol aerosol marked this pull request as ready for review May 12, 2026 05:52
@aerosol aerosol requested a review from zoldar May 12, 2026 05:52
Comment thread lib/plausible_web/controllers/api/stats_controller.ex Outdated
@zoldar
Copy link
Copy Markdown
Contributor

zoldar commented May 12, 2026

It would be good to explicitly handle rate limit violation when querying for featured funnel (can be reproduced by rapidly refreshing dashaboard with "Explore" tab open by default):

image

@aerosol aerosol force-pushed the exploration-rate-limit branch from 9fc997e to 08c5801 Compare May 12, 2026 10:42
Copy link
Copy Markdown
Contributor

@zoldar zoldar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well now, as far as I could abuse test it 👌 LGTM (just needs a provisional @moduledoc in touched API helper module to make credo happy).

@zoldar
Copy link
Copy Markdown
Contributor

zoldar commented May 12, 2026

Ugh, sorry, my patch introduced a conflict 🙈 I'll fix it up in a bit and fix that credo complaint btw

@zoldar zoldar force-pushed the exploration-rate-limit branch from bd8f3a4 to f5f0ccc Compare May 12, 2026 11:44
@aerosol aerosol added this pull request to the merge queue May 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 12, 2026
@zoldar zoldar added this pull request to the merge queue May 12, 2026
Merged via the queue into master with commit 6544b05 May 12, 2026
28 of 39 checks passed
@zoldar zoldar deleted the exploration-rate-limit branch May 12, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants