wbernest / mattermost-plugin-rssfeed

Mattermost RSSFeed plugin. Allows users to subscribe to an rss feed and allow for updates to the feed to be posted in a channel.
Apache License 2.0
70 stars 40 forks source link

Feed items show up in wrong order #55

Open cdauth opened 3 years ago

cdauth commented 3 years ago

When two items A and B are added to a feed with a lot of time in between, the plugin polls the feed at the intermediate state where only item A is in the feed and will thus post item A before item B. In the channel view, the message containing item A will appear above item B.

If the two items are added to the RSS feed with a small amount of time in between though, so that the plugin does not poll it at the intermediate state, it will post item A and B at the same time (although in separate messages). In this case, the plugin will post item B first (possibly because in my particular feed, which is a GitHub commit history atom feed, item B is the first in the feed). This will cause item B to appear above item A in the channel view.

So there is an inconsistency in the order in which items are posted, depending on whether the plugin happens to poll the feed in between two items or not.

In my opinion older feed items should always be posted first.