feat(32-02): record events and content descriptors (tracer)
- pact.RecordSaved/RecordDeleted/RecordChange, fired as pointers after commit - pact.ContentDescriptor and request/result types; MenuItemType.Content - AdminFormSave.Changes carries the owner's changes to extension Save - cabana.EmitRecordSaved/EmitRecordDeleted; admin save snapshots columns and translated values and fires RecordSaved through lagoon.AfterCommit - signpost validates Content and gains ContentTypes, ContentTypeForModel, Describe
This commit is contained in:
@@ -78,6 +78,9 @@ func (r *Registry) add(owner string, t pact.MenuItemType) error {
|
||||
if !strings.HasPrefix(t.DefaultPattern, "/") {
|
||||
return fmt.Errorf("signpost: menu item type %q of plugin %s needs a DefaultPattern starting with \"/\", got %q", t.Key, owner, t.DefaultPattern)
|
||||
}
|
||||
if err := checkContent(owner, t); err != nil {
|
||||
return err
|
||||
}
|
||||
t.Placeholders = append([]string(nil), t.Placeholders...)
|
||||
r.owners[t.Key] = owner
|
||||
r.byKey[t.Key] = len(r.types)
|
||||
|
||||
Reference in New Issue
Block a user