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

FIX: Ensure that custom header links migration do not fail validation #55

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

tgxworld
Copy link
Contributor

This commit is a follow up to 7374793 where the migration will fail because the objects created by the migration will end up failing to save because the objects will fail the validation given the new schema. This commit updates the migration to ensure that we do not end up with invalid objects.

@@ -21,6 +21,7 @@ custom_header_links:
hide_on_scroll: "keep"
schema:
name: "link"
identifier: text
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sneaking this UX change in here.

@tgxworld tgxworld force-pushed the make_title_optional branch 2 times, most recently from f238271 to 4cbc44b Compare April 25, 2024 03:15
Copy link
Member

@OsamaSayegh OsamaSayegh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@tgxworld tgxworld force-pushed the make_title_optional branch 2 times, most recently from e0a4592 to 883f800 Compare April 26, 2024 03:54
view: "vdm"
target: "self"
hide_on_scroll: "keep"
default: []
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the default since we no longer need to provide examples of the format of the setting.

This commit is a follow up to 7374793
where the migration will fail because the objects created by the
migration will end up failing to save because the objects will fail the
validation given the new schema. This commit updates the migration to
ensure that we do not end up with invalid objects.
@tgxworld tgxworld force-pushed the make_title_optional branch from 883f800 to b9a7773 Compare April 26, 2024 03:56
@tgxworld tgxworld merged commit 167bc8c into main Apr 26, 2024
4 checks passed
@tgxworld tgxworld deleted the make_title_optional branch April 26, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants