Giter Club home page Giter Club logo

Comments (15)

jarib avatar jarib commented on July 22, 2024

Yes, if you change the schemas, that will fix validation (which is what I assume you're after).

from har.

jarib avatar jarib commented on July 22, 2024

Actually, the schema is also found in the bundled har viewer (lib/har/viewer/scripts/preview/harSchema.js). That's probably where I got the schemas used in the Ruby code originally.

Perhaps it's better to get the latest viewer from http://code.google.com/p/harviewer/ and re-extract the schema from there - assuming the viewer has the correct schema of course.

from har.

michaek avatar michaek commented on July 22, 2024

I had just come to the same conclusion. :) I'll take a look today.

On Tuesday, January 21, 2014, Jari Bakken [email protected] wrote:

Actually, the schema is also found in the bundled har viewer
(lib/har/viewer/scripts/preview/harSchema.js). That's probably where I got
the schemas used in the Ruby code originally.

Perhaps it's better to get the latest viewer from
http://code.google.com/p/harviewer/ and re-extract the schema from there

  • assuming the viewer has the correct schema of course.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-32870515
.

from har.

michaek avatar michaek commented on July 22, 2024

Did you convert the harviewer PHP to HTML by hand? It seems that there's next to no actual PHP in them, merely including the Google Analytics script, so it may be safe enough to simply treat them as HTML or strip out the PHP "tags". What are your thoughts?

from har.

jarib avatar jarib commented on July 22, 2024

I don't recall there being PHP in the viewer code, but if it's for GA, let's strip them out.

from har.

michaek avatar michaek commented on July 22, 2024

Sounds good.

from har.

michaek avatar michaek commented on July 22, 2024

The edge version of harviewer has the same issue, and I've opened a ticket there. I've got an as-yet-uncommitted thor task that grabs the most recent harviewer master (via Bower), strips the PHP and renames files to HTML, then copies the whole shebang to vendor/viewer.

Because this has uncertain benefit, and it changes the behavior of the gem by no longer including the harviewer dependency code, I'm not sure if a pull request would be welcome. I'll probably commit and push to my fork tomorrow if you'd like to take a look.

from har.

jarib avatar jarib commented on July 22, 2024

Sure, ping me when you've pushed (or just submit the PR) and I'll take a look.

from har.

michaek avatar michaek commented on July 22, 2024

Here's the branch with the changes - I don't want to do a pull request, because I don't think Bower is actually appropriate, upon reflection. https://github.com/michaek/har/tree/feature/bower_dependency

from har.

jarib avatar jarib commented on July 22, 2024

Gotcha. I like the idea of making it easy to update the viewer though.

from har.

michaek avatar michaek commented on July 22, 2024

I made a note in that branch's Readme about what I think a better design would be for allowing easier updates. It seems like the ideal way to handle it would be to simply change a gem depencency: gem 'harviewer_ruby', '2.1.5' The thor task and Bundler dependency would just be part of the build process for harviewer_ruby, and the har gem's signature shouldn't need to change.

from har.

michaek avatar michaek commented on July 22, 2024

I suppose it's more conventional to name it ruby_harviewer. :)

from har.

jarib avatar jarib commented on July 22, 2024

Yeah, that would work. It seems a bit overkill to me though, having two gems for such a small utility.

from har.

michaek avatar michaek commented on July 22, 2024

harviewer has just fixed this in 2.0.16 janodvarko/harviewer#7

from har.

jarib avatar jarib commented on July 22, 2024

I've just pushed a 0.1.0 gem with harviewer updated to 2.0.16. I'm still seeing problems with Chrome-generated hars though:

image

I've opened a Chromium bug for this.

from har.

Related Issues (6)

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.