- 🐛 Fixed Tiers importer not correctly mapping price data
View the changelog for full details: v5.21.0...v5.22.0
🪄 Love open source? We're hiring JavaScript Engineers to work on Ghost full-time
Tag Name: v5.22.0
Release Date: 10/31/2022
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
This release addresses a significant bug in the content importer that affected paid products/tiers when importing JSON files. Previously, when importing products without price information, the system would store null values instead of defaults, causing downstream issues for paid products. The fix ensures proper mapping of price data during imports, maintaining data integrity for membership tiers.
This release includes an automatic database migration that will:
No manual intervention is required. The migration will run automatically when you upgrade to v5.22.0.
If you've previously experienced issues with imported tiers missing price data, this upgrade should resolve those problems automatically.
Priority: Medium
This upgrade is recommended for all Ghost users, especially those who:
The upgrade process is standard with no special considerations required. The included migration will automatically fix any affected data in your database.
stripe_prices data onto the products table during imports to ensure valid data in the databaset.currency is null and t.type === 'paid' to identify and fix problematic entriesNo new features were added in this release. This is a focused bug fix release addressing issues with the content importer and tier data.
No security fixes were included in this release.
No specific performance improvements were included in this release. The focus was on fixing data integrity issues with the content importer.
This release fixes a specific but important bug in Ghost's content import functionality that affected paid tiers/products. When importing JSON files where products didn't contain complete price information, the importer would incorrectly store null values in the database instead of using defaults. This caused downstream issues because the products table wasn't properly populated for paid products.
The fix addresses this issue in two ways:
This ensures that all paid products/tiers maintain proper data integrity, even when imported from JSON files that lack complete price information. The fix is particularly important for Ghost users who frequently migrate content between instances or manage multiple Ghost sites.
View the changelog for full details: v5.21.0...v5.22.0
🪄 Love open source? We're hiring JavaScript Engineers to work on Ghost full-time