Coder Social home page Coder Social logo

Comments (6)

mozfreddyb avatar mozfreddyb commented on September 16, 2024

Luckily, this issue wouldn't need any rework on the scanning/upload handling. Currently, we would already scan multiple files, but a second file just overwrites previous results & editor content

from scanjs.

pauljt avatar pauljt commented on September 16, 2024

Done!

from scanjs.

pwnetrationguru avatar pwnetrationguru commented on September 16, 2024

So looks like this landed in master and ended up breaking a few things; another reason we need these tests!!! :) Also, there are conflicts with the previously existing PR #31.

In master, the client interface's CodeMirror instance is broken. It does not load our examples and I cannot manual input code into the code mirror.

Upon hitting scan, I get the following error:

Error: $scope.inputFiles[0] is undefined ScanCtrl/$scope.run@http://people.mozilla.org/~rfletcher/scanjs/client/js/scanctrl.js:11 Za.prototype.functionCall/<@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/angular-1.2.13.min.js:164 Pc[c]</<.compile/</</<@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/angular-1.2.13.min.js:181 Cd/this.$get</h.prototype.$eval@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/angular-1.2.13.min.js:103 Cd/this.$get</h.prototype.$apply@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/angular-1.2.13.min.js:104 Pc[c]</<.compile/</<@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/angular-1.2.13.min.js:181 o.event.dispatch@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/jquery-2.1.0.min.js:3 o.event.add/r.handle@http://people.mozilla.org/~rfletcher/scanjs/client/js/lib/jquery-2.1.0.min.js:3


...{return typeof o!==U&&o.event.triggered!==b.type?o.event.dispatch.apply(a,argume...

We should probably back these changes out, fix the errors, and then submit a PR. jmo though, I definitely don't want to be bullheaded so please let me know your opinions @mozfreddyb and @pauljt on how best to handle.

In my opinion, in the future we should follow this process before merging into master:

  1. Tests pass - once we have them :)
  2. push dev branch and create PR describing the changes, etc.
  3. Get at least 1 LGTM from someone on the project
  4. If no conflicts, merge into master
  5. If conflicts, resolve conflicts, run tests
  6. Assuming no major changes, merge into master, else update PR.

Again, not trying to lead this development process in any one direction, just trying to figure out what we all agree on. :)

from scanjs.

pauljt avatar pauljt commented on September 16, 2024

It's not broken, its a feature! :) You have to load a file first now. I'll add some checks.

from scanjs.

mozfreddyb avatar mozfreddyb commented on September 16, 2024

well if it still breaks things, we want to back out :|

from scanjs.

mozfreddyb avatar mozfreddyb commented on September 16, 2024

I think this was fixed with commit 58cf6cb. Close this, @pauljt?

from scanjs.

Related Issues (20)

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.