-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: add manual_json validation and playwright-test #269
base: main
Are you sure you want to change the base?
Conversation
i forgot to claim the bounty for #265. and the fix for it temporarily solved the issue. i.e., whenever a new snippet was created it still showed the "Unsaved changes" text. This PR solves the issues with |
const newSnippet = snippetSchema.parse({ | ||
...snippet, | ||
manual_edits_json: JSON.stringify(manualEditsJsonTemplate, null, 2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep this object as null by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if there is an issue with the default value, that should be handled on the frontend the first time it's selected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh, sure..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you didn't test saving the manual edits file, you just set a default value on the server and showed it loads in both views.
you must hit run/save and ensure that edits to it are saved
@seveibar all the failing tests are passing in my local setup again. Not sure what's causing the checks fail here. 🤷♂️ |
@RohittCodes can you make sure youve got the latest deps by running "bun i" locally then rerunning tests. Is it a timeout issue on ci? |
yeah all the deps are up to date, and i don't think there is any timeout issue for |
Hmm maybe configure for longer timeout in the config/workflow? |
This reverts commit eb9cada.
@seveibar nah this too doesn't work. the bun tests have passed but there's some issue with the playwright test for preview-page. |
refactored: manual_edit_json template ingestion into db.
included playwright tests
fixes: #261
/claim #261
cc: @seveibar