Jan Dittberner
20d324f5cb
Fix linter error
...
cacert-boardvoting/pipeline/head This commit looks good
Details
- remove nextPotentialRun.Add that had no effect
7 months ago
Jan Dittberner
4276594f8d
Bump copyright year
cacert-boardvoting/pipeline/head There was a failure building this commit
Details
7 months ago
Jan Dittberner
4a8307e16a
Fix display of user
7 months ago
Jan Dittberner
12796486d2
Fix summarizing vote results
7 months ago
Jan Dittberner
f27f2bf801
Update to go 1.19
...
- update go tool in Jenkinsfile
- update go version in go.mod
- update README.md
- update dependencies
7 months ago
Jan Dittberner
d0052ff3dc
Import go-sqlite3 to fix test
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
c9d3f2a20a
Fix permission issues for unauthenticated users
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
fd287e4f55
Add Gitea URL for goreleaser
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
e9af4bfd86
Improve documentation
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
bb06fb95a2
Improve packaging
...
cacert-boardvoting/pipeline/head This commit looks good
Details
- gzip the README.md before packaging
- just release the binary
1 year ago
Jan Dittberner
070bac6314
Fix ui build in Makefile
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
41965ca076
Fix build
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
c2eef9cf7c
Refactoring away from main package
...
cacert-boardvoting/pipeline/head There was a failure building this commit
Details
This commit is a refactoring of code that has been located in the main
package. We introduce separate packages for the main application, jobs,
notifications, and request handlers.
Dependencies are injected from the main application, this will make
testing easier.
1 year ago
Jan Dittberner
3dc3160945
Fix proxy_vote nil pointer dereference
1 year ago
Jan Dittberner
dbf774b727
Increase timeout for golangci-lint
cacert-boardvoting/pipeline/head This commit looks good
Details
1 year ago
Jan Dittberner
17867421eb
Add Linting and tests to Jenkins pipeline
1 year ago
Jan Dittberner
57fd5364fc
Fix golangci-lint warnings
...
- fix spelling
- mark false positives of bodyclose (see
https://github.com/timakin/bodyclose/issues/30 )
1 year ago
Jan Dittberner
c1c9ed5dec
Fix golangci-lint warnings
1 year ago
Jan Dittberner
c37bfb3b9a
Fix mail config name in example configuration
1 year ago
Jan Dittberner
ff58bf721c
Fix test code
2 years ago
Jan Dittberner
be77e5f05d
Make remind voter job useful
2 years ago
Jan Dittberner
f966cbd62f
Implement user creation and voter management
2 years ago
Jan Dittberner
39bd724381
Switch routing to chi
...
Routing with httprouter and alice became a bit too complex. This commit
replaces the routing and middleware composition with chi.
2 years ago
Jan Dittberner
de4c6faef6
Implement email address deletion
2 years ago
Jan Dittberner
99a2cde144
Improve flash message handling
2 years ago
Jan Dittberner
be14a37b4d
Implement add email address
2 years ago
Jan Dittberner
a5475ec16e
Implement user editing
2 years ago
Jan Dittberner
5efc57d2c3
Implement user deletion
...
- add audit logging for user changes
- refactor model errors into functions
- implement user delete form and submit handlers
2 years ago
Jan Dittberner
db52f88e25
Implement user list
2 years ago
Jan Dittberner
71fc599a10
Fix goreleaser config
2 years ago
Jan Dittberner
c625b6dc9e
Add TODO tags for handlers that have no implementation
2 years ago
Jan Dittberner
7f0b52c5b5
Fix linter warnings
2 years ago
Jan Dittberner
368bd8eefb
Remove old code
...
- remove the old code and its dependencies
- perform some refactoring and fix notifications
- add TODO tags for observed shortcomings
- rename voters.go to users.go
- implement health check for SMTP connection
2 years ago
Jan Dittberner
28ddbd2ce6
Implement motion withdraw
2 years ago
Jan Dittberner
c12aaf4d89
Implement proxy voting
2 years ago
Jan Dittberner
0c02daf29a
Implement direct voting
2 years ago
Jan Dittberner
164495c818
Improve design
...
- improve icons
- implement VoteChoice and VoteStatus as real types with Scanner and Value
methods
2 years ago
Jan Dittberner
b8b6899cf3
Update modified timestamp when updating motion
2 years ago
Jan Dittberner
2b98712aa8
Implement motion editing
2 years ago
Jan Dittberner
335ce16547
Add tests for handlers and middleware
...
- drop migration 2022052601_drop_unused_decisions_colums because it was implicitly part of an earlier migration
- add /health endpoint for database health check
- add tests for the health check endpoint
- add tests for middleware secureHeaders, logRequest and tryAuthenticate
- add models.UserModel.CreateUser method
2 years ago
Jan Dittberner
c3d0733e27
Replace gorilla/csrf with justinas/nosurf
...
- replace dependency for less indirect dependencies
- remove unused configuration options
2 years ago
Jan Dittberner
257a777e03
Add Cache-Control for authenticated pages
2 years ago
Jan Dittberner
d5d7525a31
Tighten http timeout settings
2 years ago
Jan Dittberner
1695ce0168
Implement small improvements
...
- fix golangci-lint warnings
- start setup for user management
- nicer formatting of user login information
2 years ago
Jan Dittberner
47092bfa9b
Implement flash messages
...
- configure session cookie security
- setup flash message handling in newTemplateData
- show flash message in base.html
- add flash message for new motion
2 years ago
Jan Dittberner
f8fbf00c4d
Refactor new motion form processing
...
- extract form parsing into helper method app.decodePostForm
- extract field checks into form.Validate
2 years ago
Jan Dittberner
a1a66b7245
Finish new motion create implementation
...
- rename config block mail_server to mail_config
- rename smtp server settings
- move mail notification settings to mail_config
- improve navigation templates
- prepare routes for user management
2 years ago
Jan Dittberner
aa3a1b0cc7
Implement database mapping for vote types
2 years ago
Jan Dittberner
e1af6876c1
Implement new motion form
...
- add session handler
- add form decoder from go-playground
- implement custom decoder for VoteType
2 years ago
Jan Dittberner
47af34f1cd
Use httprouter.NotFound and httprouter.PanicHandler
2 years ago