GithubHelp home page GithubHelp logo

msg's People

Contributors

kawa-kokosowa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

msg's Issues

ratelimiting in system user mode

if staticfuzz is gonna use msg, then staticfuzz will be rate limited, not per-user. meaning everyone will have to share the same rate limits, which is bad.

Making post without "text" results in KeyError

Command used: http POST localhost:5000/message message="i love kittens" --auth kitten:yarn

Expected behavior:
Return error with message "text field required"

Actual Behavior:

  File "/Users/seabreeze/Projects/msgboard/msgboard/msg.py", line 201, in post
    text = json_data['text']
KeyError: 'text'

unittest /stream

Difficulty of unittesting SSE/EventSource, /stream

I'm not sure how to approach testing the event stream. It currently will get caught in the infinite loop of the stream resource. Another hurdle is POST'ing while listening with something like sseclient

ensure consistent ordering for messages returned

when returning messages (a list of messages) be sure they're ordered by time in ascending order by default, otherwise there should be a way to specify ascending_not_decending=True as a json property

should there be a modified timestamp? defaults to createddate. this way we can return the newest including by edit, not just created date alone

Testing expired tokens.

Is the a way to test when a token expires that wouldn't involve having python wait 10 minutes?

update viewer/example

it's out of date

also ideally there'd be three kinds of examples:

  • imageboard type (eventually this'll be staticfuzz.
  • instant messenger type/chat
  • trello ripoff

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.