Feat v0.7.6 code hygiene (#60)
All checks were successful
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-runners (push) Has been skipped
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-go-pg (push) Successful in 2m48s
CI/CD / build-and-deploy (push) Successful in 25s
CI/CD / test-sqlite (push) Successful in 2m55s
All checks were successful
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-runners (push) Has been skipped
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-go-pg (push) Successful in 2m48s
CI/CD / build-and-deploy (push) Successful in 25s
CI/CD / test-sqlite (push) Successful in 2m55s
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #60.
This commit is contained in:
26
CHANGELOG.md
26
CHANGELOG.md
@@ -2,6 +2,32 @@
|
||||
|
||||
All notable changes to Armature are documented here.
|
||||
|
||||
## v0.7.6 — Code Hygiene + Test Coverage
|
||||
|
||||
**Critical Fixes**
|
||||
- Removed `channels` from `allowedViews` in `db_module.go` — `ext_view_channels` does not exist; `db.view("channels")` would crash
|
||||
- Fixed 5 dead API routes in `workflow.html` — rewired to public workflow API (`/api/v1/public/workflows/`)
|
||||
- Fixed `RenderWorkflow` handler to pass route `:id` param as entry token (was reading unset `channel_id`)
|
||||
|
||||
**Dead Code Removal**
|
||||
- Deleted `SeedTestChannel()` from `database/testhelper.go` (inserted into nonexistent channels table)
|
||||
- Removed `RunContext.ChannelID` from `sandbox/runner.go` (vestigial, unused)
|
||||
- Removed `webhook.Payload.ChannelID` field (channels no longer exist — breaking webhook JSON change)
|
||||
- Fixed stale comments in `storage.go`, `prometheus.go`, `workflow_module.go` referencing dead `/channels` paths
|
||||
|
||||
**Migration Hygiene**
|
||||
- Added SQLite placeholder `013_cluster_registry.sql` (PG-only migration, aligns numbering)
|
||||
- Renumbered SQLite `013_test_runner_type.sql` → `014` to match PG (compat rename in `migrate.go`)
|
||||
- Documented missing migration 008 in both 009 files (merged into 007 during pre-1.0 consolidation)
|
||||
|
||||
**Test Coverage**
|
||||
- 82 new workflow routing tests (`routing_test.go`): `ResolveNextStage`, `ResolveStageByName`, `ParseStageConfig`, `evaluateCondition` with all 10 operators
|
||||
- 10 new middleware tests (`permissions_test.go`): `RequirePermission`, `RequireAdmin`, permission caching, `RateLimiter` (allow/deny/fail-open)
|
||||
|
||||
**Bug Fixes**
|
||||
- Removed dead Admin "Storage" tab from System category (backend endpoint preserved for future Monitoring use)
|
||||
- Fixed backup download: `sw.auth.token()` → `sw.auth._getToken()` — both "Download Backup" and server backup download now work
|
||||
|
||||
## v0.7.5 — Headless E2E + CI Gate
|
||||
|
||||
**CI Gating Redesign**
|
||||
|
||||
Reference in New Issue
Block a user