HAF Plug & Play Update #2

Words
299
Reading
2 min
Listen
Play
5y

hive-plug-and-play-2.png

Proposal

The proposal to fund this project is almost funded (70%).

Screenshot from 2021-10-02 21.20.19.png

You can vote for it here:


This week I worked on basic app registrations support, using GitLab CI, functions and tables for the follow plug and updated API documentation.

The pull request is here:
Support app registration, GitLab CI, follow plug sql functions/tables and updated API docs

App registration support

I completed base tables to hold app registrations for Plug & Play. This allows apps to register their app's names and the custom_json ops they are interested in. This will be used to process that app's data.

GitLab CI

I made GitLab CI scripts to auto-deploy the code, if a runner is configured.

Follow Plug SQL Functions and Tables

The tables.sql holds the schema needed to populate the follow plug's operations and state tables.

  • hpp_follow holds all the core operations
  • hpp_follow_state holds the state of followers/following/what data sets, which is updated as the custom_json ops are processed

The functions.sql holds the functions that populate core data sets to support the follow plug and maintain the state table.

  • public.hpp_follow_update updates the op table public.hpp_follow with all follow operations
  • public.hpp_follow_update_state updates the state table public.hpp_follow_state by parsing the operations and effecting state changes for which account is following which one, and for what.

Updated API Documentation

I added documentation for the new plug_play_api.follow.get_account_followers endpoint, which is used to retrieve the list of accounts following a specified Hive account. https://github.com/imwatsi/haf-plug-play/blob/master/docs/api/plugs/follow.md#get_account_followers


Next week's work

In the next week, I will be working on supporting the community plug, which tracks custom_json ops with the community ID. If I finish it in time, I will start working on integrating brianoflondon@brianoflondon's podping operations.



HAF Plug & Play Update #2 | Ecency