Skip to content
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: able to configure public namespace for gpts #947

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/example_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
no: [1, 2, 3]
no: [1]
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
Expand Down
3 changes: 3 additions & 0 deletions api/base/v1alpha1/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const (
// AppPublicLabelKey will add to app which is public
AppPublicLabelKey = Group + "/app-is-public"

// AppRecommendedLabelKey will add to app which is recommended
AppRecommendedLabelKey = Group + "/app-is-recommended"

DefaultChatTimeoutSeconds = 60
)

Expand Down
2 changes: 2 additions & 0 deletions api/base/v1alpha1/application_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ type ApplicationSpec struct {
Icon string `json:"icon,omitempty"`
// IsPublic Set whether the current application provides services to the public
IsPublic bool `json:"isPublic,omitempty"`
// IsRecommended Set whether the current application is recognized as recommended to users
IsRecommended bool `json:"isRecommended,omitempty"`
// WebConfig is the configuration for web interface
WebConfig `json:",inline"`
// prologue, show in the chat top
Expand Down
148 changes: 146 additions & 2 deletions apiserver/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions apiserver/graph/generated/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions apiserver/graph/schema/application.gql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mutation createApplication($input:CreateApplicationMetadataInput!){
creationTimestamp
updateTimestamp
isPublic
isRecommended
status
category
}
Expand All @@ -34,6 +35,7 @@ mutation updateApplication($input: UpdateApplicationMetadataInput!){
creationTimestamp
updateTimestamp
isPublic
isRecommended
status
category
}
Expand Down Expand Up @@ -61,6 +63,7 @@ mutation updateApplicationConfig($input: UpdateApplicationConfigInput!){
creationTimestamp
updateTimestamp
isPublic
isRecommended
status
category
}
Expand Down Expand Up @@ -111,6 +114,7 @@ query getApplication($name: String!, $namespace: String!){
creationTimestamp
updateTimestamp
isPublic
isRecommended
status
category
}
Expand Down Expand Up @@ -166,6 +170,7 @@ query listApplications($input: ListCommonInput!) {
creationTimestamp
updateTimestamp
isPublic
isRecommended
status
category
}
Expand Down
Loading
Loading