discourse/app
Alan Guo Xiang Tan a6624af66e
DEV: Add `isValidUrl` helper function to theme migrations (#26817)
This commit adds a `isValidUrl` helper function to the context in
which theme migrations are ran in. This helper function is to make it
easier for theme developers to check if a string is a valid URL or path
when writing theme migrations. This can be helpful in cases when
migrating a string based setting to `type: objects` which contain `type:
string` properties with URL validations enabled.

This commit also introduces the `UrlHelper.is_valid_url?` method
which actually checks that the URL string is of the valid format instead of
only checking if the URL string is parseable which is what `UrlHelper.relaxed_parse` does
and is not sufficient for our needs.
2024-04-30 16:45:07 +08:00
..
assets FEATURE: additional links for moderator's sidebar (#26815) 2024-04-30 10:34:12 +10:00
controllers FEATURE: Allow watched words to be created as a group (#26632) 2024-04-29 15:50:55 +05:30
helpers FIX: Include HTML content for authenticated users with crawler UA (#26757) 2024-04-25 22:41:57 +01:00
jobs FIX: Better tracking of topic visibility changes (#26709) 2024-04-29 10:34:46 +10:00
mailers FIX: Correctly re-attach allowed images in activity summary e-mail (#26642) 2024-04-18 10:27:46 +08:00
models FEATURE: Allow watched words to be created as a group (#26632) 2024-04-29 15:50:55 +05:30
serializers FEATURE: Allow watched words to be created as a group (#26632) 2024-04-29 15:50:55 +05:30
services DEV: Add `isValidUrl` helper function to theme migrations (#26817) 2024-04-30 16:45:07 +08:00
views FEATURE: Add experimental tracking of 'real browser' pageviews (#26647) 2024-04-25 11:00:01 +01:00