Convert uri to query
Problem:
The move to query parameters was necessary due to an issue with incorrect handling of categories that contained special characters, including the slash (/
) character. In the previous implementation, when such values (e.g. Lap Swim/Exercise) were passed as part of the URL path, Drupal would interpret them incorrectly, resulting in incorrect or no schedule data.
Steps for review:
- Verify that the URL is formed using ? and query parameters (location, category, date, room, etc.).
- Ensure categories containing slashes (e.g. Lap Swim/Exercise) do not break the request.
- Confirm the request hits the correct route (/schedules/get-event-data).
- Verify location is passed and parsed as an array.
- Test filtering by category (including multiple selected).
- Check room parameter
- Validate excl and limit parameters for correct behavior.
- Test edge cases — empty or missing parameters (0, null, etc.).
- Test all input combinations:
- date only,
- category only,
- room only,
- all combined.
Edited by Andrii Podanenko