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

DEV: Migrate link_sections and links to new objects setting type #45

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Apr 9, 2024

This commit migrates the link_sections and links setting to a sections objects typed settting. Since discourse/discourse@a440e15, we have started to support objects typed theme setting so we are switching this theme component to use it instead as it provides a much better UX for configuring the settings required for the theme component.

@tgxworld tgxworld force-pushed the migrate_settings branch 2 times, most recently from 62031a7 to 7ee9aa8 Compare April 9, 2024 04:48
Comment on lines 164 to 177
link_sections: "Design, Get inspired!|Code, Learn new things!",
links:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not deleting the settings so that we have a way to recover should this massive migration goes wrong.

@tgxworld tgxworld force-pushed the migrate_settings branch 3 times, most recently from 81dd656 to 1c0b717 Compare April 9, 2024 06:31
@tgxworld tgxworld force-pushed the migrate_settings branch 3 times, most recently from 4df2f7a to bfcfcc9 Compare April 24, 2024 02:25
@nattsw
Copy link
Contributor

nattsw commented Apr 24, 2024

Rerunning failed test..

@tgxworld
Copy link
Contributor Author

Rerunning failed test..

Oops there is a typo as a result of a rebase I did. Has been fixed now.

This commit migrates the `link_sections` and `links` setting to a `sections` objects typed settting. Since discourse/discourse@a440e15, we have started to support objects typed theme setting so we are switching this theme component to use it instead as it provides a much better UX for configuring the settings required for the theme component.
@tgxworld tgxworld merged commit 3e06c50 into main Apr 24, 2024
4 checks passed
@tgxworld tgxworld deleted the migrate_settings branch April 24, 2024 05:32
@tgxworld
Copy link
Contributor Author

Thank you for the review @nattsw 👍

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