Skip to content
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

Fix filter by status #230

Merged
merged 17 commits into from
Feb 24, 2025
Merged

Conversation

icecoldPHP
Copy link
Contributor

@icecoldPHP icecoldPHP commented Feb 6, 2025

Currently when trying to filter by status with the API
The is an SQL error because the status field has been removed.
This pull request fixed that error.

Also made sure that if the completed_at is in the future that the status of the schedule is show as in_progress instead of completed

Show the planned maintenance correctly on the status-page

Altered all Show methods in the API controllers.
To retrieve the entity by id instead of getting the first record in the table

icecoldPHP and others added 9 commits February 4, 2025 20:53
* In migration drop schedule status changed down to match table name
* Removed some Todo's
* Created ScheduleStatusFilter
* Changed Schedule controller to be able to filter on status again
* Added tests to check if status filters works
* Altered the Schedule Model to make sure that if completed at is in the future is shows in progress
* Altered the Schedule model to fix the scopes
@icecoldPHP icecoldPHP marked this pull request as draft February 8, 2025 15:21
@icecoldPHP icecoldPHP marked this pull request as ready for review February 9, 2025 06:06
@icecoldPHP icecoldPHP requested a review from jbrooksuk February 10, 2025 09:20
@jbrooksuk jbrooksuk merged commit 858e6a0 into cachethq:main Feb 24, 2025
31 checks passed
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.

3 participants