Coder Social home page Coder Social logo

dnnrly / hoofli Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 90 KB

Generate PlantUML diagrams from Chrome or Firefox network inspections

License: Apache License 2.0

Makefile 12.14% Go 79.85% Gherkin 8.02%
chrome cli firefox go golang hacktoberfest plantuml

hoofli's People

Contributors

dbx12 avatar dnnrly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dbx12

hoofli's Issues

Add support for Chrome _initiator block

Is your feature request related to a problem? Please describe.
Chrome has additional _initiator block. This seems to include information about what has invoked each network fall.

Describe the solution you'd like
It would be great if we could see which scripts or user events initiate network calls in our diagrams

Describe alternatives you've considered
Nothing yet. This appears to be specific to Chrome but this information might be present in other browsers

Additional context
n/a

PR validation checks are not running

Describe the bug
It appears that we aren't actually running any of our tests when we raise a PR. Could this be only for contributors? Or owners too?

Some tests swap the parameters for expected and actual result

Describe the bug
Some tests swap expected and actual result which leads to confusing outputs in case of failing tests. At time of writing, this affects these test methods:

To Reproduce
Steps to reproduce the behavior:

  1. Break a test by replacing the contents of test/reference/plantuml/simple-example.puml with this is not puml code
  2. Run tests
  3. See test failure report for TestDrawHar_SinglePage reading:
    Not equal:
    expected: "@startuml ....."
    actual: "this is not puml\n"
    

Expected behavior
Test failure report should read

Not equal:
expected: "this is not puml\n"
actual: "@startuml ....."

Show blocked requests correctly

Is your feature request related to a problem? Please describe.
When a request is blocked for some reason, the response is rendered with status code zero. Reading the field response._error might help in finding out why the request was blocked.

Describe the solution you'd like
Maybe show a note on the connection with the contents of response._error (for example net::ERR_BLOCKED_BY_CLIENT)

Describe alternatives you've considered
Maybe rework the colors used for highlighting the initiator so red can be used for blocked requests. In any case, the return from the request must not be shown.

Additional context
Example request (truncated for brevity):

{
  "_initiator": {...},
  "_priority": "Low",
  "_resourceType": "image",
  "cache": {},
  "pageref": "page_1",
  "request": {...},
  "response": {
    "status": 0,
    "statusText": "",
    "httpVersion": "",
    "headers": [],
    "cookies": [],
    "content": {
      "size": 0,
      "mimeType": "x-unknown"
    },
    "redirectURL": "",
    "headersSize": -1,
    "bodySize": -1,
    "_transferSize": 0,
    "_error": "net::ERR_BLOCKED_BY_CLIENT"
  },
  "serverIPAddress": "",
  "startedDateTime": "2022-10-28T16:29:31.302Z",
  "time": 6.7949999998973,
  "timings": {
    "blocked": 6.7949999998973,
    "dns": -1,
    "ssl": -1,
    "connect": -1,
    "send": 0,
    "wait": 0,
    "receive": 0,
    "_blocked_queueing": -1
  }
}

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.