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

Add databaseManagement feature #389

Merged
merged 1 commit into from
Aug 8, 2023
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
1 change: 1 addition & 0 deletions assets/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export enum AutoscalingTarget {
export type AvailableFeatures = {
__typename?: 'AvailableFeatures';
audits?: Maybe<Scalars['Boolean']['output']>;
databaseManagement?: Maybe<Scalars['Boolean']['output']>;
userManagement?: Maybe<Scalars['Boolean']['output']>;
vpn?: Maybe<Scalars['Boolean']['output']>;
};
Expand Down
6 changes: 4 additions & 2 deletions lib/console/graphql/configuration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ defmodule Console.GraphQl.Configuration do
end

object :available_features do
field :vpn, :boolean
field :vpn, :boolean
field :audits, :boolean
key_func :user_management, :boolean, :userManagement

key_func :user_management, :boolean, :userManagement
key_func :database_management, :boolean, :databaseManagement
end

object :console_configuration do
Expand Down
2 changes: 1 addition & 1 deletion lib/console/plural/models.ex
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ defmodule Console.Plural.Incident do
end

defmodule Console.Plural.Features do
defstruct [:vpn, :userManagement, :audit]
defstruct [:vpn, :userManagement, :audit, :databaseManagement]
end

defmodule Console.Plural.Plan do
Expand Down
2 changes: 1 addition & 1 deletion lib/console/plural/queries.ex
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ defmodule Console.Plural.Queries do
account {
grandfatheredUntil
delinquentAt
availableFeatures { vpn userManagement audit }
availableFeatures { vpn userManagement audit databaseManagement }
subscription {
id
plan { id name period }
Expand Down
1 change: 1 addition & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ type AvailableFeatures {
vpn: Boolean
audits: Boolean
userManagement: Boolean
databaseManagement: Boolean
}

type WireguardPeer {
Expand Down
Loading