-
Notifications
You must be signed in to change notification settings - Fork 3
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
Save draft #1352
Save draft #1352
Conversation
ptbrowne
commented
Feb 20, 2024
•
edited
Loading
edited
- Reduce flickering the 1st time we save a draft (not changing the page)
- Correctly saving published state the 1st time when we first create the config : I had not seen this because I had first put published state's default as "DRAFT" in Prisma schema locally, then had changed it to default=PUBLISHED without running the migration. Then on test, the default was PUBLISHED and I could see that at creation time, published draft was not taken into account. After running prisma migrate locally, I could reproduce the bug and fix it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
published state was not saved correctly before the 1st time we would save in draft. I had not seen this because I had first put @default=DRAFT in Prisma locally, then had changed it to @default=PUBLISHED without running the migration. Then on test, the default was PUBLISHED and I could see that saving in draft would not work for the 1st time
After saving in draft, save locally instead of switching page
5168d03
to
5247f00
Compare
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.
Code looks good! 👌
Not related to this PR, but while playing around with the feature on TEST I noticed that I can't edit the charts I created some time ago (see video). It looks like there's a need to apply migrations to chart config for every action we do (View, Edit, ...) 👀
bug.720p.mov
Thanks Bartosz, I created another issue for this. Since people do not have charts yet, I also think it is not too much of an issue 😅 . |
@ptbrowne yup, but if they start making them now and we introduce a new property in the config, it will become an issue in the future 👀 Thanks for creating an issue 🙇♂️ |