Some UI fixes (#2698)

- fix first log line being dropped if channel was opened
- link org and repo on repo logs view
- fix decline pipeline status does not update
This commit is contained in:
Anbraten
2023-11-04 06:51:26 +01:00
committed by GitHub
parent fe489287fc
commit b949c190de
5 changed files with 28 additions and 19 deletions

View File

@@ -79,9 +79,15 @@ func (l *log) Write(ctx context.Context, stepID int64, logEntry *model.LogEntry)
l.Lock()
s, ok := l.streams[stepID]
l.Unlock()
// auto open the stream if it does not exist
if !ok {
return l.Open(ctx, stepID)
err := l.Open(ctx, stepID)
if err != nil {
return err
}
}
s.Lock()
s.list = append(s.list, logEntry)
for sub := range s.subs {