-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Organizations support (#24)
* Basic add organization functionality
- Loading branch information
1 parent
2224e02
commit 90d6ce1
Showing
36 changed files
with
1,304 additions
and
37 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
api/lagoon/client/_lgraphql/deploytargets/addDeployTargetToOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mutation ( | ||
$deployTarget: Int!, | ||
$organization: Int!,){ | ||
addDeployTargetToOrganization(input: { | ||
deployTarget: $deployTarget, | ||
organization: $organization, | ||
}) { | ||
id | ||
name | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
api/lagoon/client/_lgraphql/deploytargets/deployTargetsByOrganizationId.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
query ( | ||
$id: Int!) { | ||
organizationById(id: $id) { | ||
deployTargets { | ||
id | ||
name | ||
created | ||
cloudRegion | ||
cloudProvider | ||
friendlyName | ||
sshHost | ||
sshPort | ||
routerPattern | ||
buildImage | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
api/lagoon/client/_lgraphql/deploytargets/deployTargetsByOrganizationName.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
query ( | ||
$name: String!) { | ||
organizationByName(name: $name) { | ||
deployTargets { | ||
id | ||
name | ||
created | ||
cloudRegion | ||
cloudProvider | ||
friendlyName | ||
sshHost | ||
sshPort | ||
routerPattern | ||
buildImage | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
api/lagoon/client/_lgraphql/deploytargets/removeDeployTargetFromOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mutation ( | ||
$deployTarget: Int!, | ||
$organization: Int!,){ | ||
removeDeployTargetFromOrganization(input: { | ||
deployTarget: $deployTarget, | ||
organization: $organization, | ||
}) { | ||
id | ||
name | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
api/lagoon/client/_lgraphql/organizations/addOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
mutation ( | ||
$name: String!, | ||
$friendlyName: String, | ||
$description: String, | ||
$quotaProject: Int, | ||
$quotaGroup: Int, | ||
$quotaNotification: Int, | ||
$quotaEnvironment: Int, | ||
$quotaRoute: Int,) { | ||
addOrganization(input: { | ||
name: $name, | ||
friendlyName: $friendlyName, | ||
description: $description, | ||
quotaProject: $quotaProject, | ||
quotaGroup: $quotaGroup, | ||
quotaNotification: $quotaNotification, | ||
quotaEnvironment: $quotaEnvironment, | ||
quotaRoute: $quotaRoute, | ||
}) { | ||
id | ||
name | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
api/lagoon/client/_lgraphql/organizations/allOrganizations.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query { | ||
allOrganizations { | ||
id | ||
name | ||
description | ||
friendlyName | ||
quotaProject | ||
quotaGroup | ||
quotaNotification | ||
quotaEnvironment | ||
quotaRoute | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
api/lagoon/client/_lgraphql/organizations/deleteOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mutation ( | ||
$id: Int! | ||
){ | ||
deleteOrganization( | ||
input: { | ||
id: $id | ||
} | ||
) | ||
} |
15 changes: 15 additions & 0 deletions
15
api/lagoon/client/_lgraphql/organizations/organizationById.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
query ( | ||
$id: Int!) { | ||
organizationById( | ||
id: $id) { | ||
id | ||
name | ||
description | ||
friendlyName | ||
quotaProject | ||
quotaGroup | ||
quotaNotification | ||
quotaEnvironment | ||
quotaRoute | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
api/lagoon/client/_lgraphql/organizations/organizationByName.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
query ( | ||
$name: String!) { | ||
organizationByName( | ||
name: $name) { | ||
id | ||
name | ||
description | ||
friendlyName | ||
quotaProject | ||
quotaGroup | ||
quotaNotification | ||
quotaEnvironment | ||
quotaRoute | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
api/lagoon/client/_lgraphql/organizations/updateOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mutation ( | ||
$id: Int! | ||
$patch: UpdateOrganizationPatchInput!){ | ||
updateOrganization( | ||
input: { | ||
id: $id | ||
patch: $patch | ||
} | ||
){ | ||
id | ||
name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ query ( | |
developmentEnvironmentsLimit | ||
gitUrl | ||
autoIdle | ||
organization | ||
openshift{ | ||
id | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
api/lagoon/client/_lgraphql/projects/projectsByOrganizationId.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query ( | ||
$id: Int!) { | ||
organizationById( | ||
id: $id) { | ||
projects { | ||
id | ||
name | ||
organization | ||
groupCount | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
api/lagoon/client/_lgraphql/projects/removeProjectFromOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mutation ( | ||
$project: Int!, | ||
$organization: Int!,){ | ||
removeProjectFromOrganization(input: { | ||
project: $project, | ||
organization: $organization, | ||
}) { | ||
id | ||
name | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
api/lagoon/client/_lgraphql/usergroups/addGroupToOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mutation ( | ||
$name: String!, | ||
$organization: Int!,){ | ||
addGroupToOrganization(input: { | ||
name: $name, | ||
organization: $organization, | ||
}) { | ||
id | ||
name | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
api/lagoon/client/_lgraphql/usergroups/addUserToOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mutation ( | ||
$user: UserInput!, | ||
$organization: Int!, | ||
$owner: Boolean) { | ||
addUserToOrganization(input: { | ||
user: $user | ||
organization: $organization | ||
owner: $owner | ||
}) { | ||
id | ||
name | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
api/lagoon/client/_lgraphql/usergroups/groupsByOrganizationId.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query ( | ||
$id: Int!) { | ||
organizationById( | ||
id: $id) { | ||
groups { | ||
id | ||
name | ||
type | ||
memberCount | ||
organization | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
api/lagoon/client/_lgraphql/usergroups/removeUserFromOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mutation ( | ||
$user: UserInput!, | ||
$organization: Int!, | ||
$owner: Boolean) { | ||
removeUserFromOrganization(input: { | ||
user: $user | ||
organization: $organization | ||
owner: $owner | ||
}) { | ||
id | ||
name | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
api/lagoon/client/_lgraphql/usergroups/usersByOrganization.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query ( | ||
$id: Int!) { | ||
usersByOrganization( | ||
organization: $id) { | ||
id | ||
firstName | ||
lastName | ||
owner | ||
comment | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
api/lagoon/client/_lgraphql/usergroups/usersByOrganizationName.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
query ( | ||
$name: String!) { | ||
organizationByName( | ||
name: $name) { | ||
owners { | ||
id | ||
firstName | ||
lastName | ||
owner | ||
comment | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.