-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1183 from eduhub-org/staging
Staging
- Loading branch information
Showing
142 changed files
with
1,913 additions
and
1,266 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
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,20 +1,61 @@ | ||
tasks: | ||
- name: Start Docker Compose | ||
init: docker compose -f docker-compose.yml up -d | ||
command: echo "Docker Compose is up and running!" | ||
- name: Development Environment | ||
init: | | ||
echo "STORAGE_BUCKET_URL=https://4001-${GITPOD_WORKSPACE_URL#https://}" > .env | ||
echo "HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey" >> .env | ||
docker compose -f docker-compose.yml up -d && | ||
echo "Waiting for Hasura to be ready..." && | ||
until curl -s -f -o /dev/null "https://8080-${GITPOD_WORKSPACE_URL#https://}/healthz"; do | ||
sleep 2 | ||
done && | ||
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash && | ||
# Install frontend dependencies | ||
if [ -d "frontend-nx" ]; then | ||
cd frontend-nx && | ||
yarn install --ignore-engines && | ||
cd .. | ||
else | ||
echo "frontend-nx directory not found!" | ||
fi | ||
command: | | ||
# Start Hasura console | ||
if [ -d "backend" ]; then | ||
cd backend && | ||
source ../.env && | ||
echo "Environment is ready! You can now use Hasura Console with:" && | ||
echo "hasura console --endpoint https://8080-${GITPOD_WORKSPACE_URL#https://} --address 0.0.0.0" && | ||
hasura console --endpoint https://8080-${GITPOD_WORKSPACE_URL#https://} --address 0.0.0.0 & | ||
cd .. | ||
fi | ||
# Start frontend development | ||
if [ -d "frontend-nx" ]; then | ||
cd frontend-nx && | ||
export NEXT_PUBLIC_STORAGE_BUCKET_URL=https://4001-${GITPOD_WORKSPACE_URL#https://}/emulated-bucket && | ||
export NEXT_PUBLIC_ENVIRONMENT=development && | ||
yarn dev | ||
else | ||
echo "frontend-nx directory not found!" | ||
fi | ||
ports: | ||
- port: 5000 | ||
onOpen: open-preview | ||
onOpen: open-browser | ||
visibility: public | ||
- port: 5001 | ||
onOpen: open-preview | ||
onOpen: open-browser | ||
visibility: public | ||
- port: 42000 | ||
onOpen: ignore | ||
- port: 42001-42024 | ||
onOpen: ignore | ||
- port: 4001 | ||
onOpen: ignore | ||
- port: 8080 | ||
onOpen: open-preview | ||
onOpen: ignore | ||
visibility: public | ||
- port: 28080 | ||
onOpen: open-preview | ||
onOpen: ignore | ||
- port: 9695 | ||
onOpen: open-browser | ||
visibility: public |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
version: 3 | ||
endpoint: http://localhost:8080/ | ||
admin_secret: myadminsecretkey | ||
api_paths: | ||
v1_query: v1/query | ||
|
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
12 changes: 12 additions & 0 deletions
12
backend/metadata/databases/default/tables/public_CourseRegistrationType.yaml
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 @@ | ||
table: | ||
name: CourseRegistrationType | ||
schema: public | ||
is_enum: true | ||
array_relationships: | ||
- name: Courses | ||
using: | ||
foreign_key_constraint_on: | ||
column: registrationType | ||
table: | ||
name: Course | ||
schema: public |
3 changes: 3 additions & 0 deletions
3
backend/metadata/databases/default/tables/public_CourseType.yaml
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,3 @@ | ||
table: | ||
name: CourseType | ||
schema: public |
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
4 changes: 4 additions & 0 deletions
4
backend/metadata/databases/default/tables/public_Program.yaml
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
12 changes: 12 additions & 0 deletions
12
backend/metadata/databases/default/tables/public_ProgramType.yaml
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 @@ | ||
table: | ||
name: ProgramType | ||
schema: public | ||
is_enum: true | ||
array_relationships: | ||
- name: Programs | ||
using: | ||
foreign_key_constraint_on: | ||
column: type | ||
table: | ||
name: Program | ||
schema: public |
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
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
7 changes: 7 additions & 0 deletions
7
.../migrations/default/1734473285529_alter_table_public_User_drop_column_employment/down.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,7 @@ | ||
alter table "public"."User" | ||
add constraint "User_employment_fkey" | ||
foreign key (employment) | ||
references "public"."Employment" | ||
(value) on update set null on delete set null; | ||
alter table "public"."User" alter column "employment" drop not null; | ||
alter table "public"."User" add column "employment" text; |
1 change: 1 addition & 0 deletions
1
...nd/migrations/default/1734473285529_alter_table_public_User_drop_column_employment/up.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 @@ | ||
alter table "public"."User" drop column "employment" cascade; |
7 changes: 7 additions & 0 deletions
7
.../migrations/default/1734473380382_alter_table_public_User_drop_column_university/down.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,7 @@ | ||
alter table "public"."User" | ||
add constraint "User_university_fkey" | ||
foreign key (university) | ||
references "public"."University" | ||
(value) on update set null on delete set null; | ||
alter table "public"."User" alter column "university" drop not null; | ||
alter table "public"."User" add column "university" text; |
1 change: 1 addition & 0 deletions
1
...nd/migrations/default/1734473380382_alter_table_public_User_drop_column_university/up.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 @@ | ||
alter table "public"."User" drop column "university" cascade; |
2 changes: 2 additions & 0 deletions
2
...ations/default/1734473399993_alter_table_public_User_drop_column_otherUniversity/down.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,2 @@ | ||
alter table "public"."User" alter column "otherUniversity" drop not null; | ||
alter table "public"."User" add column "otherUniversity" text; |
1 change: 1 addition & 0 deletions
1
...grations/default/1734473399993_alter_table_public_User_drop_column_otherUniversity/up.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 @@ | ||
alter table "public"."User" drop column "otherUniversity" cascade; |
3 changes: 3 additions & 0 deletions
3
backend/migrations/default/1734473462788_drop_table_public_University/down.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,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP table "public"."University"; |
1 change: 1 addition & 0 deletions
1
backend/migrations/default/1734473462788_drop_table_public_University/up.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 @@ | ||
DROP table "public"."University"; |
3 changes: 3 additions & 0 deletions
3
backend/migrations/default/1734473496255_drop_table_public_Employment/down.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,3 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP table "public"."Employment"; |
1 change: 1 addition & 0 deletions
1
backend/migrations/default/1734473496255_drop_table_public_Employment/up.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 @@ | ||
DROP table "public"."Employment"; |
1 change: 1 addition & 0 deletions
1
backend/migrations/default/1734906151768_create_table_public_CourseRegistrationType/down.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 @@ | ||
DROP TABLE "public"."CourseRegistrationType"; |
1 change: 1 addition & 0 deletions
1
backend/migrations/default/1734906151768_create_table_public_CourseRegistrationType/up.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 @@ | ||
CREATE TABLE "public"."CourseRegistrationType" ("value" text NOT NULL, "comment" text NOT NULL, PRIMARY KEY ("value") , UNIQUE ("value"));COMMENT ON TABLE "public"."CourseRegistrationType" IS E'Defines how users can register for a course'; |
1 change: 1 addition & 0 deletions
1
backend/migrations/default/1734906273400_insert_into_public_CourseRegistrationType/down.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 @@ | ||
DELETE FROM "public"."CourseRegistrationType" WHERE "value" = 'APPROVAL_WITH_INPUT'; |
Oops, something went wrong.