feat(ui,judgement,system): unify nav, surface built-in guards, readiness and decision reasoning
This commit is contained in:
34 files changed
+548
-103
No files matched your search
@@ -436,6 +436,15 @@ func (m *Module) Work(ctx context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// SourceCount reports how many event sources exist for the organisation.
|
||||
func (m *Module) SourceCount(ctx context.Context) (int, error) {
|
||||
sources, err := m.store.Sources(ctx, m.orgID)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return len(sources), nil
|
||||
}
|
||||
|
||||
// startListeners starts one listener for each source whose connector listens
|
||||
// and has none yet. A listener lives until ctx ends.
|
||||
func (m *Module) startListeners(ctx context.Context, wg *sync.WaitGroup, listening map[uuid.UUID]bool) {
|
||||
|
||||
Reference in new issue
Block a user