#4153 RSS feed for blog not showing revisions or deleted posts

v1.4.0
closed
None
General
2016-03-14
2012-05-04
Anonymous
No

Originally created by: roggan87

Hi!

Overall I really like the new interface of SourceForge :) I've recently discovered something I'd consider a bug. Please correct me if I'm wrong.

I've installed the "blog tool" on our project. The intention is to also use the RSS feed to fetch the blog posts to our website. The problem is that if I edit posts or delete them, it doesn't affect the RSS feed. Is that because of the design of RSS feeds, or simply because that feature is not yet implemented?

Thanks,
Robert

Related

Git: 0e14502c
Git: 101db490
Git: 1f103b73
Git: 262f2057
Git: b33c4ffc
Git: f016c798
Tickets: #7638

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-07-11
    • Milestone: limbo --> forge-backlog
     
  • Anonymous - 2013-08-12

    Originally by: martinprikryl

    I also suffer from this bug. Any news on this?

     
  • Anonymous - 2013-12-19

    Originally by: martinprikryl

    Bump. Any news on this? It's really a pain not to be able to amend RSS feed contents.

     
  • Pranav Sharma - 2016-01-29

    I'm not able to find the code where the creation of blog post also makes the entry into the rss feeds.

     
  • Pranav Sharma - 2016-01-31
    • Description has changed:

    Diff:

    • status: open --> in-progress
    • assigned_to: Pranav Sharma
    • Reviewer: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2016-02-05

    Glad you found the spot. This does work to some extent, but it creates new entries for each revision. I am not sure if that's what we want or not. It lets people subscribed to the feed see all the changes to a blog post, and in some cases that might be useful but I think in most cases people just want the final version in the feed. They don't want people to see the earlier versions.

    To do that, I think the Feed.post method will have to be refactored so to create a new Feed.update method. Set it up so that most of the logic for the permission checks and values are shared (perhaps with a new helper method). And then post would create a new item and update would update an existing one (fetch it with the "ref_id" field probably). Then in the blog code, you can call Feed.post for new items and Feed.update for existing ones.

    Also, if you save something as a draft, and then edit it and keep it as a draft, it is posted to the rss feed but it should never do that if its a draft.

    And an additional thing is that the original description requests that the feed items are removed if a blog post is deleted.

     
    • Pranav Sharma - 2016-02-14

      @Dave, review the branch pr/4153. I made update function for the chenge. It seems to work as desired.

       
  • Dave Brondsema

    Dave Brondsema - 2016-02-18

    A better way to write if Feed.has_access(artifact) == False: is if not Feed.has_access(artifact). Checking for False explicitly isn't normally needed (and when you do, people typically use is False instead of == False).

    Updating is looking just right.

    Can you delete the Feed item if the post status changes to "draft", or is deleted?

    Thanks.

     
    • Dave Brondsema

      Dave Brondsema - 2016-03-07

      Any updates on this ticket? I think you're pretty close to having it complete.

       
  • Dave Brondsema

    Dave Brondsema - 2016-03-14
    • status: in-progress --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2016-03-14

    Hey Pranav,

    I was doing a little more testing and noticed that if you delete a blog post, it doesn't remove it from the RSS feed. Would you like to look into that? I think we overlooked that since we were focusing mostly on editing and changing the status of a blog post.

     
  • Dave Brondsema

    Dave Brondsema - 2016-04-11
    • Milestone: unreleased --> v1.4.0
     

Log in to post a comment.