• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / stash / 20630896431

01 Jan 2026 02:03AM UTC coverage: 83.557% (-0.05%) from 83.608%
20630896431

push

github

umputun
feat(api): return 201 Created for new keys, 200 OK for updates

- store.Set now returns (created bool, err) to distinguish create vs update
- api handler returns 201 Created when key is new, 200 OK when existing
- audit trail distinguishes create vs update actions based on response
- token masking in audit logs now uses 4 chars (matching auth.go)
- added composite index idx_audit_ts_key for better query performance
- updated Go, Python SDKs to accept 201 status code

related #51

62 of 73 new or added lines in 7 files covered. (84.93%)

3 existing lines in 2 files now uncovered.

3740 of 4476 relevant lines covered (83.56%)

82.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.2
/app/server/api/handler.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc