Repository navigation
[Fix] Show Calendar recurrences from their start date - #133
Open
ZainnQureshii wants to merge 1 commit into
Open
ZainnQureshii wants to merge 1 commit into
ZainnQureshii wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Save a Weekly event dated February 12, 2030 through Add Event. In February on
main, the Calendar grid shows only the 12th. Agenda shows the 5th, 12th, 19th, and 26th. Both views show Weekly occurrences in January and show Monthly and Yearly occurrences before their start dates. The grid skipped recurrence expansion for the entire start month. Agenda began expanding from the requested range start. Seesrc/open_apps/apps/calendar_app/main.py:751andsrc/open_apps/apps/calendar_app/main.py:843onmain.The grid and Agenda now show the Weekly event on February 12, 19, and 26. Weekly, Monthly, and Yearly occurrences begin on or after the stored start date. The sidebar mini-month uses the same dates as the grid, and RSS event selection uses the same date bound as Agenda. Event detail links still open the stored series. See
src/open_apps/apps/calendar_app/main.py:752,src/open_apps/apps/calendar_app/main.py:807,src/open_apps/apps/calendar_app/main.py:847,src/open_apps/apps/calendar_app/main.py:983,src/open_apps/apps/calendar_app/main.py:682, andsrc/open_apps/apps/calendar_app/main.py:1279.UI questions read stored events from
/calendar_all. Onmainthe February count answer is one, which matches the old February grid. With the grid fix alone, that answer was still one even though three chips appeared. Day questions could offer a second visible occurrence as a wrong choice._events_in_monthnow emits an entry for each visible Weekly date, so the count answer is three in February and four in March. The appearance template asks once per title, and the day template offers exactly one date on which that title appears. The three templates share the same occurrence list./calendar_allcontinues to return the stored series. Seetests/ui_questions/question_generation/templates.py:119andtests/ui_questions/question_generation/templates.py:566onmain, andtests/ui_questions/question_generation/templates.py:115,tests/ui_questions/question_generation/templates.py:502,tests/ui_questions/question_generation/templates.py:524,tests/ui_questions/question_generation/templates.py:574, andsrc/open_apps/apps/calendar_app/main.py:1465in this change.Testing
The Calendar tests submit Add Event and assert the actual dates in the rendered grid and Agenda. The question test checks the count, appearance, and day choices for the same Weekly event in February and March. See
tests/test_calendar_layouts.py:222andtests/test_questions.py:209.Red on
mainwith the regression tests. Exit 1 with 13 expected failures and 16 passing controls.uv run --active --no-sync -m pytest -p no:cacheprovider tests/test_calendar_layouts.py tests/test_questions.py -k 'recurring_event_dates or calendar_questions_respect_recurrence_start or calendar_questions_use_weekly_occurrences' --tb=shortRed on the earlier grid fix with the new question test. Exit 1 with both count assertions failing.
Final Calendar and question-generation suites. Exit 0 with 243 passing tests.
Ruff 0.12.7 from
uv.lock. Whole-file lint and format checks each exited 1 on pristinemainand on the patch, with the same 28 diagnostics and identical formatter edits. All eight changed ranges passed formatting.AI disclosure
OpenAI Codex investigated the defect, prepared the fix and regression tests, and drafted this description. Claude Code coordinated the work. GitHub Copilot identified the Weekly question mismatch in the preceding revision.
Prepared with AI assistance (Codex and Claude Code) and reviewed with GitHub Copilot.
🤖 Generated with Claude Code