emre / dpoll.xyz

Decentralized poll app on the top HIVE blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edits Made in Other Front Ends Don't Display On dPoll

tdreid opened this issue · comments

Expected Behavior

When a user edits a post the most recent version is displayed on front ends that serve a general audience.

Actual Behavior

When a user edits a poll using a Steem blockchain frontend other than dPoll the changes are not visible on the website https://dPoll.xyz.

For example, compare this post on dPoll and Busy.org.

The post has been edited using Busy.org to correct a typo in the first paragraph.
I.e. @rem-steem replaces rem-stem.

poll-on-busy-org

But the change does not show up on dPoll.

image

Steps To Reproduce

  1. Create a poll on dPoll.xyz.
  2. Edit the poll using Busy.org or Steemit.com

I belive the disparity arises because dPoll is reading what it displays from json_metadata.question and json_metadata.description and thus cannnot pickup on changes that were made elsewhere.

This can be seen in the steemd.com view.

steemd-of-post-example

While these are technically different properties from the post body and there is nothng wrong per se with writing custom json_metadata for dPoll's particular purpose, I expect the typical, non-technical user will find this confusing.

This is the intended behavior. We don't want people to alter the content once the poll gets some votes.

Ex:

Alice creates a poll and asks is the earth flat?

Bob sees that, and votes as No.

Alice changes the question to is the earth awesome?

Bob's vote is irrelevant, now.

Editing is only possible at dPoll interface with strict limitations. (until the first vote) Reverse syncing it from the blockchain currently is not supported and it looks like a minor thing, to me.