kokeroulis / modip Goto Github PK
View Code? Open in Web Editor NEWmodip v2
modip v2
system: Slackware-current x86_64 (dockerized)
with psql 9.3, go1.3.3, node 0.10.32, npm 1.4, bower 1.3.12
everything runs in the same docker container.
username: tsiapaliokas
password: tsiapaliokas
Can't connect to postgresql
panic: pq: password authentication failed for user "tsiapaliokas"
goroutine 16 [running]:
runtime.panic(0x821620, 0xc2080d4360)
/usr/lib64/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/kokeroulis/modip/db.Connect()
/home/tsiapaliokas/Github/github.com/kokeroulis/modip/.vendor/src/github.com/kokeroulis/modip/db/setup.go:24 +0x253
main.main()
/home/tsiapaliokas/Github/github.com/kokeroulis/modip/modip.go:17 +0xa2
goroutine 19 [finalizer wait]:
runtime.park(0x412f30, 0xae7528, 0xae4f09)
/usr/lib64/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xae7528, 0xae4f09)
/usr/lib64/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/lib64/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/lib64/go/src/pkg/runtime/proc.c:1445
goroutine 20 [chan receive]:
database/sql.(*DB).connectionOpener(0xc208046000)
/usr/lib64/go/src/pkg/database/sql/sql.go:583 +0x48
created by database/sql.Open
/usr/lib64/go/src/pkg/database/sql/sql.go:442 +0x27c
goroutine 17 [syscall]:
runtime.goexit()
/usr/lib64/go/src/pkg/runtime/proc.c:1445
exit status 2
make: *** [db-create-development] Error 1
relevant pg_hba part.
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
When i am trying to make a post request into the teacher/asset/add
I get the following error:
{
classification: "DeserializationError"
message: "json: cannot unmarshal string into Go value of type int"
}
You can reproduce this one from the UI.
On TeacherService.addAsset you must put console.log(result) into the then callback,
in order to see the error.
We need a tool which will export the data from modip drupal.
We need a docker image with the drupal and the password of at least one teacher to be changed to something like '123'
Find a way in order to communicate with dionysos in order
to extract data from it.
@Drakevr comments on this one???
All the sql queries should be moved inside to go files, instead of being in their own sql files.
The reasoning behind this is that plPg/SQL function that use the "CREATE OR REPLACE FUNCTION" can be modified on the fly.
If the queries are located in go files we can just modify them and call them again, so the migration is easy. If the queries aren't located in go files we will have to move the sql queries to another file which leads to very very bad git history.
When I try to enter a decimal number for a percentage in "Katanomi Vathmon Spoudaston %" I get an error Please enter a valid value. That should not happen.
negroni-session cries out when running make db-create-development
CREATE LANGUAGE
CREATE EXTENSION
# github.com/goincremental/negroni-sessions
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:97: undefined: dal.NewObjectId
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:115: undefined: dal.IsObjectIdHex
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:124: undefined: dal.ObjectIdHex
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:135: undefined: dal.IsObjectIdHex
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:160: undefined: dal.ObjectIdHex
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:164: undefined: dal.ObjectIdHex
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:173: undefined: dal.IsObjectIdHex
.vendor/src/github.com/goincremental/negroni-sessions/dal_store.go:182: undefined: dal.ObjectIdHex
make: *** [db-create-development] Error 2
api.checkQuery should give more info if there is an error in the query.
Right now it takes the resp and req, so those would be sufficient for
debugging.
Of course api.checkQuery SHOULD never EVER print user credentials
and stuff like that
big numbers like 9090392038123232312312 make the go server panic
with panic something like
PANIC: schema: error converting value for "anagnorish_tou_episthmonikou_kai_allou_ergou_eteroanafores" (and 3 other errors)
teacher_auth should return empty parameters instead of null.
If it returns null there is no way to scan them without having an error.
Those two entries are being missing from stuff/*
PANIC: pq: relation "akademic_year" does not exist
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/recovery.go:29 (0x42eb69)
func.003: stack := debug.Stack()
/usr/lib64/go/src/pkg/runtime/panic.c:248 (0x40e9ad)
panic: runtime·newstackcall(d->fn, (byte*)d->args, d->siz);
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/kokeroulis/modip/models/akademic_year.go:63 (0x4e98be)
ListAkademicYears: panic(err)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/kokeroulis/modip/api/teacher.go:82 (0x437901)
GetTeacherListReport: akademicYears := models.ListAkademicYears()
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/kokeroulis/modip/api/routes.go:21 (0x43477c)
authorize.ServeHTTP: auth.handler(resp, req)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/gorilla/mux/mux.go:98 (0x504052)
(*Router).ServeHTTP: handler.ServeHTTP(w, req)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:41 (0x42ea86)
func.001: handler.ServeHTTP(rw, r)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:24 (0x42cb3a)
HandlerFunc.ServeHTTP: h(rw, r, next)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42cbcc)
middleware.ServeHTTP: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42ea26)
middleware.ServeHTTP.fm: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/static.go:49 (0x42e32b)
(*Static).ServeHTTP: next(rw, r)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42cbcc)
middleware.ServeHTTP: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42ea26)
middleware.ServeHTTP.fm: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/logger.go:25 (0x42c8cc)
(*Logger).ServeHTTP: next(rw, r)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42cbcc)
middleware.ServeHTTP: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42ea26)
middleware.ServeHTTP.fm: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/recovery.go:39 (0x42da69)
(*Recovery).ServeHTTP: next(rw, r)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:33 (0x42cbcc)
middleware.ServeHTTP: m.handler.ServeHTTP(rw, r, m.next.ServeHTTP)
/home/drakevr/Github/github.com/kokeroulis/modip_push/.gopath/src/github.com/codegangsta/negroni/negroni.go:73 (0x42d0ea)
(*Negroni).ServeHTTP: n.middleware.ServeHTTP(NewResponseWriter(rw), r)
/usr/lib64/go/src/pkg/net/http/server.go:1673 (0x458c6f)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/lib64/go/src/pkg/net/http/server.go:1174 (0x45686e)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/lib64/go/src/pkg/runtime/proc.c:1445 (0x4131d0)
goexit: runtime·goexit(void)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.