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(backend-api): Add disabledAt/Reason to AppVersion #4980

Merged
merged 1 commit into from
Aug 15, 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
7 changes: 5 additions & 2 deletions lib/backend-api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ type Package implements Likeable & Node & PackageOwner {
"""The ID of the object"""
id: ID!
name: String!
namespace: String!
private: Boolean!
createdAt: DateTime!
updatedAt: DateTime!
Expand All @@ -357,6 +358,7 @@ type Package implements Likeable & Node & PackageOwner {
icon: String!
totalDownloads: Int!
iconUpdatedAt: DateTime
likersCount: Int!
watchersCount: Int!
webcs(offset: Int, before: String, after: String, first: Int, last: Int): WebcImageConnection!

Expand All @@ -367,12 +369,10 @@ type Package implements Likeable & Node & PackageOwner {
collectionSet: [Collection!]!
categories(offset: Int, before: String, after: String, first: Int, last: Int): CategoryConnection!
keywords(offset: Int, before: String, after: String, first: Int, last: Int): PackageKeywordConnection!
likersCount: Int!
viewerHasLiked: Boolean!
globalName: String!
globalId: ID!
alias: String
namespace: String!
displayName: String!

"""The name of the package without the owner"""
Expand Down Expand Up @@ -868,6 +868,8 @@ type DeployAppVersion implements Node {
signature: String
description: String
publishedBy: User!
disabledAt: DateTime
disabledReason: String
createdAt: DateTime!
updatedAt: DateTime!
configWebc: String @deprecated(reason: "webc support has been deprecated for apps")
Expand Down Expand Up @@ -2368,6 +2370,7 @@ type Query {
getSignedUrlForPackageUpload(name: String, version: String = "latest", filename: String, expiresAfterSeconds: Int = 60): SignedUrl
getPackageHash(name: String, hash: String!): PackageWebc
getPackageRelease(hash: String!): PackageWebc
getPackageInstanceByVersionOrHash(name: String!, version: String, hash: String): PackageInstance
categories(offset: Int, before: String, after: String, first: Int, last: Int): CategoryConnection!
blogposts(tags: [String!], before: String, after: String, first: Int, last: Int): BlogPostConnection!
getBlogpost(slug: String, featured: Boolean): BlogPost
Expand Down
2 changes: 2 additions & 0 deletions lib/backend-api/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ mod queries {
pub config: String,
pub json_config: String,
pub url: String,
pub disabled_at: Option<DateTime>,
pub disabled_reason: Option<String>,

pub app: Option<SparseDeployApp>,
}
Expand Down
Loading