Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Dependency List
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 805
    • Issues 805
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 63
    • Merge Requests 63
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Packages
    • Packages
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Issues
  • #1429

Closed
Open
Opened 3 weeks ago by Jack Ottman@jotto141
  • Report abuse
  • New issue
Report abuse New issue

(bug): publishing a blog that was saved as a draft or "unlisted" does not generate activity post

Summary

Many bloggers like to save drafts or publish blogs as unlisted before making them public so they can work on them. If you save a draft, or publish as unlisted, and eventually try to publish the blog to public, then it does not generate an activity post.

Steps to reproduce

  1. Write a blog

  2. Save as draft (can try doing this twice)

  3. go back to edit blog and publish as public.

  4. No activity post created

  5. Write a blog

  6. Publish as unlisted

  7. go back and edit blog and publish as public

  8. no activity post created

Platform information

All

What is the expected correct behavior?

An activity post should be created everytime you publish a blog as "Pubic" no matter what the state of the blog was prior.

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

Related issues
0

    • Jack Ottman @jotto141 added T - Bug label 3 weeks ago

      added T - Bug label

    • Mark Harding @markeharding assigned to @gthouret 2 days ago

      assigned to @gthouret

    • Mark Harding @markeharding added Priority::2 - Normal label 2 days ago

      added Priority::2 - Normal label

    • Mark Harding @markeharding added Product::Blogs label 2 days ago

      added Product::Blogs label

    • Mark Harding @markeharding changed weight to 2 2 days ago

      changed weight to 2

    • Mark Harding @markeharding changed milestone to %sprint: Interesting Iguana 2 days ago

      changed milestone to %sprint: Interesting Iguana

    • Mark Harding @markeharding unassigned @eiennohi 2 days ago

      unassigned @eiennohi

    • Guy Thouret @gthouret added Status::InProgress label 1 day ago

      added Status::InProgress label

    • Guy Thouret
      Guy Thouret @gthouret · 1 hour ago
      Developer

      I'm not able to reproduce this bug report in production or dev environment.

      What I do see in production is when blog posts have been created in draft they don't appear in the 'blog' sidebar of my page. This does not happen in dev environment.

      I captured the URL slug of the draft blogs to get back to them, edit and then publish. Once published they appeared in my newsfeed.

    • Guy Thouret
      Guy Thouret @gthouret · 1 hour ago
      Developer

      If I visit https://www.minds.com/guythouret/blogs I see all posts, draft and published.

    • Jack Ottman
      Jack Ottman @jotto141 · 1 hour ago
      Owner

      @gthouret it is creating a newsfeed post? This is a consistent issue for me when blogging. If you save it as unlisted or a draft, and then try to publish it to the public, it does not create a newsfeed post. Similarly, if you edit the blog after publishing, such as the title or banner, the edits do not take affect on the newsfeed post.

    • Guy Thouret
      Guy Thouret @gthouret · 1 hour ago
      Developer

      @jotto141 I just created a blog post as draft, went away from the page, went back and edited then hit publish and it created the newsfeed post for me.

      I'll see what edit title/text after publish does.

    • Jack Ottman
      Jack Ottman @jotto141 · 1 hour ago
      Owner

      @gthouret okay, also try publishing a blog as unlisted, then going to the blog and editing it to make it public and then publishing again — don’t think it creates the activity post.

      Also, the save draft button usually disappears after you use it two times. I can try to replicate if you have issues but these are annoying bugs that have lingered.

      Edited by Jack Ottman 1 hour ago
    • Guy Thouret
      Guy Thouret @gthouret · 1 hour ago
      Developer

      Edited title + text and now it's disappeared from newsfeed but the changes are visible on the blog page :joy:

    • Guy Thouret
      Guy Thouret @gthouret · 1 hour ago
      Developer

      @jotto141 Ah my bad I thought 'unlisted' was the same as 'draft' these are separate things. Will dig a bit deeper into it.

      • Guy Thouret
        Guy Thouret @gthouret · 1 hour ago
        Developer

        Right, according to the code we publish activity when creating a new public blog post OR editing a public blog post from draft => published.

        If a post was published (not draft) as unlisted and we edit to public, no activity gets created.

        The logic for creating the activity needs updating and could do with being a bit clearer there.

        Edited by Guy Thouret 29 minutes ago
      • Collapse replies
      • Jack Ottman
        Jack Ottman @jotto141 · 29 minutes ago
        Owner

        Yeah, that makes sense. Publishing something as "unlisted" should not even be necessary with "Save Draft", but the problem is the "Save Draft" button disappears after you use it twice.

      • Please register or sign in to reply
    • Jack Ottman
      Jack Ottman @jotto141 · 35 minutes ago
      Owner

      All good. You're getting deep into some of the legacy stuff early :)

      A lot of it I think has to do with the "edit" function being different for the media page (full blog page) and the activity post (newsfeed post of the blog). Really these things should be synchronized and everything should update on both versions when changes are made. I think this is the reason that unlisted blogs do not create an activity post when you publish it -- it requires an edit, and then the edit is not recognized by the activity post.

      But for starters, the key is making sure that 1) the save draft button never disappears and 2) if you post something as "unlisted" and then go edit it and post it as "public" that it generates an activity post at that time.

      Let me know if you have any questions

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    Assignee
    Guy Thouret's avatar Guy Thouret @gthouret
    Assign to
    None
    Epic
    None
    sprint: Interesting Iguana
    Milestone
    sprint: Interesting Iguana
    Assign milestone
    None
    Time tracking
    No estimate or time spent
    None
    Due date
    None
    4
    Labels
    Priority::2 - Normal Product::Blogs Status::InProgress Type::Bug
    Assign labels
    • View project labels
    2
    Weight
    2
    Confidentiality
    Not confidential
    Lock issue
    Unlocked
    4
    4 participants
    user avatar
    Guy Thouret
    user avatar
    Jack Ottman
    user avatar
    Mark Harding
    user avatar
    Marcelo Rivera
    Reference: minds/front#1429