Skip to content
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

test #1142

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

test #1142

wants to merge 1 commit into from

Conversation

MH4GF
Copy link
Member

@MH4GF MH4GF commented Apr 4, 2025

No description provided.

Copy link

vercel bot commented Apr 4, 2025

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

Name Status Preview Comments Updated (UTC)
liam-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2025 9:40am
liam-erd-sample ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2025 9:40am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
liam-docs ⬜️ Ignored (Inspect) Visit Preview Apr 9, 2025 9:40am

Copy link

changeset-bot bot commented Apr 4, 2025

⚠️ No Changeset found

Latest commit: 4557a30

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

supabase bot commented Apr 4, 2025

Updates to Preview Branch (test-mh4gf) ↗︎

Deployments Status Updated
Database Wed, 09 Apr 2025 09:36:52 UTC
Services Wed, 09 Apr 2025 09:36:52 UTC
APIs Wed, 09 Apr 2025 09:36:52 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Wed, 09 Apr 2025 09:36:56 UTC
Migrations Wed, 09 Apr 2025 09:36:56 UTC
Seeding Wed, 09 Apr 2025 09:36:56 UTC
Edge Functions Wed, 09 Apr 2025 09:36:56 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@liam-migration-local
Copy link

liam-migration-local bot commented Apr 4, 2025

Review of Pull Request Changes

This pull request primarily modifies the Prisma schema by removing the GitHubDocFilePath model. While no structural changes fundamentally alter the schema, several warnings have been identified that highlight areas needing attention:

  1. Migration Safety: The absence of documented rollback mechanisms raises concerns about the ability to revert changes if migration fails. It is essential to implement migration safety mechanisms to ensure a reliable rollback process.

  2. Data Integrity: The lack of migration scripts creates uncertainty regarding the integrity of existing data post-migration. It is vital to conduct data integrity checks following any database modifications to maintain consistency and avoid potential issues.

  3. Project Rules Consistency: The omission of a changeset violates project guidelines for versioning. To comply with project rules, it is necessary to add a changeset that documents the changes made in this pull request.

  4. Performance Impact: The removal of the GitHubDocFilePath model may have performance implications, especially if it was used in queries or relationships, potentially leading to broken references and degraded performance. Review and ensure that all references to GitHubDocFilePath are appropriately handled in the schema.

Recommendations

  • Implement migration safety mechanisms.
  • Conduct data integrity checks after modifications.
  • Add a changeset to comply with versioning guidelines.
  • Review the impact of removing the GitHubDocFilePath model on existing queries and relationships.

Addressing these issues will enhance both the reliability and compliance of the database migration process.

Migration URL: http://localhost:3000/app/migrations/1

Copy link
Contributor

liam-migration bot commented Apr 4, 2025

This PR removes the GitHubDocFilePath model and adds an OverallReviewKnowledgeSuggestionMapping migration while updating related code to reflect the new relationships. The removal raises concerns regarding rollback procedures, data integrity, and missing changesets, which must be addressed to prevent issues. On a positive note, the schema improvements, indexing, and consistent naming conventions enhance project scalability and maintainability.

Migration URL: https://liam-erd-web.vercel.app/app/projects/6/ref/test-mh4gf/migrations/165

ER Diagrams:

Copy link
Contributor

qodo-merge-pro-for-open-source bot commented Apr 4, 2025

CI Feedback 🧐

(Feedback updated until commit 4557a30)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: frontend-ci

Failed stage: Run pnpm --filter @liam-hq/db supabase:start [❌]

Failure summary:

The action failed because the Supabase Docker image could not be pulled due to rate limiting. The
error message "toomanyrequests: Rate exceeded" appears multiple times when trying to pull the Docker
image public.ecr.aws/supabase/postgres:15.8.1.060. The command pnpm --filter @liam-hq/db
supabase:start failed with exit code 1.

Relevant error logs:
1:  ##[group]Operating System
2:  Ubuntu
...

155:  ##[group]Run pnpm install --frozen-lockfile --prefer-offline
156:  �[36;1mpnpm install --frozen-lockfile --prefer-offline�[0m
157:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
158:  env:
159:  PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
160:  ##[endgroup]
161:  Scope: all 16 workspace projects
162:  Lockfile is up to date, resolution step is skipped
163:  Progress: resolved 1, reused 0, downloaded 0, added 0
164:  Packages: +1921
165:  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
166:  Progress: resolved 1921, reused 958, downloaded 0, added 0
167:  Progress: resolved 1921, reused 1900, downloaded 0, added 402
168:  Progress: resolved 1921, reused 1900, downloaded 0, added 1057
169:  Progress: resolved 1921, reused 1900, downloaded 0, added 1921, done
170:  WARN  Failed to create bin at /home/runner/work/liam/liam/frontend/apps/erd-sample/node_modules/.bin/liam. ENOENT: no such file or directory, open '/home/runner/work/liam/liam/frontend/packages/cli/dist-cli/bin/cli.js'
171:  devDependencies:
172:  + @changesets/cli 2.28.1
173:  + @changesets/get-github-info 0.6.0
174:  + @changesets/types 6.1.0
175:  + @turbo/gen 2.5.0
176:  + concurrently 9.1.2
177:  + syncpack 13.0.3
178:  + turbo 2.5.0
179:  + vercel 41.5.0
180:  frontend/apps/docs postinstall$ fumadocs-mdx
181:  frontend/apps/docs postinstall: [MDX] types generated
182:  frontend/apps/docs postinstall: Done
183:  frontend/apps/app postinstall$ cp ../../packages/db-structure/node_modules/@ruby/prism/src/prism.wasm prism.wasm
184:  frontend/apps/app postinstall: Done
185:  WARN  Failed to create bin at /home/runner/work/liam/liam/frontend/apps/erd-sample/node_modules/.bin/liam. ENOENT: no such file or directory, open '/home/runner/work/liam/liam/frontend/apps/erd-sample/node_modules/@liam-hq/cli/dist-cli/bin/cli.js'
186:  Done in 7.7s using pnpm v9.15.9
187:  ##[group]Run pnpm --filter @liam-hq/db supabase:start
188:  �[36;1mpnpm --filter @liam-hq/db supabase:start�[0m
189:  shell: /usr/bin/bash -e {0}
190:  env:
191:  PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
192:  ##[endgroup]
193:  > @liam-hq/db@0.0.0 supabase:start /home/runner/work/liam/liam/frontend/packages/db
194:  > pnpm supabase start
195:  WARN: environment variable is unset: GITHUB_CLIENT_ID
196:  WARN: environment variable is unset: GITHUB_CLIENT_SECRET
197:  Starting database...
198:  15.8.1.060: Pulling from supabase/postgres
199:  failed to display json stream: toomanyrequests: Rate exceeded
200:  Retrying after 4s: public.ecr.aws/supabase/postgres:15.8.1.060
201:  failed to pull docker image: Error response from daemon: toomanyrequests: Rate exceeded
202:  Retrying after 8s: public.ecr.aws/supabase/postgres:15.8.1.060
203:  15.8.1.060: Pulling from supabase/postgres
204:  Stopping containers...
205:  failed to display json stream: toomanyrequests: Rate exceeded
206:  Try rerunning the command with --debug to troubleshoot the error.
207:  /home/runner/work/liam/liam/frontend/packages/db:
208:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @liam-hq/db@0.0.0 supabase:start: `pnpm supabase start`
209:  Exit status 1
210:  ##[error]Process completed with exit code 1.
211:  Post job cleanup.

Copy link

liam-migration-preview bot commented Apr 7, 2025

Review Summary

This pull request primarily modifies the Prisma schema by removing the GitHubDocFilePath model and introducing a new mapping table for overall reviews and knowledge suggestions. While this change may simplify the schema, it raises several critical issues that need to be addressed:

  1. Migration Safety: The lack of documented rollback mechanisms poses a significant risk to the database state if migrations fail. It is essential to implement migration safety mechanisms to ensure reliable rollback processes during failures.

  2. Data Integrity: Without migration scripts, there is uncertainty regarding the integrity of existing data post-migration. Conducting thorough integrity checks after modifications is critical to maintain consistency and avoid potential issues.

  3. Project Rules Consistency: The omission of a changeset violates project guidelines for versioning. To comply with project rules, it is necessary to add a changeset that documents the changes made in this pull request.

  4. Performance Impact: The removal of the GitHubDocFilePath model may have performance implications, especially if it was used in queries or relationships. It is vital to review existing queries and relationships for potential issues.

Recommendations

  • Implement migration safety mechanisms.
  • Conduct data integrity checks following modifications.
  • Add a changeset to comply with versioning guidelines.
  • Review the impact of removing the GitHubDocFilePath model on existing queries and relationships.

Addressing these issues will enhance both the reliability and compliance of the database migration process.

Migration URL: https://liam-app-git-staging-route-06-core.vercel.app/app/migrations/165

ER Diagrams:

@liam-migration-local
Copy link

liam-migration-local bot commented Apr 8, 2025

This pull request removes the GitHubDocFilePath model from the Prisma schema while adding documentation about changeset requirements. The removal breaks references in the Project model where githubDocFilePaths field still references the deleted model, causing schema validation errors during testing.

Migration URL: http://localhost:3000/app/migrations/1

@liam-migration-local
Copy link

This migration removes the GitHubDocFilePath model from the Prisma schema, aiming to simplify the database design. The most critical issue is the lack of rollback mechanisms and changesets, which pose risks to data integrity and project consistency. The updated documentation reflects canonical design choices, which is a positive step for maintaining project standards.

Migration URL: http://localhost:3000/app/migrations/1

@liam-migration-local
Copy link

liam-migration-local bot commented Apr 9, 2025

This migration PR removes the GitHubDocFilePath model and introduces the OverallReviewKnowledgeSuggestionMapping table with related UI and backend changes. The most pressing issues include the lack of rollback mechanisms, migration scripts, and changeset documentation that risk data integrity and project consistency. On a positive note, the new explicit foreign keys, indexing, and improved permissions enhance scalability, maintainability, and query performance.

Migration URL: http://localhost:3000/app/projects/1/ref/test-mh4gf/migrations/1

…ping

- Introduced a new `OverallReviewKnowledgeSuggestionMapping` table to link `OverallReview` and `KnowledgeSuggestion`.
- Updated `MigrationDetailPage` to fetch and display knowledge suggestions related to overall reviews.
- Enhanced CSS styles for the new knowledge suggestions section.
- Added necessary database types and functions to support the new feature.
Copy link
Contributor

github-actions bot commented Apr 9, 2025

frontend/packages/prompt-test result:

View results: https://app.promptfoo.dev/eval/f:9556f89e-97fa-46f3-aa14-8f707b0d8724

❌️ Promptfoo test failed

✅️ Successes ❌️ Failures ⚠️ Errors
0 9 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant