Skip to content

Development#2

Merged
fiqrikm18 merged 110 commits into
masterfrom
development
Jul 14, 2026
Merged

Development#2
fiqrikm18 merged 110 commits into
masterfrom
development

Conversation

@fiqrikm18

Copy link
Copy Markdown
Contributor

No description provided.

fiqrikm18 added 30 commits July 9, 2026 09:24
fiqrikm18 added 28 commits July 13, 2026 14:14
…ning

- Casbin: custom persist.Adapter backed by casbin_rule table, sync from RBAC
- Cursor pagination: bidirectional cursor across all domains, replaces offset/limit
- sqlc: user/todo CRUD migrated to sqlc, dynamic filters stay raw SQL
- Error hardening: env-aware 500 with stacktrace, all errors persisted to error_logs
- LIKE escaping: escape % and _ in todo search input
- Fix: ErrorRecorder nil logger bug
…tion

- .golangci.yml: add go 1.24 version override, replace deprecated govet.check-shadowing with shadow linter
- .github/workflows/ci.yml: bump GO_VERSION from 1.22 to 1.25, add sqlc generate and swag init steps to lint/test/build jobs
- Generated missing sqlc and swagger output files
Pre-built golangci-lint v1.64.8 was compiled with Go 1.24 and
cannot type-check Go 1.25 code. Switch from the action's
pre-built binary to 'go install', which compiles golangci-lint
with the Go 1.25 toolchain already set up by actions/setup-go.
- Add internal/monitoring/ domain module with MetricsRecorder interface
  and Prometheus implementation (counters, histograms, gauges)
- Add HTTP metrics middleware (RED: Rate, Errors, Duration)
- Register /metrics endpoint and wire monitoring module via Fx
- Add deployments/prometheus/ with scrape configs and alerting rules
  (HighErrorRate, HighLatency, ServiceDown, HighMemory, DBPoolExhaustion)
- Add deployments/alertmanager/ with Email + Discord routing
- Add deployments/grafana/ with provisioned datasources and 4 dashboards
  (Go App RED, PostgreSQL, Redis, System Overview)
- Update docker-compose.yml: postgres_exporter, redis_exporter, alertmanager
- Add docker-compose.dev.yml for local API+Postgres development
- Consolidate config: remove .env.example, drop godotenv dependency,
  use configs/config.yaml as single source
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
5.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@fiqrikm18
fiqrikm18 merged commit 672f38b into master Jul 14, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant