-
Notifications
You must be signed in to change notification settings - Fork 179
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
Articles with high IDs can be placed lower than articles with low IDs #1147
Labels
Comments
Merged
Grotax
added a commit
that referenced
this issue
Feb 23, 2021
Changed - Remove outdated item DB code. ( #1056) - Stop returning all feeds after marking folder as read. (#1056) - Always fetch favicon (#1164) - Use feed logo instead of favicon if it exists and is square (#1164) - Add CI for item lists (#1180) Fixed - Item list throwing error for folder and "all items" (#1180) - Articles with high IDs can be placed lower than articles with low IDs (#1147) - Feeds are accidentally moved on rename (#1189) - Item list not using ID for offset (#1188) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Merged
Grotax
added a commit
that referenced
this issue
Feb 23, 2021
Changed - Remove outdated item DB code. ( #1056) - Stop returning all feeds after marking folder as read. (#1056) - Always fetch favicon (#1164) - Use feed logo instead of favicon if it exists and is square (#1164) - Add CI for item lists (#1180) Fixed - Item list throwing error for folder and "all items" (#1180) - Articles with high IDs can be placed lower than articles with low IDs (#1147) - Feeds are accidentally moved on rename (#1189) - Item list not using ID for offset (#1188) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
mnassabain
pushed a commit
to Team-Forward/news
that referenced
this issue
Mar 1, 2021
Changed - Remove outdated item DB code. ( nextcloud#1056) - Stop returning all feeds after marking folder as read. (nextcloud#1056) - Always fetch favicon (nextcloud#1164) - Use feed logo instead of favicon if it exists and is square (nextcloud#1164) - Add CI for item lists (nextcloud#1180) Fixed - Item list throwing error for folder and "all items" (nextcloud#1180) - Articles with high IDs can be placed lower than articles with low IDs (nextcloud#1147) - Feeds are accidentally moved on rename (nextcloud#1189) - Item list not using ID for offset (nextcloud#1188) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
mnassabain
pushed a commit
to Team-Forward/news
that referenced
this issue
Mar 1, 2021
Changed - Remove outdated item DB code. ( nextcloud#1056) - Stop returning all feeds after marking folder as read. (nextcloud#1056) - Always fetch favicon (nextcloud#1164) - Use feed logo instead of favicon if it exists and is square (nextcloud#1164) - Add CI for item lists (nextcloud#1180) Fixed - Item list throwing error for folder and "all items" (nextcloud#1180) - Articles with high IDs can be placed lower than articles with low IDs (nextcloud#1147) - Feeds are accidentally moved on rename (nextcloud#1189) - Item list not using ID for offset (nextcloud#1188) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
mnassabain
pushed a commit
to Team-Forward/news
that referenced
this issue
Mar 1, 2021
Changed - Remove outdated item DB code. ( nextcloud#1056) - Stop returning all feeds after marking folder as read. (nextcloud#1056) - Always fetch favicon (nextcloud#1164) - Use feed logo instead of favicon if it exists and is square (nextcloud#1164) - Add CI for item lists (nextcloud#1180) Fixed - Item list throwing error for folder and "all items" (nextcloud#1180) - Articles with high IDs can be placed lower than articles with low IDs (nextcloud#1147) - Feeds are accidentally moved on rename (nextcloud#1189) - Item list not using ID for offset (nextcloud#1188) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Neo11
pushed a commit
to Neo11/news
that referenced
this issue
May 28, 2022
Changed - Remove outdated item DB code. ( nextcloud#1056) - Stop returning all feeds after marking folder as read. (nextcloud#1056) - Always fetch favicon (nextcloud#1164) - Use feed logo instead of favicon if it exists and is square (nextcloud#1164) - Add CI for item lists (nextcloud#1180) Fixed - Item list throwing error for folder and "all items" (nextcloud#1180) - Articles with high IDs can be placed lower than articles with low IDs (nextcloud#1147) - Feeds are accidentally moved on rename (nextcloud#1189) - Item list not using ID for offset (nextcloud#1188) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explain the Problem
When set to show new articles at the top, some articles that were downloaded recently show up close to the bottom.
Steps to Reproduce
I think I know what's happening. (This is my first time touching Angular, so I could be wrong.) The Nextcloud API returns items like
id: "101"
, withid
as a string. Since News is using Angular's default sorting method on theid
field, which is an alphabetical comparison, it ranks 101 as being between 1 and 2, rather than after 50.Parsing the ids as an integer first, and then comparing them, fixes the issue on my instance where I discovered the problem. I still need to work out the test coverage, but I think PR #1148 does the trick.
System Information
The text was updated successfully, but these errors were encountered: