-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix graph owners to be resource ownersand other graph cleanup Signed-off-by: Nicole Hubbard <code@nicole.dev> * Add apollo publish Signed-off-by: Nicole Hubbard <code@nicole.dev> --------- Signed-off-by: Nicole Hubbard <code@nicole.dev>
- Loading branch information
1 parent
7846281
commit f7f5f76
Showing
110 changed files
with
7,076 additions
and
16,854 deletions.
There are no files selected for viewing
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,22 @@ | ||
name: Publish GraphQL Schema | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
APOLLO_KEY: ${{ secrets.APOLLO_KEY }} | ||
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rover | ||
run: | | ||
curl -sSL https://rover.apollo.dev/nix/latest | sh | ||
echo "$HOME/.rover/bin" >> $GITHUB_PATH | ||
- name: Publish subgraph schema | ||
run: | | ||
rover subgraph publish --name load-balancer-api --schema schema.graphql infratographer@main |
52 changes: 52 additions & 0 deletions
52
db/migrations/20230629085916_drop_status_and_annotations.sql
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,52 @@ | ||
-- +goose Up | ||
|
||
-- reverse: create index "loadbalancerstatus_created_at" to table: "load_balancer_status" | ||
DROP INDEX "loadbalancerstatus_created_at"; | ||
-- reverse: create index "loadbalancerstatus_load_balancer_id" to table: "load_balancer_status" | ||
DROP INDEX "loadbalancerstatus_load_balancer_id"; | ||
-- reverse: create index "loadbalancerstatus_load_balancer_id_namespace_source" to table: "load_balancer_status" | ||
DROP INDEX "loadbalancerstatus_load_balancer_id_namespace_source"; | ||
-- reverse: create index "loadbalancerstatus_namespace_data" to table: "load_balancer_status" | ||
DROP INDEX "loadbalancerstatus_namespace_data"; | ||
-- reverse: create index "loadbalancerstatus_updated_at" to table: "load_balancer_status" | ||
DROP INDEX "loadbalancerstatus_updated_at"; | ||
-- reverse: create "load_balancer_status" table | ||
DROP TABLE "load_balancer_status"; | ||
-- reverse: create index "loadbalancerannotation_created_at" to table: "load_balancer_annotations" | ||
DROP INDEX "loadbalancerannotation_created_at"; | ||
-- reverse: create index "loadbalancerannotation_load_balancer_id" to table: "load_balancer_annotations" | ||
DROP INDEX "loadbalancerannotation_load_balancer_id"; | ||
-- reverse: create index "loadbalancerannotation_load_balancer_id_namespace" to table: "load_balancer_annotations" | ||
DROP INDEX "loadbalancerannotation_load_balancer_id_namespace"; | ||
-- reverse: create index "loadbalancerannotation_namespace_data" to table: "load_balancer_annotations" | ||
DROP INDEX "loadbalancerannotation_namespace_data"; | ||
-- reverse: create index "loadbalancerannotation_updated_at" to table: "load_balancer_annotations" | ||
DROP INDEX "loadbalancerannotation_updated_at"; | ||
-- reverse: create "load_balancer_annotations" table | ||
DROP TABLE "load_balancer_annotations"; | ||
|
||
-- +goose Down | ||
-- create "load_balancer_annotations" table | ||
CREATE TABLE "load_balancer_annotations" ("id" character varying NOT NULL, "namespace" character varying NOT NULL, "data" jsonb NOT NULL, "created_at" timestamptz NOT NULL, "updated_at" timestamptz NOT NULL, "load_balancer_id" character varying NOT NULL, PRIMARY KEY ("id"), CONSTRAINT "load_balancer_annotations_load_balancers_load_balancer" FOREIGN KEY ("load_balancer_id") REFERENCES "load_balancers" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION); | ||
-- create index "loadbalancerannotation_created_at" to table: "load_balancer_annotations" | ||
CREATE INDEX "loadbalancerannotation_created_at" ON "load_balancer_annotations" ("created_at"); | ||
-- create index "loadbalancerannotation_load_balancer_id" to table: "load_balancer_annotations" | ||
CREATE INDEX "loadbalancerannotation_load_balancer_id" ON "load_balancer_annotations" ("load_balancer_id"); | ||
-- create index "loadbalancerannotation_load_balancer_id_namespace" to table: "load_balancer_annotations" | ||
CREATE INDEX "loadbalancerannotation_load_balancer_id_namespace" ON "load_balancer_annotations" ("load_balancer_id", "namespace"); | ||
-- create index "loadbalancerannotation_namespace_data" to table: "load_balancer_annotations" | ||
CREATE INDEX "loadbalancerannotation_namespace_data" ON "load_balancer_annotations" USING gin ("namespace", "data"); | ||
-- create index "loadbalancerannotation_updated_at" to table: "load_balancer_annotations" | ||
CREATE INDEX "loadbalancerannotation_updated_at" ON "load_balancer_annotations" ("updated_at"); | ||
-- create "load_balancer_status" table | ||
CREATE TABLE "load_balancer_status" ("id" character varying NOT NULL, "namespace" character varying NOT NULL, "data" jsonb NOT NULL, "created_at" timestamptz NOT NULL, "updated_at" timestamptz NOT NULL, "source" character varying NOT NULL, "load_balancer_id" character varying NOT NULL, PRIMARY KEY ("id"), CONSTRAINT "load_balancer_status_load_balancers_load_balancer" FOREIGN KEY ("load_balancer_id") REFERENCES "load_balancers" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION); | ||
-- create index "loadbalancerstatus_created_at" to table: "load_balancer_status" | ||
CREATE INDEX "loadbalancerstatus_created_at" ON "load_balancer_status" ("created_at"); | ||
-- create index "loadbalancerstatus_load_balancer_id" to table: "load_balancer_status" | ||
CREATE INDEX "loadbalancerstatus_load_balancer_id" ON "load_balancer_status" ("load_balancer_id"); | ||
-- create index "loadbalancerstatus_load_balancer_id_namespace_source" to table: "load_balancer_status" | ||
CREATE INDEX "loadbalancerstatus_load_balancer_id_namespace_source" ON "load_balancer_status" ("load_balancer_id", "namespace", "source"); | ||
-- create index "loadbalancerstatus_namespace_data" to table: "load_balancer_status" | ||
CREATE INDEX "loadbalancerstatus_namespace_data" ON "load_balancer_status" USING gin ("namespace", "data"); | ||
-- create index "loadbalancerstatus_updated_at" to table: "load_balancer_status" | ||
CREATE INDEX "loadbalancerstatus_updated_at" ON "load_balancer_status" ("updated_at"); |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
h1:VqR1OSr9cOmG9cPyGgjEbDiQxwCpFRLGNlYKzYjpMZc= | ||
h1:c+ziReSuevRk7RBOpYWo0gncdcwco4V61ROlPMPe5EE= | ||
20230503185445_initial-migration.sql h1:4pqNp2MDBBRdGxU/H5mmZui9oi1SyjIiMVGatajrBeY= | ||
20230615194819_drop_tenant_add_owner.sql h1:KGCsItU0NYhxYEkhZOaMQjfIrBMnek5rxC6D/LhnyCk= | ||
20230629085916_drop_status_and_annotations.sql h1:kvDMoaMEjyoj/aRi6rw4XvCLxGH09vGGLbL0/p5tpPo= |
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.