Skip to content

Instantly share code, notes, and snippets.

View gadicc's full-sized avatar

Gadi Cohen gadicc

  • London, United Kingdom
  • 09:59 (UTC +01:00)
View GitHub Profile
@gadicc
gadicc / mongodb-rest-relay-coverage-main.json
Last active November 7, 2023 13:18
mongodb-rest-relay-coverage
{"schemaVersion":1,"label":"Coverage","message":"82%","color":"green"}
@gadicc
gadicc / jest-coverage-comment__main.json
Last active August 14, 2023 12:05
discourse2-coverage.json
{"schemaVersion":1,"label":"Coverage","message":"42%","color":"orange"}
{"schemaVersion":1,"label":"Coverage","message":"97%","color":"brightgreen"}

Banana streaming status proposal

Rationale

Requests can take a long time and it would be nice to know what's going on and create a good UX around it.

Proposal

Instead of a single long-poll request, we can use chunked transfer encoding to send multiple JSON objects back until the request finishes. I can think of two good sources:

@gadicc
gadicc / gist:7160047
Created October 25, 2013 19:02
node-fibers fail on 0.8.x
info: Welcome to Nodejitsu meteorpedia
info: jitsu v0.13.2, node v0.10.0
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node main.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /home/dragon/tmp/demeteorized/package.json
data:
data: {