Skip to content

Remove the 1000 historical events limitation#1

Draft
Copilot wants to merge 4 commits into
developfrom
copilot/remove-historical-events-limit
Draft

Remove the 1000 historical events limitation#1
Copilot wants to merge 4 commits into
developfrom
copilot/remove-historical-events-limit

Conversation

Copilot AI commented Jan 30, 2026

Copy link
Copy Markdown

Removes the 1000 event limit for free-tier users by setting FREE_HISTORY_EVENTS_LIMIT and FREE_PNL_EVENTS_LIMIT to -1 (unlimited), consistent with how premium unlimited access is already represented in the codebase.

Changes

  • Constants: Set FREE_HISTORY_EVENTS_LIMIT and FREE_PNL_EVENTS_LIMIT to -1
  • db/reports.py: _get_reports_or_events_maybe_limit() now returns all entries when limit < 0
  • db/history_events.py: _create_history_events_query() and get_history_events_count() skip limiting when entries_limit < 0
  • accounting/accountant.py: Event limit enforcement only triggers when events_limit >= 0
  • Tests: Updated hardcoded entries_limit == 1000 assertions to expect -1

Checklist

  • The PR modified the frontend, and updated the user guide to reflect the changes.
Original prompt

Remove the 1000 historical events limitation


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 30, 2026 09:23
Change FREE_HISTORY_EVENTS_LIMIT and FREE_PNL_EVENTS_LIMIT from 1000
to -1 (unlimited) to remove historical event limitations for all users.
Update related code to handle -1 as unlimited value.

Co-authored-by: vcastellm <47026+vcastellm@users.noreply.github.com>
Use existing events_limit variable instead of creating redundant
local variable for limit checking.

Co-authored-by: vcastellm <47026+vcastellm@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove 1000 historical events limitation Remove the 1000 historical events limitation Jan 30, 2026
Copilot AI requested a review from vcastellm January 30, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants