From 60d609a115f1e68effcbd752928e4a45061bdcb0 Mon Sep 17 00:00:00 2001 From: David Rochow Date: Fri, 28 Jun 2024 16:28:35 +0200 Subject: [PATCH] fix: local containerized environment (#42) * fix(db setup): removed duplicate index creation for foreign keys * fix(compose): fixed docker compose for local environment setup * fix(lisence_workflow): fixed lisence check github action * Automatic application of license header --------- Co-authored-by: License Bot --- .github/workflows/license.yaml | 14 +-- .mockery.yaml | 3 + .test.env | 7 +- Makefile | 2 +- docker-compose.yaml | 4 + internal/api/graphql/gqlgen.yml | 3 + internal/api/graphql/graph/generated.go | 3 + .../queryCollection/activity/create.graphql | 3 + .../queryCollection/activity/delete.graphql | 3 + .../activity/directRelations.graphql | 3 + .../queryCollection/activity/full.graphql | 3 + .../queryCollection/activity/update.graphql | 3 + .../activity/withPageInfo.graphql | 3 + .../queryCollection/component/create.graphql | 3 + .../queryCollection/component/delete.graphql | 3 + .../component/directRelations.graphql | 3 + .../queryCollection/component/minimal.graphql | 2 + .../queryCollection/component/update.graphql | 3 + .../componentInstance/create.graphql | 3 + .../componentInstance/delete.graphql | 3 + .../componentInstance/directRelations.graphql | 3 + .../componentInstance/minimal.graphql | 2 + .../componentInstance/update.graphql | 3 + .../componentVersion/create.graphql | 3 + .../componentVersion/delete.graphql | 3 + .../componentVersion/directRelations.graphql | 3 + .../componentVersion/minimal.graphql | 2 + .../componentVersion/update.graphql | 3 + .../queryCollection/evidence/create.graphql | 3 + .../queryCollection/evidence/delete.graphql | 3 + .../evidence/directRelations.graphql | 3 + .../queryCollection/evidence/minimal.graphql | 2 + .../queryCollection/evidence/update.graphql | 3 + .../issue/directRelations.graphql | 3 + .../graph/queryCollection/issue/full.graphql | 3 + .../queryCollection/issue/minimal.graphql | 3 + .../issue/withMetadata.graphql | 3 + .../issue/withPageInfo.graphql | 3 + .../queryCollection/issueMatch/create.graphql | 3 + .../queryCollection/issueMatch/delete.graphql | 3 + .../issueMatch/directRelations.graphql | 3 + .../issueMatch/minimal.graphql | 3 + .../queryCollection/issueMatch/update.graphql | 3 + .../issueMatchChange/directRelations.graphql | 3 + .../issueMatchChange/minimal.graphql | 2 + .../issueRepository/create.graphql | 3 + .../issueRepository/delete.graphql | 3 + .../issueRepository/directRelations.graphql | 3 + .../issueRepository/minimal.graphql | 2 + .../issueRepository/update.graphql | 3 + .../issueVariant/create.graphql | 3 + .../issueVariant/delete.graphql | 3 + .../issueVariant/directRelations.graphql | 3 + .../issueVariant/minimal.graphql | 2 + .../issueVariant/update.graphql | 3 + .../queryCollection/service/create.graphql | 3 + .../queryCollection/service/delete.graphql | 3 + .../service/directRelations.graphql | 3 + .../queryCollection/service/minimal.graphql | 3 + .../queryCollection/service/update.graphql | 3 + .../supportGroup/create.graphql | 3 + .../supportGroup/delete.graphql | 3 + .../supportGroup/directRelations.graphql | 3 + .../supportGroup/minimal.graphql | 3 + .../supportGroup/update.graphql | 3 + .../graph/queryCollection/user/create.graphql | 3 + .../graph/queryCollection/user/delete.graphql | 3 + .../user/directRelations.graphql | 3 + .../queryCollection/user/minimal.graphql | 2 + .../graph/queryCollection/user/update.graphql | 3 + internal/database/mariadb/init/schema.sql | 94 +------------------ tools.go | 3 + 72 files changed, 213 insertions(+), 101 deletions(-) diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml index 9b8baf92..ea46ae08 100644 --- a/.github/workflows/license.yaml +++ b/.github/workflows/license.yaml @@ -15,18 +15,20 @@ jobs: uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} - name: Check License Header uses: apache/skywalking-eyes/header@v0.6.0 with: - config: .github/licenserc.yaml - mode: fix + config: .github/licenserc.yaml + mode: fix - name: Apply Changes uses: EndBug/add-and-commit@v9 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - author_name: License Bot - author_email: license_bot@github.com - message: 'Automatic application of license header' + author_name: License Bot + author_email: license_bot@github.com + message: 'Automatic application of license header' \ No newline at end of file diff --git a/.mockery.yaml b/.mockery.yaml index aa639bdc..680540d3 100644 --- a/.mockery.yaml +++ b/.mockery.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + with-expecter: True # Create expecter methods: https://vektra.github.io/mockery/latest/features/#expecter-structs dir: ./internal/mocks filename: "mock_{{.InterfaceName}}.go" diff --git a/.test.env b/.test.env index a3dd0148..457a7c6e 100644 --- a/.test.env +++ b/.test.env @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + DB_USER=my_username DB_PASSWORD=my_password DB_ROOT_PASSWORD=my_password @@ -14,4 +17,6 @@ DOCKER_CREDENTIAL_STORE=docker-credential-desktop LOG_PRETTY_PRINT=true -LOCAL_TEST_DB=true \ No newline at end of file +LOCAL_TEST_DB=true + +SEED_MODE=false \ No newline at end of file diff --git a/Makefile b/Makefile index b4ea16bb..bff43c2c 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ start: stop # Start all container. This expects the heureka bin to be amd64 because the image in the docker-compose is amd64 start-all-%: stop - docker-compose --profile db --profile heureka up + docker-compose --profile db --profile heureka up --build --force-recreate stop: @rm -rf ./.db/data diff --git a/docker-compose.yaml b/docker-compose.yaml index f741e18b..2d5a03bb 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + # This docker-compose file is used to run the application localy in containarized environment. # ensure to set .env file accordingly version: '3.8' @@ -42,6 +45,7 @@ services: DB_ROOT_PASSWORD: ${DB_PASSWORD} DB_NAME: ${DB_NAME} DB_SCHEMA: /app_sqlschema/schema.sql + SEED_MODE: ${SEED_MODE} volumes: - ./internal/database/mariadb/init/schema.sql:/app_sqlschema/schema.sql depends_on: diff --git a/internal/api/graphql/gqlgen.yml b/internal/api/graphql/gqlgen.yml index 339d9b70..79b9674f 100644 --- a/internal/api/graphql/gqlgen.yml +++ b/internal/api/graphql/gqlgen.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + # Where are all the schema files located? globs are supported eg src/**/*.graphqls schema: - graph/schema/*.graphqls diff --git a/internal/api/graphql/graph/generated.go b/internal/api/graphql/graph/generated.go index 99869551..9ea06244 100644 --- a/internal/api/graphql/graph/generated.go +++ b/internal/api/graphql/graph/generated.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. package graph diff --git a/internal/api/graphql/graph/queryCollection/activity/create.graphql b/internal/api/graphql/graph/queryCollection/activity/create.graphql index 273df155..e4c5a89a 100644 --- a/internal/api/graphql/graph/queryCollection/activity/create.graphql +++ b/internal/api/graphql/graph/queryCollection/activity/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: ActivityInput!) { createActivity ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/activity/delete.graphql b/internal/api/graphql/graph/queryCollection/activity/delete.graphql index 999a58d1..ec8563b4 100644 --- a/internal/api/graphql/graph/queryCollection/activity/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/activity/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteActivity ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/activity/directRelations.graphql b/internal/api/graphql/graph/queryCollection/activity/directRelations.graphql index 4b6d7ee8..30bc155f 100644 --- a/internal/api/graphql/graph/queryCollection/activity/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/activity/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ActivityFilter, $first: Int, $after: String) { Activities ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/activity/full.graphql b/internal/api/graphql/graph/queryCollection/activity/full.graphql index d4d57d32..06caa0d2 100644 --- a/internal/api/graphql/graph/queryCollection/activity/full.graphql +++ b/internal/api/graphql/graph/queryCollection/activity/full.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ActivityFilter, $first: Int, $after: String) { Activities ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/activity/update.graphql b/internal/api/graphql/graph/queryCollection/activity/update.graphql index 4815e467..532fd3bd 100644 --- a/internal/api/graphql/graph/queryCollection/activity/update.graphql +++ b/internal/api/graphql/graph/queryCollection/activity/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: ActivityInput!) { updateActivity ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/activity/withPageInfo.graphql b/internal/api/graphql/graph/queryCollection/activity/withPageInfo.graphql index b0ecdc79..bef1e364 100644 --- a/internal/api/graphql/graph/queryCollection/activity/withPageInfo.graphql +++ b/internal/api/graphql/graph/queryCollection/activity/withPageInfo.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ActivityFilter, $first: Int, $after: String) { Activities ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/component/create.graphql b/internal/api/graphql/graph/queryCollection/component/create.graphql index 0bc17e77..fb5e78c8 100644 --- a/internal/api/graphql/graph/queryCollection/component/create.graphql +++ b/internal/api/graphql/graph/queryCollection/component/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: ComponentInput!) { createComponent ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/component/delete.graphql b/internal/api/graphql/graph/queryCollection/component/delete.graphql index bab4b731..d3978b60 100644 --- a/internal/api/graphql/graph/queryCollection/component/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/component/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteComponent ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/component/directRelations.graphql b/internal/api/graphql/graph/queryCollection/component/directRelations.graphql index 2c17114f..752d6d08 100644 --- a/internal/api/graphql/graph/queryCollection/component/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/component/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ComponentFilter, $first: Int, $after: String) { Components ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/component/minimal.graphql b/internal/api/graphql/graph/queryCollection/component/minimal.graphql index fab4f035..f032a666 100644 --- a/internal/api/graphql/graph/queryCollection/component/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/component/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: ComponentFilter, $first: Int, $after: String) { Components ( diff --git a/internal/api/graphql/graph/queryCollection/component/update.graphql b/internal/api/graphql/graph/queryCollection/component/update.graphql index 88dfb206..5f4fe1a6 100644 --- a/internal/api/graphql/graph/queryCollection/component/update.graphql +++ b/internal/api/graphql/graph/queryCollection/component/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: ComponentInput!) { updateComponent ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/componentInstance/create.graphql b/internal/api/graphql/graph/queryCollection/componentInstance/create.graphql index c0c93362..6f03b7df 100644 --- a/internal/api/graphql/graph/queryCollection/componentInstance/create.graphql +++ b/internal/api/graphql/graph/queryCollection/componentInstance/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: ComponentInstanceInput!) { createComponentInstance ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/componentInstance/delete.graphql b/internal/api/graphql/graph/queryCollection/componentInstance/delete.graphql index e99b8575..fd239122 100644 --- a/internal/api/graphql/graph/queryCollection/componentInstance/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/componentInstance/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteComponentInstance ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/componentInstance/directRelations.graphql b/internal/api/graphql/graph/queryCollection/componentInstance/directRelations.graphql index 2fd76659..e7d97d74 100644 --- a/internal/api/graphql/graph/queryCollection/componentInstance/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/componentInstance/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ComponentInstanceFilter, $first: Int, $after: String) { ComponentInstances ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/componentInstance/minimal.graphql b/internal/api/graphql/graph/queryCollection/componentInstance/minimal.graphql index 05b0a691..df209983 100644 --- a/internal/api/graphql/graph/queryCollection/componentInstance/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/componentInstance/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: ComponentInstanceFilter, $first: Int, $after: String) { ComponentInstances ( diff --git a/internal/api/graphql/graph/queryCollection/componentInstance/update.graphql b/internal/api/graphql/graph/queryCollection/componentInstance/update.graphql index a3ee3299..9efd0bcc 100644 --- a/internal/api/graphql/graph/queryCollection/componentInstance/update.graphql +++ b/internal/api/graphql/graph/queryCollection/componentInstance/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: ComponentInstanceInput!) { updateComponentInstance ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/componentVersion/create.graphql b/internal/api/graphql/graph/queryCollection/componentVersion/create.graphql index 9850f50d..9dbb643b 100644 --- a/internal/api/graphql/graph/queryCollection/componentVersion/create.graphql +++ b/internal/api/graphql/graph/queryCollection/componentVersion/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: ComponentVersionInput!) { createComponentVersion ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/componentVersion/delete.graphql b/internal/api/graphql/graph/queryCollection/componentVersion/delete.graphql index 6827cb53..c6cc8efd 100644 --- a/internal/api/graphql/graph/queryCollection/componentVersion/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/componentVersion/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteComponentVersion ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/componentVersion/directRelations.graphql b/internal/api/graphql/graph/queryCollection/componentVersion/directRelations.graphql index a86a83ec..74c74eb5 100644 --- a/internal/api/graphql/graph/queryCollection/componentVersion/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/componentVersion/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ComponentVersionFilter, $first: Int, $after: String) { ComponentVersions ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/componentVersion/minimal.graphql b/internal/api/graphql/graph/queryCollection/componentVersion/minimal.graphql index dab45dff..3cd8a389 100644 --- a/internal/api/graphql/graph/queryCollection/componentVersion/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/componentVersion/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: ComponentVersionFilter, $first: Int, $after: String) { ComponentVersions ( diff --git a/internal/api/graphql/graph/queryCollection/componentVersion/update.graphql b/internal/api/graphql/graph/queryCollection/componentVersion/update.graphql index 04083526..00928ffe 100644 --- a/internal/api/graphql/graph/queryCollection/componentVersion/update.graphql +++ b/internal/api/graphql/graph/queryCollection/componentVersion/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: ComponentVersionInput!) { updateComponentVersion ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/evidence/create.graphql b/internal/api/graphql/graph/queryCollection/evidence/create.graphql index be7ae479..4d2578f0 100644 --- a/internal/api/graphql/graph/queryCollection/evidence/create.graphql +++ b/internal/api/graphql/graph/queryCollection/evidence/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: EvidenceInput!) { createEvidence ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/evidence/delete.graphql b/internal/api/graphql/graph/queryCollection/evidence/delete.graphql index 8586ad67..9378ec6b 100644 --- a/internal/api/graphql/graph/queryCollection/evidence/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/evidence/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteEvidence ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/evidence/directRelations.graphql b/internal/api/graphql/graph/queryCollection/evidence/directRelations.graphql index ae969c6c..07eab514 100644 --- a/internal/api/graphql/graph/queryCollection/evidence/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/evidence/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: EvidenceFilter, $first: Int, $after: String) { Evidences ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/evidence/minimal.graphql b/internal/api/graphql/graph/queryCollection/evidence/minimal.graphql index b62f09a6..072b9564 100644 --- a/internal/api/graphql/graph/queryCollection/evidence/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/evidence/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: EvidenceFilter, $first: Int, $after: String) { Evidences ( diff --git a/internal/api/graphql/graph/queryCollection/evidence/update.graphql b/internal/api/graphql/graph/queryCollection/evidence/update.graphql index 85b1b51b..2101b8a1 100644 --- a/internal/api/graphql/graph/queryCollection/evidence/update.graphql +++ b/internal/api/graphql/graph/queryCollection/evidence/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: EvidenceInput!) { updateEvidence ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/issue/directRelations.graphql b/internal/api/graphql/graph/queryCollection/issue/directRelations.graphql index 938a63e6..9207121c 100644 --- a/internal/api/graphql/graph/queryCollection/issue/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/issue/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueFilter, $first: Int, $after: String) { Issues ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issue/full.graphql b/internal/api/graphql/graph/queryCollection/issue/full.graphql index b13de819..a16a1ef9 100644 --- a/internal/api/graphql/graph/queryCollection/issue/full.graphql +++ b/internal/api/graphql/graph/queryCollection/issue/full.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueFilter, $first: Int, $after: String) { Issues ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issue/minimal.graphql b/internal/api/graphql/graph/queryCollection/issue/minimal.graphql index b4242ecc..8527b394 100644 --- a/internal/api/graphql/graph/queryCollection/issue/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/issue/minimal.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueFilter, $first: Int, $after: String) { Issues ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issue/withMetadata.graphql b/internal/api/graphql/graph/queryCollection/issue/withMetadata.graphql index 2ba46cab..de78498f 100644 --- a/internal/api/graphql/graph/queryCollection/issue/withMetadata.graphql +++ b/internal/api/graphql/graph/queryCollection/issue/withMetadata.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueFilter, $first: Int, $after: String) { Issues ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issue/withPageInfo.graphql b/internal/api/graphql/graph/queryCollection/issue/withPageInfo.graphql index 054a4f44..e53864ef 100644 --- a/internal/api/graphql/graph/queryCollection/issue/withPageInfo.graphql +++ b/internal/api/graphql/graph/queryCollection/issue/withPageInfo.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueFilter, $first: Int, $after: String) { Issues ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issueMatch/create.graphql b/internal/api/graphql/graph/queryCollection/issueMatch/create.graphql index d1fce1a8..c1c37494 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatch/create.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatch/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: IssueMatchInput!) { createIssueMatch ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/issueMatch/delete.graphql b/internal/api/graphql/graph/queryCollection/issueMatch/delete.graphql index 199c08be..dcc50f6f 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatch/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatch/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteIssueMatch ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/issueMatch/directRelations.graphql b/internal/api/graphql/graph/queryCollection/issueMatch/directRelations.graphql index ae2011ea..7fe6194e 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatch/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatch/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueMatchFilter, $first: Int, $after: String) { IssueMatches ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issueMatch/minimal.graphql b/internal/api/graphql/graph/queryCollection/issueMatch/minimal.graphql index 501c063f..8855c5d7 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatch/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatch/minimal.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueMatchFilter, $first: Int, $after: String) { IssueMatches ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issueMatch/update.graphql b/internal/api/graphql/graph/queryCollection/issueMatch/update.graphql index e593f2eb..bc4ef6b6 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatch/update.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatch/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: IssueMatchInput!) { updateIssueMatch ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/issueMatchChange/directRelations.graphql b/internal/api/graphql/graph/queryCollection/issueMatchChange/directRelations.graphql index e5c7d41e..3dc11769 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatchChange/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatchChange/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueMatchChangeFilter, $first: Int, $after: String) { IssueMatchChanges ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issueMatchChange/minimal.graphql b/internal/api/graphql/graph/queryCollection/issueMatchChange/minimal.graphql index 23deafe6..46fda0ab 100644 --- a/internal/api/graphql/graph/queryCollection/issueMatchChange/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/issueMatchChange/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: IssueMatchChangeFilter, $first: Int, $after: String) { IssueMatchChanges ( diff --git a/internal/api/graphql/graph/queryCollection/issueRepository/create.graphql b/internal/api/graphql/graph/queryCollection/issueRepository/create.graphql index 371250c7..c38452ba 100644 --- a/internal/api/graphql/graph/queryCollection/issueRepository/create.graphql +++ b/internal/api/graphql/graph/queryCollection/issueRepository/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: IssueRepositoryInput!) { createIssueRepository ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/issueRepository/delete.graphql b/internal/api/graphql/graph/queryCollection/issueRepository/delete.graphql index ff2175f6..c8470dea 100644 --- a/internal/api/graphql/graph/queryCollection/issueRepository/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/issueRepository/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteIssueRepository ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/issueRepository/directRelations.graphql b/internal/api/graphql/graph/queryCollection/issueRepository/directRelations.graphql index 3ec0ebf3..259d50d3 100644 --- a/internal/api/graphql/graph/queryCollection/issueRepository/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/issueRepository/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueRepositoryFilter, $first: Int, $after: String) { IssueRepositories ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issueRepository/minimal.graphql b/internal/api/graphql/graph/queryCollection/issueRepository/minimal.graphql index 2ea83458..e3b4d7d0 100644 --- a/internal/api/graphql/graph/queryCollection/issueRepository/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/issueRepository/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: IssueRepositoryFilter, $first: Int, $after: String) { IssueRepositories ( diff --git a/internal/api/graphql/graph/queryCollection/issueRepository/update.graphql b/internal/api/graphql/graph/queryCollection/issueRepository/update.graphql index 887e82f1..ade3bd66 100644 --- a/internal/api/graphql/graph/queryCollection/issueRepository/update.graphql +++ b/internal/api/graphql/graph/queryCollection/issueRepository/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: IssueRepositoryInput!) { updateIssueRepository ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/issueVariant/create.graphql b/internal/api/graphql/graph/queryCollection/issueVariant/create.graphql index f98366e6..e0cd55c0 100644 --- a/internal/api/graphql/graph/queryCollection/issueVariant/create.graphql +++ b/internal/api/graphql/graph/queryCollection/issueVariant/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: IssueVariantInput!) { createIssueVariant ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/issueVariant/delete.graphql b/internal/api/graphql/graph/queryCollection/issueVariant/delete.graphql index 17389884..8f1f4395 100644 --- a/internal/api/graphql/graph/queryCollection/issueVariant/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/issueVariant/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteIssueVariant ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/issueVariant/directRelations.graphql b/internal/api/graphql/graph/queryCollection/issueVariant/directRelations.graphql index 6adc7707..f2402acd 100644 --- a/internal/api/graphql/graph/queryCollection/issueVariant/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/issueVariant/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: IssueVariantFilter, $first: Int, $after: String) { IssueVariants ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/issueVariant/minimal.graphql b/internal/api/graphql/graph/queryCollection/issueVariant/minimal.graphql index 8461ed56..afd6e9fb 100644 --- a/internal/api/graphql/graph/queryCollection/issueVariant/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/issueVariant/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: IssueVariantFilter, $first: Int, $after: String) { IssueVariants ( diff --git a/internal/api/graphql/graph/queryCollection/issueVariant/update.graphql b/internal/api/graphql/graph/queryCollection/issueVariant/update.graphql index 978c8d79..4c33ce78 100644 --- a/internal/api/graphql/graph/queryCollection/issueVariant/update.graphql +++ b/internal/api/graphql/graph/queryCollection/issueVariant/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: IssueVariantInput!) { updateIssueVariant ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/service/create.graphql b/internal/api/graphql/graph/queryCollection/service/create.graphql index 4ec99a57..26c1de2c 100644 --- a/internal/api/graphql/graph/queryCollection/service/create.graphql +++ b/internal/api/graphql/graph/queryCollection/service/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: ServiceInput!) { createService ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/service/delete.graphql b/internal/api/graphql/graph/queryCollection/service/delete.graphql index c3e70410..0db6243a 100644 --- a/internal/api/graphql/graph/queryCollection/service/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/service/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteService ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/service/directRelations.graphql b/internal/api/graphql/graph/queryCollection/service/directRelations.graphql index 765e1d13..3fc36f07 100644 --- a/internal/api/graphql/graph/queryCollection/service/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/service/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ServiceFilter, $first: Int, $after: String) { Services ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/service/minimal.graphql b/internal/api/graphql/graph/queryCollection/service/minimal.graphql index ced7641a..206015f5 100644 --- a/internal/api/graphql/graph/queryCollection/service/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/service/minimal.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: ServiceFilter, $first: Int, $after: String) { Services ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/service/update.graphql b/internal/api/graphql/graph/queryCollection/service/update.graphql index 36c995ac..24b398f5 100644 --- a/internal/api/graphql/graph/queryCollection/service/update.graphql +++ b/internal/api/graphql/graph/queryCollection/service/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: ServiceInput!) { updateService ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/supportGroup/create.graphql b/internal/api/graphql/graph/queryCollection/supportGroup/create.graphql index 95e5900b..0e21fc52 100644 --- a/internal/api/graphql/graph/queryCollection/supportGroup/create.graphql +++ b/internal/api/graphql/graph/queryCollection/supportGroup/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: SupportGroupInput!) { createSupportGroup ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/supportGroup/delete.graphql b/internal/api/graphql/graph/queryCollection/supportGroup/delete.graphql index 46061f29..d5a92c58 100644 --- a/internal/api/graphql/graph/queryCollection/supportGroup/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/supportGroup/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteSupportGroup ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/supportGroup/directRelations.graphql b/internal/api/graphql/graph/queryCollection/supportGroup/directRelations.graphql index 012a8702..db35ed88 100644 --- a/internal/api/graphql/graph/queryCollection/supportGroup/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/supportGroup/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: SupportGroupFilter, $first: Int, $after: String) { SupportGroups ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/supportGroup/minimal.graphql b/internal/api/graphql/graph/queryCollection/supportGroup/minimal.graphql index 780d393d..69007eb9 100644 --- a/internal/api/graphql/graph/queryCollection/supportGroup/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/supportGroup/minimal.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: SupportGroupFilter, $first: Int, $after: String) { SupportGroups ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/supportGroup/update.graphql b/internal/api/graphql/graph/queryCollection/supportGroup/update.graphql index f050c35b..c485518d 100644 --- a/internal/api/graphql/graph/queryCollection/supportGroup/update.graphql +++ b/internal/api/graphql/graph/queryCollection/supportGroup/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: SupportGroupInput!) { updateSupportGroup ( id: $id, diff --git a/internal/api/graphql/graph/queryCollection/user/create.graphql b/internal/api/graphql/graph/queryCollection/user/create.graphql index bcf93296..34a95408 100644 --- a/internal/api/graphql/graph/queryCollection/user/create.graphql +++ b/internal/api/graphql/graph/queryCollection/user/create.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($input: UserInput!) { createUser ( input: $input diff --git a/internal/api/graphql/graph/queryCollection/user/delete.graphql b/internal/api/graphql/graph/queryCollection/user/delete.graphql index f5694cd4..d39dabde 100644 --- a/internal/api/graphql/graph/queryCollection/user/delete.graphql +++ b/internal/api/graphql/graph/queryCollection/user/delete.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!) { deleteUser ( id: $id diff --git a/internal/api/graphql/graph/queryCollection/user/directRelations.graphql b/internal/api/graphql/graph/queryCollection/user/directRelations.graphql index 7a0cc07e..6a5ce142 100644 --- a/internal/api/graphql/graph/queryCollection/user/directRelations.graphql +++ b/internal/api/graphql/graph/queryCollection/user/directRelations.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + query ($filter: UserFilter, $first: Int, $after: String) { Users ( filter: $filter, diff --git a/internal/api/graphql/graph/queryCollection/user/minimal.graphql b/internal/api/graphql/graph/queryCollection/user/minimal.graphql index 453df9c4..69ccb5a4 100644 --- a/internal/api/graphql/graph/queryCollection/user/minimal.graphql +++ b/internal/api/graphql/graph/queryCollection/user/minimal.graphql @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 query ($filter: UserFilter, $first: Int, $after: String) { Users ( diff --git a/internal/api/graphql/graph/queryCollection/user/update.graphql b/internal/api/graphql/graph/queryCollection/user/update.graphql index 90006ac7..e9d0a1ba 100644 --- a/internal/api/graphql/graph/queryCollection/user/update.graphql +++ b/internal/api/graphql/graph/queryCollection/user/update.graphql @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +# SPDX-License-Identifier: Apache-2.0 + mutation ($id: ID!, $input: UserInput!) { updateUser ( id: $id, diff --git a/internal/database/mariadb/init/schema.sql b/internal/database/mariadb/init/schema.sql index fd792283..c2fcd71a 100644 --- a/internal/database/mariadb/init/schema.sql +++ b/internal/database/mariadb/init/schema.sql @@ -366,96 +366,4 @@ create table if not exists IssueRepositoryService constraint fk_service_issue_repository foreign key (issuerepositoryservice_service_id) references Service (service_id) on update cascade -); - - - -create index if not exists fk_issuevariant_issuerepository - on IssueVariant (issuevariant_repository_id); - -create index if not exists fk_issue_variant_issue - on IssueVariant (issuevariant_issue_id); - -create index if not exists fk_component_version_component - on ComponentVersion (componentversion_component_id); - -create index if not exists fk_component_instance_component_version - on ComponentInstance (componentinstance_component_version_id); - -create index if not exists fk_component_instance_service - on ComponentInstance (componentinstance_service_id); - -create index if not exists fk_evidence_activity - on Evidence (evidence_activity_id); - -create index if not exists fk_evidence_user - on Evidence (evidence_author_id); - -create index if not exists fk_service_user - on Owner (owner_service_id); - -create index if not exists fk_user_service - on Owner (owner_user_id); - -create index if not exists fk_issue_match_user - on IssueMatch (issuematch_user_id); - -create index if not exists fk_issue_match_component_instance - on IssueMatch (issue_component_instance_id); - -create index if not exists fk_issue_match_issue - on IssueMatch (issuematch_issue_id); - -create index if not exists fk_support_group_user - on SupportGroupUser (supportgroupuser_support_group_id); - -create index if not exists fk_user_support_group - on SupportGroupUser (supportgroupuser_user_id); - -create index if not exists fk_support_group_service - on SupportGroupService (supportgroupservice_support_group_id); - -create index if not exists fk_service_support_group - on SupportGroupService (supportgroupservice_service_id); - -create index if not exists fk_activity_issue - on ActivityHasIssue (activityhasissue_issue_id); - -create index if not exists fk_issue_activity - on ActivityHasIssue (activityhasissue_activity_id); - -create index if not exists fk_activity_service - on ActivityHasService (activityhasservice_service_id); - -create index if not exists fk_service_activity - on ActivityHasService (activityhasservice_activity_id); - -create index if not exists fk_componentversionissue_issue - on ComponentVersionIssue (componentversionissue_issue_id); - -create index if not exists fk_componentversionissue_component_version - on ComponentVersionIssue (componentversionissue_component_version_id); - -create index if not exists fk_issue_match_evidence - on IssueMatchEvidence (issuematchevidence_evidence_id); - -create index if not exists fk_evidence_issue_match - on IssueMatchEvidence (issuematchevidence_issue_match_id); - -create index if not exists issuematch_rating_idx - on IssueMatch (issuematch_rating); - -create index if not exists issuevariant_rating_idx - on IssueVariant (issuevariant_rating); - -create index if not exists fk_issue_repository_service - on IssueRepositoryService (issuerepositoryservice_issue_repository_id); - -create index if not exists fk_service_issue_repository - on IssueRepositoryService (issuerepositoryservice_service_id); - -create index if not exists fk_issuematchchange_activity - on IssueMatchChange (issuematchchange_activity_id); - -create index if not exists fk_issuematchchange_issue_match - on IssueMatchChange (issuematchchange_issue_match_id); \ No newline at end of file +); \ No newline at end of file diff --git a/tools.go b/tools.go index 4f04ccd8..cc9a6cbd 100644 --- a/tools.go +++ b/tools.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors +// SPDX-License-Identifier: Apache-2.0 + //go:build tools // +build tools