From f5715b76da238a7fb1c2d07ebdde82968f328147 Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 13 Jan 2026 10:14:43 -0500 Subject: [PATCH 1/5] remove debug log call and added dev flags log messages --- main.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 89b8c04..c58400e 100644 --- a/main.go +++ b/main.go @@ -67,6 +67,15 @@ func main() { ) oidcClient.setupOidcClient(os.Getenv("VOTE_OIDC_ID"), os.Getenv("VOTE_OIDC_SECRET")) InitConstitution() + + if (DEV_DISABLE_ACTIVE_FILTERS) { + logging.Logger.WithFields(logrus.Fields{"method": "main init"}).Warning("Dev disable active filters is set!") + } + + if (DEV_FORCE_IS_EVALS) { + logging.Logger.WithFields(logrus.Fields{"method": "main init"}).Warning("Dev force evals is set!") + } + r.GET("/auth/login", csh.AuthRequest) r.GET("/auth/callback", csh.AuthCallback) r.GET("/auth/logout", csh.AuthLogout) @@ -300,8 +309,6 @@ func main() { UserId: claims.UserInfo.Username, } - fmt.Println(poll.Options) - for _, option := range poll.Options { optionRankStr := c.PostForm(option) optionRank, err := strconv.Atoi(optionRankStr) From b5fa4ddc22dfa7170fa1c3fbfddbfd0defc60396 Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 13 Jan 2026 10:15:01 -0500 Subject: [PATCH 2/5] update readme with some todos --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 15b7eb3..e3ae5f0 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,5 @@ go vet *.go - [x] Move Hide Vote to create instead of after you vote :skull: - [ ] Display the reason why a user is on the results page of a running poll - [ ] Display minimum time left that a poll is open +- [ ] Move routes to their own functions +- [ ] Change HTTP resposne codes to be `http.something` instead of just a number From 0422dc2c672b5ac737a0a60cf2fa7c8c6ed35592 Mon Sep 17 00:00:00 2001 From: Noah Hanford Date: Tue, 13 Jan 2026 10:18:41 -0500 Subject: [PATCH 3/5] Create pull request template --- .github/pull_request_template.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..1cd3021 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ +## What + +_what the PR changes_ + +## Why + +_why these changes were made_ + +## Test Plan + +_how did you verify these changes did what you expected_ + +## Env Vars + +_did you add, remove, or rename any environment variables_ + +## Checklist + +- [ ] Tested all changes locally From d7101cf6c23179e013cbd5a3df7c37abbeba33a6 Mon Sep 17 00:00:00 2001 From: Noah Hanford Date: Tue, 13 Jan 2026 10:22:04 -0500 Subject: [PATCH 4/5] Add Dependabot configuration for Go modules --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6330673 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "gomod" # See documentation for possible values https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#package-ecosystem- + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From 08fd7721c2236ca15b0201b4b9efdfcf094c8635 Mon Sep 17 00:00:00 2001 From: Noah Hanford Date: Tue, 13 Jan 2026 10:27:59 -0500 Subject: [PATCH 5/5] oops forgot target-branch --- .github/dependabot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6330673..cc22996 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,5 +2,6 @@ version: 2 updates: - package-ecosystem: "gomod" # See documentation for possible values https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#package-ecosystem- directory: "/" # Location of package manifests + target-branch: "dev" schedule: interval: "weekly"