Giter Site home page Giter Site logo

bugswarm-tools's People

Contributors

aturley avatar barberdt avatar bugvish avatar c4milo avatar chipkitreadonly avatar kgilmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

giapdangle

bugswarm-tools's Issues

Presence problems as a result of the python httplib library

Currently, it does not appear that the HTTPLibConnection.close() method is properly closing the connection, so the consume.py and produce.py methods do not remove the resources they use from the MUC when killed. We are thinking about porting these scripts to use sockets rather than this library.

Update for 0.3.0 release

Update according to changes expressed in c4milo's release email.

Notes:

  • Content type is no longer required as a header for POST, PUT, and DELETE methods
  • Resource creation no longer requires an ID field

cannot create a swarm with a resource as both producer and consumer using swarms.py

Summary:

You cannot create a swarm with a resource as both a producer and a consumer using swarms.py. The resources are specified as a map where the resource is the key and "producer" or "consumer" is the value. Since it is a map you cannot specify the same resource twice.

Expected behavior:

It would be nice if there was a way of specifying that a resource could be both a producer and a consumer.

Rename to 'swarm', include command-line swarm client to wrap functions

Three reasons:

  1. Keep in line with familiar tools that interface with services:
    node for joyent-node
    jitsu for nodejitsu
    hub for github
  2. Reduce ambiguity by pointing directly to a command ( 'use swarm' > 'use bugswarm-tools' )
  3. Increase usage of domain specific language to give product a personality

@aturley, @barberdt would like feedback before I go ahead with this (BIKESHEDDING)

producer.py sends invalid json to BUGswarm in some cases

Summary:

Commit ab42f17 intentionally sends invalid json in several circumstances.

ab42f17#L0R36
This will produce the following json:
{"message": {"to": ["SWARM_ID"], "payload":}}
There is no value associated with the payload key. The same thing will happen here:
ab42f17#L0R47

The system seems to keep behaving as expected, so this doesn't seem to break anything right now. However, intentionally sending invalid json makes me nervous, especially if this tool is supposed to serve as a reference.

If we just need to send some garbage to initiate the connection, then we should send a small piece of garbage and note in a comment why we're doing it. If we can get away with sending something else as the payload(a bare newline or something like that) then maybe that's a cleaner option.

Create invitations.py

Create invitations.py that uses the send, list sent invitations, list received invitations, and respond methods.

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.