-
Notifications
You must be signed in to change notification settings - Fork 9
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: trigger form validation on preview photo upload #2069
Conversation
✅ Deploy Preview for regen-website ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
// Handle old metadata schema | ||
const previewPhoto = metadata?.['regen:previewPhoto']; | ||
const isPreviewPhotoString = typeof previewPhoto === 'string'; | ||
const previewPhotoUrl = isPreviewPhotoString | ||
? previewPhoto | ||
: previewPhoto?.['schema:url'] ?? ''; | ||
const previewPhotoCredit = isPreviewPhotoString | ||
? '' | ||
: previewPhoto?.['schema:creditText'] ?? ''; |
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.
I believe we should not really support that anymore. All projects on prod should have been migrated to the latest format. But that might not be the case for all projects on staging indeed. In this case, that should be updated manually from the db rather that supported from the UI.
This brings up the need again to reset staging data (both db and redwood testnet).
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.
Opened an issue for further discussion: regen-network/rnd-dev-team#1784
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.
I can remove that logic then but yes that's the case for most of our projects on staging.
1675b07
to
e86d97c
Compare
e86d97c
to
5b189a5
Compare
Description
Closes: regen-network/rnd-dev-team#1775
regen:previewPhoto
(string instead of object)Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
How to test
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...