"delete" is not shown after deleting child comment.

in #utopian-io5 years ago (edited)

Project Information

Note that PO has already acknowledged the bug (labeled bug see also comment in the issue of condenser). Do not test this on your own unless you're familiar with using API to delete it, since you may not be able to delete your test comment otherwise.

Expected behavior

A user should be able to delete a comment when all child comments are deleted.

Actual behavior

A user cannot delete a comment due to no delete button even after all child comments are deleted.

How to reproduce

(See the recording)

  • Write nested comments.
  • Delete the child comment and refresh.
  • You can't see "delete" anymore no matter how many times you refresh. (Of course, there was no vote or child).

Cause

I analyzed the cause of the bug and the problem was due to the Hivemind's children field, which set to 1 if there is any child comment, 0 otherwise.

Even after deleted, steemd (which uses Hivemind) says that children = 1

api.steemit.com returns children = 0 correctly, so I was able to delete the comment by using API, connecting to api.steemit.com instead of Hivemind.

steemit.com is using Hivemind, so the comment's children field is set to 1 even after deleting all child comments, and that's why delete link is not shown.

  • Browser/App version: Any
  • Operating system: Any

Recording Of The Bug

  • Write nested comments as follows:

  • Delete the child comment and refresh

  • You can't see "delete" anymore no matter how many times you refresh. (Of course, there was no vote or child).

GitHub Account

https://github.com/economicstudio

Sort:  

HI @blockchainstudio, thanks for making this report

I see the PO has acknowledged the bug. Thanks for the detailed analysis, it has the workings of the old block(by block I mean you). It can be tricky if you don't know your way around the API. Good that you improvised by deleting the comment from the api endpoint. Great find

I look forward to more of your reports.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Korean: 현재 스팀잇에서 비용절감을 위해 도입된 Hivemind 버그로 인해 댓글에 대댓글을 달고 대댓글을 지웠어도 댓글을 지울수가 없게 delete 버튼이 안보이는 버그가 있습니다. 뭐 이런 일이 잘 안 생기실거라 신경안쓰셔도 될 것 같습니다. api로 일반노드에 접속해서 지우면 되긴 합니다.

저도 우연히 SCT버그 찾다가 발견했습니다. 현재 SCT의 경우 대댓글이 안보이는 현상이 나오고 있습니다. 그 원인을 찾다 우연히 스팀잇, 엄밀히는 Hivemind에서 일어나는 버그를 발견했네요. 둘이 연관된 버그일 수도 있습니다.

amosbastian님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
amosbastian님의 Weekly overview of the development category - Week 22, 2019

... week, so here's just a list of all the contributions:
blockchainstudioul>
  • The very first SCOT voting power viewer + balanc...

    Hi @blockchainstudio!

    Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
    Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
    Feel free to join our @steem-ua Discord server

    feelsogood님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
    feelsogood님의 (Curation) 같이 읽으면 좋은 글 추천해주세요 #6

    ...니다)
    banguri / beom / 왕초보 SCT토큰 구매기(구매방법)
    feelsogood / blockchainstudio/ SCT로 인한 긍정적 변화 그리고 제안
    feelsogood / roostermine / 빙구처럼...

    feelsogood님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
    feelsogood님의 (Curation) 같이 읽으면 좋은 글 추천해주세요 #6

    ...JM을 100개씩 무상으로 나눠드립니다 (22분 더 추가 신청 가능합니다)
    feelsogood / blockchainstudio/ SCT로 인한 긍정적 변화 그리고 제안
    feelsogood / roostermine / 빙구처럼...

    esteemapp님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
    esteemapp님의 eSteem Surfer changelog

    ...de>New Effective power down amount (shout out to blockchainstudiofor PR)
  • Improved Votes popover vis...

    zorba님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
    zorba님의 [2019/5/30] 가장 빠른 해외 소식! 해외 스티미언 소모임 회원들의 글을 소개해드립니다.

    ...an님, 태국에서 jisoooh0202님, 미국 캘리포니아에서 livelyshawnee님, 영국에서 blockchainstudio gomdory님, 일본에서 sizuko님, 프랑스에서 eric66님, laylador님, 네덜란드에...

    favcau님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
    favcau님의 Suggestions category - Weekly report: #32

    ...t VP recovery after staking / unstaking cancellation by blockchainstudio/li>
  • Addition of specific price alert, exchange pric...

    Hey, @blockchainstudio!

    Thanks for contributing on Utopian.
    We’re already looking forward to your next contribution!

    Get higher incentives and support Utopian.io!
    Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

    Want to chat? Join us on Discord https://discord.gg/h52nFrV.

    Vote for Utopian Witness!

    Coin Marketplace

    STEEM 0.30
    TRX 0.12
    JST 0.032
    BTC 57592.54
    ETH 2911.85
    USDT 1.00
    SBD 3.67