-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add top level obot page to admin ui #1993
feat: add top level obot page to admin ui #1993
Conversation
- additionally ensure project IDs are converted properly when forwarding to the UI Signed-off-by: Ryan Hopper-Lowe <[email protected]>
@@ -49,7 +50,7 @@ func convertThread(thread v1.Thread) types.Thread { | |||
LastRunID: thread.Status.LastRunName, | |||
CurrentRunID: thread.Status.CurrentRunName, | |||
State: state, | |||
ProjectID: thread.Spec.ParentThreadName, | |||
ProjectID: strings.Replace(thread.Spec.ParentThreadName, system.ThreadPrefix, system.ProjectPrefix, 1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since thread.Spec.ParentThreadName
is always a project
I figured it made sense to convert the projectID value when sending to the UI
AssistantID: thread.Spec.AgentName, | ||
Editor: thread.IsEditor(), | ||
UserID: thread.Spec.UserID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed this to display a Created By
field in the admin UI
@@ -5,6 +5,8 @@ type Project struct { | |||
ProjectManifest | |||
AssistantID string `json:"assistantID,omitempty"` | |||
Editor bool `json:"editor"` | |||
ParentID string `json:"parentID,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if parentID
is too ambiguous
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go changes look good.
addresses #1958
Spawned from
,Agent
,Created By
Obot
filter for the/chat-threads
page