Code Monkey home page Code Monkey logo

autotown's People

Contributors

dustin avatar mlyle avatar tracernz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

autotown's Issues

Empty Stack Dump Should Be Rejected

Two dumps my end failed to fetch, with 416 response from Google storage thing. Checked them in Cloud Console and noticed they both have the same filename/path, and it's 0 bytes...
http://dronin-autotown.appspot.com/at/crash/ahFzfmRyb25pbi1hdXRvdG93bnIWCxIJQ3Jhc2hEYXRhGICAgJDVyNMKDA
http://dronin-autotown.appspot.com/at/crash/ahFzfmRyb25pbi1hdXRvdG93bnIWCxIJQ3Jhc2hEYXRhGICAgJCxqboIDA

So... the filename is the sha1 sum of the dump contents, that makes sense then.
mike@tracer:~$ echo -n '' | openssl sha1
(stdin)= da39a3ee5e6b4b0d3255bfef95601890afd80709

da/39a3ee5e6b4b0d3255bfef95601890afd80709 is the filename. ;)

Should probably check the length of the dump is non-zero there and return 400.

The guy did manage to send a non-empty dump: http://dronin-autotown.appspot.com/at/crash/ahFzfmRyb25pbi1hdXRvdG93bnIWCxIJQ3Jhc2hEYXRhGICAgJD45egLDA

Paging on the API

I have a pull request in for the dronin.org website that puts the autotune stats on the home page. Right now there's around 130 rows in the table which is fine but over time it will eventually get big enough to slow down the page load noticeably. Can you add server side paging to the stats?
dronin-screenshot
dronin-screenshot-popup

/api/recentCrashes pagination

@dustin, currently no way to get older crashes, can we do something like this (totally untested/written in github comment editor ๐Ÿ˜)?

func handleRecentCrashes(w http.ResponseWriter, r *http.Request) {
	c := appengine.NewContext(r)
	start, err := strconv.Atoi(r.FormValue("start"))
	if err != nil || start < 0 {
		start = 0
	}
	q := datastore.NewQuery("CrashData").Order("-timestamp").Offset(start).Limit(50)
	res := []CrashData{}
	if err := fillKeyQuery(c, q, &res); err != nil {
		log.Errorf(c, "Error fetching crash results: %v", err)
		http.Error(w, err.Error(), 500)
		return
	}

	mustEncode(c, w, r, res)
}

Hide board UUID

The board UUID should be hidden to protect user privacy. Also, making the UUID public opens the door for abuse of the system by submitting data with the same UUID that will then be associated with another board, leading to a poor user experience.

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.