fix: address performance and security findings
Lint / Lint (push) Successful in 26s
Tests / Go backend (push) Failing after 1m14s
Tests / Dashboard checks (push) Successful in 52s
Docker / Docker Build & Push (push) Successful in 3m41s

- Add PostgreSQL-backed backend and frontend tests to CI
- Harden Android API logging and disable app backups
- Update the performance report with resolved findings
This commit is contained in:
Gabriel20xx committed 2026-10-19 21:16:08 +00:00
1 parent a84a36349b
commit 937f51b4fb
35 files changed
+2566 -332

No files matched your search

+21
View File
@@ -25,3 +25,24 @@ func TestNormalizeEntityTimestampsKeepsUpdatedAfterCreated(t *testing.T) {
t.Fatalf("timestamps = (%d, %d), want (%d, %d)", created, updated, now-100, now-100)
}
}
func TestChangeEventTypeNamesEachChange(t *testing.T) {
cases := []struct {
name string
initialSync bool
deleted bool
want string
}{
{name: "first sync creates", initialSync: true, want: "created"},
{name: "later edit updates", initialSync: false, want: "updated"},
{name: "tombstone is deleted on first sync", initialSync: true, deleted: true, want: "deleted"},
{name: "tombstone is deleted later", initialSync: false, deleted: true, want: "deleted"},
}
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
if got := changeEventType(tc.initialSync, tc.deleted); got != tc.want {
t.Fatalf("changeEventType(%v, %v) = %q, want %q", tc.initialSync, tc.deleted, got, tc.want)
}
})
}
}