Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Suggest replacing the domain-specific fields with a type Details interface {
Metadata() map[string]any
}
type Event struct {
TraceID string
Timestamp time.Time
EventType string
Action Action
Status Status
ActorType string
ActorID string
TargetType string
TargetID string
Details Details // nil when a domain has nothing extra to attach
}
Worth doing now, while there are no consumers of this package yet. It also happens to line up field-for-field with |
fd31bb1 to
bf36fa8
Compare
8a73a82 to
e952230
Compare
|
Done,
|
22e9644 to
901990f
Compare
9f63678 to
6acd809
Compare
6acd809 to
083ccb3
Compare
083ccb3 to
98339e8
Compare
Land Auditor, Event, and domain/action constants in shared/audit so downstream modules can depend on a tagged shared release. Co-authored-by: Cursor <cursoragent@cursor.com>
98339e8 to
4820b9a
Compare
Summary
Land
shared/auditon its own so it can be tagged as a realsharedrelease (e.g.shared/v0.4.0) beforepaymentandstorageimport it.Auditoris about to become part of the exported payment and storage service surfaces. Those modules cannotrequire github.com/OpenNSW/core/shared v0.3.0for a package that does not exist at that tag, and areplace => ../shareddirective is not transitive — it only works when the declaring module is built from this monorepo checkout.Type of Change
Changes Made
shared/auditwithAuditor,Event, Argus-alignedAction/Status, and a domain-ownedDetailsinterface (Metadata() map[string]any).shared/README.md.No consumer (
payment/storage) changes in this PR.Testing
GOWORK=off go test -C shared ./...passes.Checklist
Related Issues
Split out of #149 at reviewer request. After this merges, please tag
shared/v0.4.0so #149 can bumprequire github.com/OpenNSW/core/sharedinpaymentandstorageand drop the localreplacedirectives.Blocks: #149, OpenNSW/nsw-srilanka#285