Create an api for the classifier system
-
create an API for marking a channel with admin feedback -
create an API for getting the summary of a channel's classifier (these stats will be displayed to the admin on the firehose) -
Api endpoints are admin only
Proposed schema from @ramialbatal
-
Aggregated counts of:
- Active days (in the last 30 days, last 7 days)
- Comments written and received (last 30 days, last 7 days, last 1 day)
- Channels received comments from the current channel, channels commented on the current channel posts/blogs (last 30 days, last 7 days, last 1 day).
- Reminds done by the channel and received (last 30 days, last 7 days, last 1 day)
- Channels reminded by the current channel, channels
- Votes done by the channel and received (last 30 days, last 7 days, last 1 day)
- Boosts (last 30 days, last 7 days, last 1 day) + total tokens during the same periods
- Boosts Refund (last 30 days, last 7 days, last 1 day) + total tokens during the same periods
- Wire received and sent (last 30 days, last 7 days, last 1 day) + total tokens received and sent in the same periods
- Channels received wires from the current channel, Channels sent wires to the current channel
- Withdrawals
- Channels subscribed to the current channels (Total, in the last 30 days, last 7 days, last 1 day)
- Subscriptions (Total, in the last 30 days, last 7 days, last 1 day)
- Posts (in the last 30 days, last 7 days)
- Blogs (in the last 30 days, last 7 days)
-
A list of the most recent 50 comments
-
The profile picture
-
The banner
-
The profile description
Schema from @markeharding
CREATE TABLE classifier_outliers ( user_guid bigint, outlier_values map<timestamp,int>, admin_feedback map<timestamp,int>, PRIMARY KEY(user_guid) );
Waiting on confirmation about oauth
We need to make the api patch and complete so Rami can write all the information and the admins can only update the classifier.
Edited by Brian Hatchet