-
Notifications
You must be signed in to change notification settings - Fork 16
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
Local news list sorting #2952
Comments
@PeterNerlich Thanks for this issue. |
@ztefanie Yes, that one |
@PeterNerlich do you know whether we should filter out news that are older than 28 days? Or should filtering still be done exclusively in the CMS? If we filter in the apps, we'd have another place we'd have to adjust this time period if we ever decide to change it. I also remember some discussions about that. @nikolahoff Furthermore, our last update timestamp should also reflect the same logic (i.e. |
I have not worked on this part of the API and don't know past discussions around that, but as we do already limit which results we put out, so there is no need to do that on app side. This issue is only about sorting, e.g. when news are edited and should thus appear as recent again. |
Thank you @PeterNerlich for the explanation. |
@PeterNerlich I just had a more detailed look on the API resonse and it seems like there are only two relevant properties One another note, it seems like at least updates are correctly reflected in the |
@steffenkleinle Whoops, we messed up, sorry. I have the code defining this endpoint in front of me and see that we do already apply some sorting when delivering the messages. Do you already do some sorting app-side as well? If not, I propose that we just edit the existing sorting in the CMS and you don't have to do anything for this after all, as well as setting the |
@PeterNerlich We don't have any app-side sorting yet, no. I think that would be good if the logic then stays on your side, yes. So I can close the issue, right? Just to make sure, the following is something you would do? Not something we should?
|
Yes, I will change |
No, I think its best if you just set |
This will be done on the CMS side. |
@steffenkleinle It seems that Also, it does seem to include timezones to me, but different from I will ask the team how to proceed |
@PeterNerlich you mean
Exactly. Thank you. Basically our requirement would be that |
Is your feature request related to a problem? Please describe.
Sometimes local news (push notifications) that are older than 28 days appear in the message list / seemingly out of order. This is confusing.
Describe the solution you'd like
max(last_updated, timestamp)
timestamptimestamp
tomax(last_updated, timestamp)
timestamp` (TBD)Filter out news wherelastUpdate > 28 days
Describe alternatives you've considered
Leave it as is
Additional context
CMS issue: digitalfabrik/integreat-cms#2994
This was discussed in the Integreat CMS team, we concluded that there is nothing in our API that would influence this and it has to be implemented on app side.
The text was updated successfully, but these errors were encountered: