Commit graph

21 commits

Author SHA1 Message Date
58898b29a7 Add new table user_roles
This commit adds a new database table user_roles to prepare for the
introduction of a voter management system. All existing enabled voters
are added to the VOTER role.
2020-04-14 23:25:11 +02:00
41a8261552 Ensure that the application can start with a new database
This commit changes the NewDB function to run migrations before preparing
SQL statements.
2019-07-31 17:42:12 +02:00
29a7a1c90c Apply Apache License 2.0 2019-07-31 17:30:58 +02:00
2d7f0cc0e3 Modernize Go code
- switch from go-logging to logrus
- handle all errors
- use gomail's NewDialer instead of deprecated NewPlainDialer
2019-07-31 14:14:21 +02:00
fd2f3a6e5d Ignore count of applied migrations from migrate.Exec 2018-03-31 10:50:31 +02:00
4dd5e09820 Embed database migrations
- switch from goose to github.com/rubenv/sql-migrate
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
2018-03-29 20:08:41 +02:00
9b07f3e538 Fix compile errors with pinned dependency versions 2017-08-27 16:30:49 +02:00
4d23b6a48f Switch to more flexible go-logging
This commit switches from loggo to the more flexible go-logging
framework. Logs of severity INFO or higher are now written to a separate
boardvoting.log file.

Errors during execution of mail templates are now logged.

A reasoning for the vote result is now logged and put into the mail
notification when a decision is closed.
2017-04-22 20:07:39 +02:00
5a449926f4 Use loggo for logging 2017-04-22 00:14:38 +02:00
fd0a8ed972 Run goose migration on application startup 2017-04-22 00:14:38 +02:00
8d0e0eeb1b Use INSERT OR REPLACE to allow changing votes 2017-04-22 00:14:11 +02:00
2cac50ee86 Implement proxy voting 2017-04-22 00:14:08 +02:00
b6ad5d8ad3 Implement reminder job 2017-04-22 00:12:38 +02:00
dcdd5f715f Implement decision closing job 2017-04-22 00:12:38 +02:00
2de96dc13d Implement vote closing, refactor notifications 2017-04-22 00:12:38 +02:00
0ce9ad6dcc Implement withdraw motion 2017-04-22 00:12:38 +02:00
bc194e8943 Implement motion editing 2017-04-22 00:12:38 +02:00
cc0f5c0b7b Implement motion creation mail template 2017-04-22 00:12:38 +02:00
471daf12ea Partialy add new motion creation 2017-04-22 00:12:32 +02:00
e0be1a6aa5 Switch to context API 2017-04-22 00:12:24 +02:00
6fe515ea52 Implement proper model, actions and template structure 2017-04-22 00:12:24 +02:00