-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RecurringEvents.iter_after() not producing correct results #3022
Comments
On a side note, I think the way we implement and display monthly recurrence for a weekday is misleading. We display First/Second/Third/Last Week, but we actually mean the nth occurrence of that weekday in the month. (I would expect the month to be segmented into weeks from weekend to weekend and the counting be based on that with what we current show – but the start of those equivalency groups is actually based on which weekday the month starts or ends on) |
Ah, #2992 misunderstood the original issue #2989 for an invalid rendering of the iCal format, a bug they likely determined to be the intended target because of the difficulties of identifying the part of the CMS where the event data is handed over to the app (navigating from the function implementing the generation of event instances to our actual API endpoint exposing it proved confusing, even if it was not the worst one I encountered so far in this project). |
I think this issue is invalid: However, that still does not explain the dates listed at https://webnext.integreat.app/muenchen/de/events/test-5-woche ^^ That appears to be an app issue though, because we pass the correct recurrence rule to it, as can be seen in the network manager in the browser devtools of the page. Here is the relevant snippet: As can be seen, the recurrence rule is correctly set to repeat every third week of the month. Because the |
I think the bug is that the frontend somehow ignores the byday completely. To reproduce:
|
Are we positive that the app only uses the endpoint with |
I am pretty sure that we currently use the endpoint with this flag only, at least for the the event pages (As can be seen in the browser devtools). I also had a call with Leandra, and she is also relatively positive that this is an app issue. If that is the case, she plans to open an issue at the app repository |
Yes, I could fix the issue in the frontend in my local build. I rewrote the parsing of the recurrence rule a couple of weeks ago to fix a different bug and seem to have introduced this one, sorry! I'm currently adding more tests and will open a PR (and an issue) in the app repo later today. |
Yes, at least currently :) |
Moved to backlog since the API endpoint is unused anyway at the moment |
Describe the Bug
The recurrence rule in #3018 is (still) broken for
iter_after()
.As long as this is not resolved, our release is blockedSteps to Reproduce
/api/v3/
{region_slug}/
{language_slug}/events/
" of your running dev serverExpected Behavior
Show for an event that happens every last Thursday the list of last Thursdays (so August 29th, September 26th, October 31st, November 28th, etc.).
Actual Behavior
(1) The current state on production is that only August 29th, October 31st and January are shown (months that have a fifth week). (2) #2992 attempted to fix this, but on the test system now the 29th of a month is shown.
Additional Information
App screenshot from the test system (potentially showing a different bug in the app)
State on production, before #2992
State after #2992
Both are not what we expect
The text was updated successfully, but these errors were encountered: