discourse/spec/tasks
Jake Goldsborough ba26a692ed FEATURE: rake tasks to export/import theme bundles
Adds themes:export_theme_bundle and themes:import_theme_bundle for
packaging a theme with all its attached components and non-default
settings into a single zip.

Export accepts a theme name (case-insensitive) or ID, uses
ThemeStore::ZipExporter for the theme and each component, diffs
cached_settings against defaults, and writes a manifest.json with
component metadata (name, remote URL, settings overrides).

Import extracts the bundle, imports components first via
RemoteTheme.import_theme_from_directory, wires up parent-child
relationships, and applies settings overrides. Warns if a theme
with the same name already exists.
2026-04-30 21:03:48 +00:00
..
assets_precompile_spec.rb DEV: Cache AssetProcessor code in development (#38036) 2026-02-25 11:24:41 +00:00
compatibility_spec.rb DEV: Fix constant redefinition warnings when running specs (#29837) 2024-11-20 15:17:36 +11:00
destroy_spec.rb DEV: Add rake task to bulk delete posts (#31642) 2025-03-05 09:31:23 +08:00
hashtags_spec.rb DEV: Fix constant redefinition warnings when running specs (#29837) 2024-11-20 15:17:36 +11:00
incoming_emails_spec.rb DEV: Fix constant redefinition warnings when running specs (#29837) 2024-11-20 15:17:36 +11:00
migrate_advanced_search_banner_to_welcome_banner_spec.rb DEV: Silence expected error/debug output in core specs (#39247) 2026-04-14 11:04:10 +02:00
plugin_spec.rb DEV: Prune branches on plugin:update (#38128) 2026-02-28 00:14:50 +01:00
posts_spec.rb FIX: PG::UniqueViolation for PostTimings in posts:reorder_posts rake task when PostTiming records have no corresponding Post (#35212) 2025-10-08 18:48:21 +02:00
qunit_cli_spec.rb DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
redis_spec.rb DEV: Fix constant redefinition warnings when running specs (#29837) 2024-11-20 15:17:36 +11:00
release_spec.rb DEV: Use GHSA IDs for stage_security_fixes rake task (#38987) 2026-03-31 14:33:32 +01:00
themes_spec.rb FEATURE: rake tasks to export/import theme bundles 2026-04-30 21:03:48 +00:00
topic_localizations_spec.rb DEV: Add rake task to backfill localization excerpts which were empty (#36901) 2025-12-30 17:04:36 +08:00
topics_spec.rb DEV: Fix constant redefinition warnings when running specs (#29837) 2024-11-20 15:17:36 +11:00
uploads_spec.rb DEV: Move test cleanup to correct scope in tasks/uploads_spec.rb (#36386) 2025-12-02 17:45:28 +01:00
users_spec.rb DEV: Fix constant redefinition warnings when running specs (#29837) 2024-11-20 15:17:36 +11:00