Code Monkey home page Code Monkey logo

comment-server's People

Contributors

osilkin98 avatar strikerrus avatar tiger5226 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

comment-server's Issues

Create New DB Tables

Database needs a new table to accommodate:

  • Pinning comments #29
    • one-to-many relation PINS: CLAIM -> COMMENT
  • Channel Blocking
    • one-to-many relation BLOCKS: CHANNEL -> CHANNEL
  • Storing information about claims, including public keys, addresses, stake amounts, etc.
    • CLAIM
      • type
      • stake_amount
      • address
      • claim_id
      • name
      • signing_channel
  • CHANNEL
    • public_key
    • signature
    • public_key_id
  • Requires making a table CLAIM which stores claim_type, signing_channel, stake_amount
  • Action history (e.g. channel x edits comment y at time z)
    • either loose relation on table CHANNEL or a many-to-many relation between CHANNEL & COMMENT
      • action (creates, deletes, updates, hides, pins, etc.)
      • timestamp (good for modification time, etc.)
      • signature (of the action)
      • comment_id (if there is one)
  • Messages
    • dunno if this will either be a modified signed version of COMMENT or if this should be its own entity entirely

Migrate SQLite database to MySQL

What's needed:

  • install and setup MySQL server both on comment server as well as elsewhere
  • Migrate DDL to be compliant with MySQL datatypes
  • Simplify existing queries to be MySQL compliant
  • Create a quick setup script for MySQL server so unit-tests can run on Travis CI

Notifications

Users should be able to receive notifications whenever someone comments on their stuff

deleting/editing/hiding

  • users should be able to delete their comments in the app.
  • users should also be able to edit their comments in the app.
  • channel owners should be able to toggle whether or not selected comments may be hidden in the app
  • channel owners should be allowed to toggle whether or not comments can be made by anonymous users, or at all

comment edit fails if there's s space at the end

i.e. {"jsonrpc":"2.0","method":"comment_update","params":{"comment_id":"5d35b5eedf7a8c90cc06e2dfb99ad0e66efa7333d0911d80ec8d460fe8abc6a2","comment":"What happens when this thread gets really long? Probably should collapse for viewers, with a \"show replies\"? "},"id":1584736786511}

copying the .service and .target files to the systemd directory

As a super-user, copy the .service and .target files to the systemd directory:
$ sudo comment-server/config/comment-server* /etc/systemd/system
should read ( since you are in the comment-server directory );

sudo cp config/comment-server* /etc/systemd/system

Comment Tasks TBD

Primary

  • 1. Tipping Comment (Desktop Side)
  • 2. Notifications (Desktop + Server + ???)
  • 3. Threading/Replies (Desktop + Server maybe)
  • 4. Toggle Comment Enabling (By Channel? By Claim?) (Desktop Side)
  • 5. Deleting or Hiding (Desktop)
  • 6. Editing Comments (Desktop)

Secondary

  • up/downvotes
  • respecting wallet server blacklists
  • sorting

disallow anonymous comments

In a step towards enabling comment moderation by claim/channel owners, we don't want to allow anonymous comments since there's no cost to spamming with them. We will prompt users to create a channel if they want to comment, and channel owners can block other channels from commenting (separate issue).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.