Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix CodeSandbox examples#9286

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
kennedybaird wants to merge4 commits intokeystonejs:main
base:main
Choose a base branch
Loading
fromkennedybaird:examples-fixes

Conversation

kennedybaird
Copy link
Contributor

@kennedybairdkennedybaird commentedAug 13, 2024
edited
Loading

Usingexamples/usecase-todo to change the examples approach to solve for codesandbox issues.

  1. Moving to devcontainers as codesandbox is stopping supporting sandbox.config.json
  2. Hardcoding seed data in the example, whilst keeping theseed-data command
  3. Setting prisma to inherit versions
  4. Removingpostinstall to avoid possible conflicts with prisma minor patch changes to their generator

To solve for the examples snapshot tests:

  • leaving the schema's in the example's folder
  • adding a newtest:monorepo-snapshot-test command to replacepostinstall
  • added a newtest:examples-snapshot-tests to root package.json which targets the above command recursively in all examples folders
  • added a newexamples_snapshot_tests test to ci to run the above command once

This is going to significantly reduce the time for actions as each of the smoke tests currently runs the postinstall for all the examples each time (~5m).

This approach also allows us to handleframework-nextjs-two-servers as well.

@codesandbox-ciCodeSandbox CI
Copy link

codesandbox-cibot commentedAug 13, 2024
edited
Loading

This pull request is automatically built and testable inCodeSandbox.

To see build info of the built libraries, clickhere or the icon next to each commit SHA.

Latest deployment of this branch, based on commitb23b849:

SandboxSource
@keystone-6/sandboxConfiguration

@dcousens
Copy link
Member

dcousens commentedAug 13, 2024
edited
Loading

Seed data - I think it's best if we just stop ignoring the example.db files

Honestly, I think this is a good approach. We do this already, and it's solid.

The primary downside I can see is the lack of human readability for the binary file on GitHub. We otherwise have theexamples/script example to showcase data seeding.

@dcousens
Copy link
Member

dcousens commentedAug 13, 2024
edited
Loading

Maybe we can build thekeystone.db files deterministically from our rootscripts/ folder?

@kennedybaird
Copy link
ContributorAuthor

Seed data - I think it's best if we just stop ignoring the example.db files

Honestly, I think this is a good approach. We do this already, and it's solid.

The primary downside I can see is the lack of human readability for the binary file on GitHub. We otherwise have theexamples/script example to showcase data seeding.

The intention was to still have the neededseed-data files, but have the database seeded for the first run

@kennedybaird

This comment was marked as outdated.

@kennedybaird

This comment was marked as resolved.

@kennedybaird
Copy link
ContributorAuthor

@dcousens - I think I've found a reasonable solution, have updated the PR.

@dcousensdcousens marked this pull request as ready for reviewAugust 20, 2024 05:48
@dcousensdcousens changed the titleExamples - in-lining data, fixing codesandboxFix CodeSandbox examplesOct 15, 2024
@dcousensdcousens marked this pull request as draftOctober 17, 2024 05:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dcousensdcousensdcousens left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kennedybaird@dcousens

[8]ページ先頭

©2009-2025 Movatter.jp