Ionia-Devs / chameleon

https://chameleon-sandy.vercel.app
1 stars 1 forks source link

74 edit profile page #80

Closed BBruington closed 5 months ago

BBruington commented 5 months ago

WIP

railway-app[bot] commented 5 months ago

This PR was not deployed automatically as @BBruington does not have access to the Railway project.

In order to get automatic PR deploys, please add @BBruington to the project inside the project settings page.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chameleon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2024 10:01pm
github-actions[bot] commented 5 months ago

🌟 Important Action Required! 🌟

FINAL STEPS:

To finalize the changes to the schema and successfully merge them to PlanetScale, your action is needed. Please review the steps below:

Step Action
1 Review the proposed schema changes for accuracy.
2 Test the changes locally to ensure they work as expected.
3 Comment /ps-merge on this PR to trigger the merge process.
4 Await the automated merge process to apply your changes.

This will trigger the merge process and apply your changes to PlanetScale. 🚀

✨✨✨✨✨✨✨✨✨✨

  /ps-merge

✨✨✨✨✨✨✨✨✨✨

Balance8 commented 5 months ago

/ps-create

github-actions[bot] commented 5 months ago

👋 Balance8, creating DB branch 74-edit-profile-page for Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Database branch and deploy request created successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` CREATE TABLE `Todo` ( `id` varchar(191) NOT NULL, `text` varchar(191) NOT NULL, `isCompleted` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime(3) NOT NULL DEFAULT current_timestamp(3), `updated_at` datetime(3) NOT NULL DEFAULT current_timestamp(3), `userId` varchar(191) NOT NULL, + `testworkflow` varchar(191), PRIMARY KEY (`id`) ) ENGINE InnoDB, CHARSET utf8mb4, COLLATE utf8mb4_unicode_ci; +CREATE TABLE `CurrentShoots` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `CurrentShoots_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserSkill` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + `isHighlighted` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + UNIQUE KEY `UserSkill_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` CREATE TABLE `Todo` ( `id` varchar(191) NOT NULL, `text` varchar(191) NOT NULL, `isCompleted` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime(3) NOT NULL DEFAULT current_timestamp(3), `updated_at` datetime(3) NOT NULL DEFAULT current_timestamp(3), `userId` varchar(191) NOT NULL, + `testworkflow` varchar(191), PRIMARY KEY (`id`) ) ENGINE InnoDB, CHARSET utf8mb4, COLLATE utf8mb4_unicode_ci; +CREATE TABLE `CurrentShoots` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `CurrentShoots_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserSkill` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + `isHighlighted` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + UNIQUE KEY `UserSkill_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` +CREATE TABLE `CurrentShoots` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserSkill` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + `isHighlighted` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` +CREATE TABLE `CurrentShoot` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `SpecialtySkill` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserSkill` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `name` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` +CREATE TABLE `PhotoShootType` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` enum('PAID', 'COLLAB', 'CONVENTION') NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `PhotoShootType_name_key` (`name`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotographySkill` ( + `id` int NOT NULL, + `name` enum('NSFW', 'STUDIO', 'OFF_SITE', 'EDITORIAL', 'COSPLAY', 'FASHION', 'PORTRAIT', 'EVENTS') NOT NULL, + `skillType` enum('CURRENT_FOCUS', 'SPECIALTY') NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserProfile` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `UserProfile_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotoShootTypeToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotoShootTypeToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotoShootTypeToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotographySkillToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotographySkillToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotographySkillToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` +CREATE TABLE `PhotoShootType` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` enum('PAID', 'COLLAB', 'CONVENTION') NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `PhotoShootType_name_key` (`name`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotographySkill` ( + `id` int NOT NULL, + `name` enum('NSFW', 'STUDIO', 'OFF_SITE', 'EDITORIAL', 'COSPLAY', 'FASHION', 'PORTRAIT', 'EVENTS') NOT NULL, + `skillType` enum('CURRENT_FOCUS', 'SPECIALTY') NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserProfile` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `UserProfile_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotoShootTypeToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotoShootTypeToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotoShootTypeToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotographySkillToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotographySkillToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotographySkillToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` +CREATE TABLE `PhotoShootType` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` enum('PAID', 'COLLAB', 'CONVENTION') NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `PhotoShootType_name_key` (`name`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotographySkill` ( + `id` int NOT NULL, + `name` enum('NSFW', 'STUDIO', 'OFF_SITE', 'EDITORIAL', 'COSPLAY', 'FASHION', 'PORTRAIT', 'EVENTS') NOT NULL, + `skillType` enum('CURRENT_FOCUS', 'SPECIALTY') NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `Portfolio` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + `image` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserProfile` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `UserProfile_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotoShootTypeToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotoShootTypeToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotoShootTypeToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotographySkillToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotographySkillToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotographySkillToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
BBruington commented 5 months ago

Here's how it looks thus far:

image

Hovering the image shows the x button to remove it if you want.

I just want to know how we should store the images before i implement a way to add photos.

BBruington commented 5 months ago

Here's light mode (aka mistake mode) too: image

github-actions[bot] commented 5 months ago

The latest updates on your build

Name Status Updated (UTC)
70445c2 ❌ Failed Sun, 11 Feb 2024 22:02:54 GMT

Build failed:


 >  NX   No explicit --base argument provided, but found environment variable NX_BASE so using its value as the affected base: 2872dd8fdac8bd39689e5362b0e3eeab40f110bd

 >  NX   No explicit --head argument provided, but found environment variable NX_HEAD so using its value as the affected head: 70445c25f0a14e34dd30d996bdd78c849f52a349

 >  NX   Running target build for project chameleon and 3 tasks it depends on:

    - chameleon

> nx run db:generate

Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.4.1) to ./../../node_modules/.pnpm/@prisma+client@5.4.1_prisma@5.4.1/node_modules/@prisma/client in 226ms

Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
̀̀̀
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
̀̀̀
or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
̀̀̀
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
̀̀̀

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

> nx run chameleon:contentlayer

Contentlayer (Warning): Importing from ̀contentlayer/generated̀ might not work.
Config option ̀compilerOptions.baseUrl̀ not found in "tsconfig.json".

For more information see https://www.contentlayer.dev/docs/getting-started
To disable this warning you can set ̀disableImportAliasWarning: truè in your Contentlayer config.

Generated 15 documents in .contentlayer

 >  NX   Nx Cloud Heartbeat missing

   Expected to find process with PID 1950 but none was found.
   Output:
   Unable to find shutdown logs, likely the heartbeat process was sent a SIGKILL

(node:1916) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use ̀node --trace-deprecation ...̀ to show where the warning was created)

> nx run chameleon:wunderctl-generate

{"level":"info","time":1707688823465,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"Installing prisma..."}
{"level":"info","time":1707688824162,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"Prisma installed"}
{"level":"error","time":1707688854179,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1707688824176,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az693-612\",\"pid\":2111,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1707688824179,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2111,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1707688824180,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2111,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1707688854179,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"retrying database introspection 1/5"}
{"level":"error","time":1707688884195,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1707688854192,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az693-612\",\"pid\":2138,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1707688854195,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2138,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1707688854196,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2138,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1707688884195,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"retrying database introspection 2/5"}
{"level":"error","time":1707688914212,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1707688884209,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az693-612\",\"pid\":2235,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1707688884212,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2235,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1707688884213,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2235,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1707688914212,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"retrying database introspection 3/5"}
{"level":"error","time":1707688944230,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1707688914227,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az693-612\",\"pid\":2262,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1707688914230,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2262,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1707688914231,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2262,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1707688944230,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"retrying database introspection 4/5"}
{"level":"error","time":1707688974248,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1707688944244,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az693-612\",\"pid\":2284,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1707688944247,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2284,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1707688944248,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az693-612\",\"pid\":2284,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1707688974248,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"retrying database introspection 5/5"}
{"level":"fatal","time":1707688974249,"pid":2092,"hostname":"fv-az693-612","component":"@wundergraph/sdk","msg":"introspection of prisma database failed after 5 attempts, make sure it's accessible at: ../../../data-access/db/prisma/schema.prisma\n    Did you forget to add tables to the database? Make sure, you've run your initial migration.\n    The introspection fails if there are no tables.\n    Are you using a custom database schema? Make sure it's selected in the database URL.\n    Please restart \"wunderctl up\" once the DB is running.\n    "}
Error: configuration could not be generated. Process exit with code 1
configuration could not be generated. Process exit with code 1
Warning: run-commands command "wunderctl generate" exited with non-zero status code

 >  NX   Running target build for project chameleon and 3 tasks it depends on failed

   Tasks not run because their dependencies failed or --nx-bail=true:

   - chameleon:build:production

   Failed tasks:

   - chameleon:wunderctl-generate

   View structured, searchable error logs at https://cloud.nx.app/runs/4b1Kd0crK8

BUILD_FAILED
Balance8 commented 5 months ago

/ps-update

github-actions[bot] commented 5 months ago

👋 Balance8, updating information of Git branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Updated database branch (info) successfully :tada:

:computer: pscale CLI commands for local access ``` pscale shell "chameleon" "74-edit-profile-page" --org "chameleon-la" pscale connect "chameleon" "74-edit-profile-page" --org "chameleon-la" ```
📖 Calculated schema changes: ``` CREATE TABLE `User` ( `id` varchar(191) NOT NULL, - `email` varchar(191) NOT NULL, `name` varchar(191), - `createdAt` datetime(3) NOT NULL DEFAULT current_timestamp(3), - `updatedAt` datetime(3) NOT NULL, + `email` varchar(191) NOT NULL, `emailVerified` datetime(3), `image` varchar(191), - `stripe_current_period_end` datetime(3), - `stripe_customer_id` varchar(191), - `stripe_price_id` varchar(191), - `stripe_subscription_id` varchar(191), - `availability` json, `interests` varchar(191), - `portfolio` json, `specialization` varchar(191), + `portfolio` json, + `availability` json, + `createdAt` datetime(3) NOT NULL DEFAULT current_timestamp(3), + `updatedAt` datetime(3) NOT NULL, + `stripe_customer_id` varchar(191), + `stripe_subscription_id` varchar(191), + `stripe_price_id` varchar(191), + `stripe_current_period_end` datetime(3), PRIMARY KEY (`id`), UNIQUE KEY `User_email_key` (`email`), UNIQUE KEY `User_stripe_customer_id_key` (`stripe_customer_id`), UNIQUE KEY `User_stripe_subscription_id_key` (`stripe_subscription_id`), KEY `idx_user_id` (`id`) ) ENGINE InnoDB, CHARSET utf8mb4, COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotoShootType` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` enum('PAID', 'COLLAB', 'CONVENTION') NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `PhotoShootType_name_key` (`name`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotographySkill` ( + `id` int NOT NULL, + `name` enum('NSFW', 'STUDIO', 'OFF_SITE', 'EDITORIAL', 'COSPLAY', 'FASHION', 'PORTRAIT', 'EVENTS') NOT NULL, + `skillType` enum('CURRENT_FOCUS', 'SPECIALTY') NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `Portfolio` ( + `id` varchar(191) NOT NULL, + `image` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserProfile` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `UserProfile_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotoShootTypeToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotoShootTypeToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotoShootTypeToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotographySkillToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotographySkillToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotographySkillToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

Edits look good, let's try to get in some error handling and toast feedback on success/fail then you should be good to go

BBruington commented 5 months ago

/ps-merge

github-actions[bot] commented 5 months ago

👋 BBruington, merging schema changes associated with database branch 74-edit-profile-page now ...

You can watch the progress and authorize access here.

github-actions[bot] commented 5 months ago

Schema changes merged successfully :tada:

🚀 Schema changes applied ``` CREATE TABLE `User` ( `id` varchar(191) NOT NULL, - `email` varchar(191) NOT NULL, `name` varchar(191), - `createdAt` datetime(3) NOT NULL DEFAULT current_timestamp(3), - `updatedAt` datetime(3) NOT NULL, + `email` varchar(191) NOT NULL, `emailVerified` datetime(3), `image` varchar(191), - `stripe_current_period_end` datetime(3), - `stripe_customer_id` varchar(191), - `stripe_price_id` varchar(191), - `stripe_subscription_id` varchar(191), - `availability` json, `interests` varchar(191), - `portfolio` json, `specialization` varchar(191), + `portfolio` json, + `availability` json, + `createdAt` datetime(3) NOT NULL DEFAULT current_timestamp(3), + `updatedAt` datetime(3) NOT NULL, + `stripe_customer_id` varchar(191), + `stripe_subscription_id` varchar(191), + `stripe_price_id` varchar(191), + `stripe_current_period_end` datetime(3), PRIMARY KEY (`id`), UNIQUE KEY `User_email_key` (`email`), UNIQUE KEY `User_stripe_customer_id_key` (`stripe_customer_id`), UNIQUE KEY `User_stripe_subscription_id_key` (`stripe_subscription_id`), KEY `idx_user_id` (`id`) ) ENGINE InnoDB, CHARSET utf8mb4, COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotoShootType` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` enum('PAID', 'COLLAB', 'CONVENTION') NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `PhotoShootType_name_key` (`name`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `PhotographySkill` ( + `id` int NOT NULL, + `name` enum('NSFW', 'STUDIO', 'OFF_SITE', 'EDITORIAL', 'COSPLAY', 'FASHION', 'PORTRAIT', 'EVENTS') NOT NULL, + `skillType` enum('CURRENT_FOCUS', 'SPECIALTY') NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `Portfolio` ( + `id` varchar(191) NOT NULL, + `image` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `UserProfile` ( + `id` varchar(191) NOT NULL, + `userId` varchar(191) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `UserProfile_userId_key` (`userId`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotoShootTypeToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotoShootTypeToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotoShootTypeToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; +CREATE TABLE `_PhotographySkillToUserProfile` ( + `A` int NOT NULL, + `B` varchar(191) NOT NULL, + UNIQUE KEY `_PhotographySkillToUserProfile_AB_unique` (`A`, `B`), + KEY `_PhotographySkillToUserProfile_B_index` (`B`) +) ENGINE InnoDB, + CHARSET utf8mb4, + COLLATE utf8mb4_unicode_ci; ```
Balance8 commented 5 months ago

/ps-delete

github-actions[bot] commented 5 months ago

Script .pscale/env/ps-env-74-edit-profile-page.sh does not exists, could not identify associated branch.