-
Notifications
You must be signed in to change notification settings - Fork 0
add telemetry and grafana links on my work page #43
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
Open
skand088
wants to merge
5
commits into
main
Choose a base branch
from
add-telemetry-site
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
78659ee
add telemetry and grafana links on my work page
skand088 dffabbc
update env example
skand088 16dd609
merge main and resolve PR conflicts
Copilot e309c00
Revert "merge main and resolve PR conflicts"
promatty d674b2d
Merge branch 'main' into add-telemetry-site
promatty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -43,4 +43,7 @@ yarn-error.log* | |
| *.tsbuildinfo | ||
|
|
||
| # idea files | ||
| .idea | ||
| .idea | ||
|
|
||
| # clerk configuration (can include secrets) | ||
| /.clerk/ | ||
This file contains hidden or 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 hidden or 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,16 @@ | ||
| version: "3.8" | ||
| services: | ||
| db: | ||
| image: postgres:15 | ||
| restart: unless-stopped | ||
| environment: | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: password | ||
| POSTGRES_DB: solar-car-website-next | ||
| ports: | ||
| - "5432:5432" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| volumes: | ||
| - db-data:/var/lib/postgresql/data | ||
|
|
||
| volumes: | ||
| db-data: | ||
This file contains hidden or 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 hidden or 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
68 changes: 68 additions & 0 deletions
68
prisma/migrations/20260509120000_communications_team_roles/migration.sql
This file contains hidden or 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,68 @@ | ||
| -- AlterEnum: replace legacy communications roles with Communications Co-Manager / Communications Associate | ||
| BEGIN; | ||
|
|
||
| ALTER TABLE "User" ALTER COLUMN "teamRole" TYPE TEXT USING ("teamRole"::text); | ||
|
|
||
| UPDATE "User" | ||
| SET "teamRole" = 'Communications Associate' | ||
| WHERE "teamRole" IN ( | ||
| 'Event Associate', | ||
| 'Marketing Associate', | ||
| 'Videographer', | ||
| 'Marketing \& Events Associate' | ||
| ); | ||
|
promatty marked this conversation as resolved.
|
||
|
|
||
| DROP TYPE "AllTeamRoles"; | ||
|
|
||
| CREATE TYPE "AllTeamRoles" AS ENUM ( | ||
| 'Team Captain', | ||
| 'Engineering Team Manager', | ||
| 'Business Team Manager', | ||
| 'Software Team Manager', | ||
| 'Software Technical Manager', | ||
| 'Embedded Team Lead', | ||
| 'Telemetry Team Lead', | ||
| 'Viscomm Team Lead', | ||
| 'Embedded Team', | ||
| 'Telemetry Team', | ||
| 'Viscomm Team', | ||
| 'Accounting Co-Manager', | ||
| 'Assistant Accounting Manager', | ||
| 'Accounting Analyst', | ||
| 'Accounting Associate', | ||
| 'Communications Manager', | ||
| 'Communications Co-Manager', | ||
| 'Communications Associate', | ||
| 'Sponsorship Manager', | ||
| 'Sponsorship Assistant Manager', | ||
| 'Monetary Lead', | ||
| 'In-Kind Lead', | ||
| 'Sponsorship Associate', | ||
| 'Electrical Manager', | ||
| 'Electrical Co-Manager', | ||
| 'Electrical Technical Manager', | ||
| 'Arrays Lead', | ||
| 'Energy Storage Lead', | ||
| 'High Voltage Lead', | ||
| 'Low Voltage Lead', | ||
| 'Arrays Team', | ||
| 'Energy Storage Team', | ||
| 'High Voltage Team', | ||
| 'Low Voltage Team', | ||
| 'Electrical Team', | ||
| 'Mechanical Manager', | ||
| 'Mechanical Technical Manager', | ||
| 'Suspension \& Steering Lead', | ||
| 'Structures Lead', | ||
| 'Electrical Integration Lead', | ||
| 'Body \& Chassis Lead', | ||
| 'Suspension \& Steering Team', | ||
| 'Structures Team', | ||
| 'Electrical Integration Team', | ||
| 'Body \& Chassis Team', | ||
| 'Multi Team' | ||
| ); | ||
|
|
||
| ALTER TABLE "User" ALTER COLUMN "teamRole" TYPE "AllTeamRoles" USING ("teamRole"::"AllTeamRoles"); | ||
|
|
||
| COMMIT; | ||
5 changes: 5 additions & 0 deletions
5
prisma/migrations/20260517100000_consolidate_alumni_to_user/migration.sql
This file contains hidden or 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,5 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "User" ADD COLUMN "company" TEXT, | ||
| ADD COLUMN "companyTitle" TEXT, | ||
| ADD COLUMN "yearRetired" TEXT, | ||
| ALTER COLUMN "clerkUserId" DROP NOT NULL; |
25 changes: 25 additions & 0 deletions
25
prisma/migrations/20260517100001_migrate_alumni_data/migration.sql
This file contains hidden or 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,25 @@ | ||
| -- Copy Alumni data into User | ||
| INSERT INTO "User" ( | ||
| "firstName", | ||
| "lastName", | ||
| "profilePictureUrl", | ||
| "linkedIn", | ||
| "company", | ||
| "companyTitle", | ||
| "yearJoined" , | ||
| "yearRetired", | ||
| "clerkUserId" | ||
| ) SELECT | ||
| "firstName", | ||
| "lastName", | ||
| "profilePictureUrl", | ||
| "linkedIn", | ||
| "company", | ||
| "position", | ||
| "yearJoinedSolarCar", | ||
| "yearLeftSolarCar", | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| NULL | ||
| FROM "Alumni"; | ||
|
|
||
| -- DropTable | ||
| DROP TABLE "Alumni"; | ||
27 changes: 27 additions & 0 deletions
27
prisma/migrations/20260517100002_convert_year_fields_to_datetime/migration.sql
This file contains hidden or 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,27 @@ | ||
| -- Convert yearJoined and yearRetired from String to Date | ||
| -- Create new columns with Date type | ||
| ALTER TABLE "User" ADD COLUMN "yearJoined_new" DATE; | ||
| ALTER TABLE "User" ADD COLUMN "yearRetired_new" DATE; | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| -- Migrate data: convert YYYY strings to Jan 1st of that year | ||
| UPDATE "User" | ||
| SET "yearJoined_new" = CASE | ||
| WHEN "yearJoined" IS NOT NULL AND "yearJoined" ~ '^\d{4}$' | ||
| THEN TO_DATE("yearJoined" || '-01-01', 'YYYY-MM-DD') | ||
| ELSE NULL | ||
| END; | ||
|
|
||
| UPDATE "User" | ||
| SET "yearRetired_new" = CASE | ||
| WHEN "yearRetired" IS NOT NULL AND "yearRetired" ~ '^\d{4}$' | ||
| THEN TO_DATE("yearRetired" || '-01-01', 'YYYY-MM-DD') | ||
| ELSE NULL | ||
| END; | ||
|
|
||
| -- Drop old columns | ||
| ALTER TABLE "User" DROP COLUMN "yearJoined"; | ||
| ALTER TABLE "User" DROP COLUMN "yearRetired"; | ||
|
|
||
| -- Rename new columns to original names | ||
| ALTER TABLE "User" RENAME COLUMN "yearJoined_new" TO "yearJoined"; | ||
| ALTER TABLE "User" RENAME COLUMN "yearRetired_new" TO "yearRetired"; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.