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: fix reminders API GET requests #3203

Merged
merged 6 commits into from
Nov 16, 2019
Merged

fix: fix reminders API GET requests #3203

merged 6 commits into from
Nov 16, 2019

Conversation

mechanarchy
Copy link

This PR will fix #2557 . As identified by @vrajroham, the delible field is of bool type but it was being decoded as a datetime in the API. I've changed the code so it uses the same type of boolean conversion as other API types.

I've also tweaked the test_reminders_get_all() function in tests/Api/ApiReminderControllerTest.php to ensure that delible=False is tested - I hope this is acceptable. Before fixing the controller, the test failed (as expected, given the bug reports); after fixing the controller, the test passes and I am also able to get results from the API from an external script.

@asbiin asbiin merged commit c9d060f into monicahq:master Nov 16, 2019
@asbiin
Copy link
Member

asbiin commented Nov 16, 2019

@mechanarchy Thank you! Great catch!

@mechanarchy mechanarchy deleted the 2557-fix-reminders-api branch November 17, 2019 10:25
@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in reminders API endpoint
2 participants