Since my last update, I've been working on getting polls to a stable production release. I'm glad to say that Polls are now live!.
Pull request: https://github.com/imwatsi/haf-plug-play/pull/8
What does this mean?
Hive frontends like hive.blog, PeakD, 3Speak and Ecency can now start working on integrating polls for their users. Even a separate frontend for polls alone can leverage this feature.
Integrating polls on Hive frontends
For a frontend to successfully integrate polls
on Hive Plug & Play, two aspects need to be developed.
1) custom_json operations:
create
operation to allow a user to create polls: https://github.com/imwatsi/haf-plug-play/blob/master/docs/protocols/polls.md#createvote
operation to allow a user to vote on an individual poll's answers: https://github.com/imwatsi/haf-plug-play/blob/master/docs/protocols/polls.md#vote
2) API endpoints:
Documentation: https://github.com/imwatsi/haf-plug-play/blob/master/docs/api/plugs/polls.md
Postman: https://www.postman.com/imwatsi/workspace/hive-plug-play
get_poll_permlink
: get a valid and unique permlink to use with a new pollget_polls_active
: get a list of active polls, within a specific tag if specifiedget_poll_votes
: get votes for a specified poll
Why the delay?
In my last update, I estimated polls
to be done in about a week. It took longer than expected because I upgraded the HAF code to use the latest release, which then necessitated upgrades to both development
and production
servers to accommodate the new disk space requirements. So I had to setup both servers again from scratch.
A few bugs were also discovered in the core HAF code that caused the node to encounter errors when hived
was restarted. See https://gitlab.syncad.com/hive/haf/-/issues/20.
This delayed the completion of polls
because restarts are common during development and testing. So every time the node restarted, a blockchain replay was needed. The Blocktrades team is working on a solution and it should be resolved soon.
Production Server: https://plug-play.imwatsi.com
Dev Server: https://plug-play-beta.imwatsi.com (unstable, may not be available at times)
Current work scope
- assist frontends with
polls
integration - work on improvements and stability fixes for
polls
- onboard Podping
- landing page and sample web apps
- work on improving setup and installation
custom_json
design recommendations- documentation for setting up custom nodes
That's it for this update!
Proposal
The DHF proposal for this project is now funded. Thank you for supporting this project.
I run a Hive witness node:
- Witness name:
imwatsi
- HiveSigner
- Witness name:
Thanks for this new update.