Polls are now live!
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:
createoperation to allow a user to create polls: https://github.com/imwatsi/haf-plug-play/blob/master/docs/protocols/polls.md#createvoteoperation 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
pollsintegration - work on improvements and stability fixes for
polls - onboard Podping
- landing page and sample web apps
- work on improving setup and installation
custom_jsondesign 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:
Leave Polls are now live! to:
Read more #hive posts
Best Posts From imwatsi
We have not curated any of imwatsi's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From imwatsi
- Back on Hive — and FreeBeings DAO is live
- Proposal: FreeBeings.io LLC - HAF Development
- 3rd HAF Projects Development Report for 2022
- 2nd HAF Projects Development Report for 2022
- Support my new proposal
- 1st HAF Projects Development Report for 2022
- Proposal: HAF Projects Development and Maintenance #1
- HAF Plug & Play Development - Week 17, 2022
- Dev Update - Week 15, 2022
- Landing Page is Live!