-
Notifications
You must be signed in to change notification settings - Fork 189
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 updated api not returning any item after marking item as read #1713
Conversation
1417725
to
a053f2a
Compare
seems like bats is broken, sometimes ${BATS_SUITE_TEST_NUMBER} is empty |
I don't know how to fix the test, I guess you need to mock the time object to return a fixed value but I don't know how. |
Maybe like this? (only news/tests/Unit/Service/FeedServiceTest.php Lines 100 to 107 in 2baee21
(I didn't look at the test though, just saw your question.) |
Well I managed to make the test working, it just checks if the parameter is given but not the value. |
@anoymouserver thanks :) I guess like it is done now also works. No need to test the function with a specific time. |
I'm basically done with this, it fixes this specific error. Any opinions? |
45800a2
to
814a591
Compare
rebased on master |
If there is no negative feedback I would just squash the commits and merge it. |
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> this way it works Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> add changelog entry Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Partly fix test Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> test passing Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Changed - Add API v1.3 adding routes for starring/unstarring items by id and general fixes (#1727) https://nextcloud.github.io/news/api/api-v1-3/ - Improve styling of tables in articles (#1779) - Allow fetching feeds that omit guid by using link as stand-in (#1785) Fixed - Fix updated api not returning any item after marking item as read (#1713) - Fix deprecation warning for strip_tags() on a null value (#1766) - Fix selected item being set incorrectly when using default ordering or newest first ordering (#1324) - Fix doubling the height of the content area (#1796) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Changed - Add API v1.3 adding routes for starring/unstarring items by id and general fixes (#1727) https://nextcloud.github.io/news/api/api-v1-3/ - Improve styling of tables in articles (#1779) - Allow fetching feeds that omit guid by using link as stand-in (#1785) Fixed - Fix updated api not returning any item after marking item as read (#1713) - Fix deprecation warning for strip_tags() on a null value (#1766) - Fix selected item being set incorrectly when using default ordering or newest first ordering (#1324) - Fix doubling the height of the content area (#1796) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
The updated items api is supposed to return updated items, the last modified date is used for that.
I tried to use the $time provided through dependency injection but for some reason it is null.
I don't really care if we can't use dep injection there, if I made a mistake though I would be happy to adjust it.