Saleor Core: the high performance, composable, headless commerce API.
Changelog
All notable, unreleased changes to this project will be documented in this file. For the released changes, please visit the Releases page.
3.24.0 [Unreleased]
Breaking changes
Thumbnail sizes are now rounded up by default. A requested
sizethat is not one of the available thumbnail sizes (32, 64, 128, 256, 512, 1024, 2048, 4096) now resolves to the smallest available size not smaller than requested (e.g.1500returns2048), instead of the nearest one (1024), which made images look blurry when displayed at the requested size. PasssizeRounding: NEARESTto restore the previous behavior. This applies to all thumbnail fields:User.avatar,Product.thumbnail,ProductMedia.url,ProductImage.url,OrderLine.thumbnail,Category.backgroundImage,Collection.backgroundImage,AppBrandLogo.defaultandAppManifestBrandLogo.default, as well as product thumbnails in email notifications.Removed the deprecated Authorize.Net payment gateway plugin (
mirumee.payments.authorize_net).Removed the deprecated Razorpay payment gateway plugin (
mirumee.payments.razorpay).Removed the deprecated Braintree payment gateway plugin (
mirumee.payments.braintree).Removed the deprecated Dummy (
mirumee.payments.dummy) and Dummy Credit Card (mirumee.payments.dummy_credit_card) payment gateway plugins.Removed the deprecated Sendgrid email plugin (
mirumee.notifications.sendgrid_email), along with thesendgriddependency. It sent customer notification emails (account confirmation, password reset, order confirmation, fulfillment, invoice and gift card) through SendGrid dynamic templates, and served custom events passed toexternalNotificationTriggerwith itspluginId. Use the SMTP app or your own app subscribing to the corresponding webhook events instead. Staff notification emails are unaffected — they are sent by the separate Admin emails plugin (mirumee.notifications.admin_email).Apps will be no longer to be granted with
MANAGE_APPSpermission. In certain cases, this permission was able to be assigned by the authorized user. App with such permission was not able to act like an admin app, but permission technically was granted.From Saleor 3.24, this app installation with
MANAGE_APPSpermission will be rejected. To safely upgrade, ensure that all installed apps do not have this permission.Bulk delete mutations now limit the number of
idsper call (default 100, configurable via theBULK_DELETE_LIMITenv var). Exceeding the limit returns anINVALIDerror. This applies to all bulk delete mutations, includingproductBulkDelete,productVariantBulkDelete,categoryBulkDelete,collectionBulkDelete,productTypeBulkDelete,productMediaBulkDelete,attributeBulkDelete,attributeValueBulkDelete,customerBulkDelete,staffBulkDelete,pageBulkDelete,pageTypeBulkDelete,menuBulkDelete,menuItemBulkDelete,giftCardBulkDelete,saleBulkDelete,voucherBulkDelete,promotionBulkDelete,shippingPriceBulkDelete,shippingZoneBulkDelete,draftOrderBulkDelete, anddraftOrderLinesBulkDelete.Removed the deprecated
checkoutIdinput argument from thecheckoutShippingAddressUpdateandcheckoutBillingAddressUpdatemutations. Use theidargument instead.confirmAccount()mutation no longer allows to confirm an account that was already confirmed. - #19459 by @NyanKiyosiRemoved the deprecated
shopDomainUpdatemutation. Use thePUBLIC_URLenvironment variable to configure the shop domain instead.Removed the deprecated
checkoutLineDeletemutation. UsecheckoutLinesDeleteinstead — it takes alinesIdslist and only accepts the checkoutid(thetokenandcheckoutIdarguments are gone).Removed the deprecated
shopFetchTaxRatesmutation, along with theShopFetchTaxRatestype. It was a no-op; configure taxes with the tax mutations (e.g.taxConfigurationUpdate) instead.Removed the deprecated
orderSettingsUpdatemutation. Use thechannelUpdatemutation with theorderSettingsinput to update order settings per channel instead.Removed the deprecated
orderSettingsquery field. Use thechannelquery and read itsorderSettingsfield instead.Removed the deprecated
orderAddNotemutation, along with theOrderAddNotetype andOrderAddNoteInputinput. Use theorderNoteAddmutation instead.Removed the deprecated
exportGiftCardsandexportVoucherCodesmutations, along with theExportGiftCards,ExportGiftCardsInput,ExportVoucherCodesandExportVoucherCodesInputtypes. Fetch the data with thegiftCardsandvoucherqueries and format it in your app instead.Removed the
GIFT_CARD_EXPORT_COMPLETEDandVOUCHER_CODE_EXPORT_COMPLETEDwebhook event types, along with theGiftCardExportCompletedandVoucherCodeExportCompletedsubscription types. They were emitted only by the removedexportGiftCardsandexportVoucherCodesmutations. Existing webhook subscriptions to these events are deleted by a migration; a webhook left with no other events will stop being triggered.Removed the preorder GraphQL API, deprecated in 3.23. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set
trackInventoryto false to sell without a stock limit. Removed:- the
productVariantPreorderDeactivatemutation, along with theProductVariantPreorderDeactivatetype, - the
PreorderDatatype and theProductVariant.preorderfield, and thePreorderThresholdtype and theProductVariantChannelListing.preorderThresholdfield, - the
PreorderSettingsInputinput and thepreorderfield onProductVariantInput,ProductVariantCreateInput,ProductVariantBulkCreateInputandProductVariantBulkUpdateInput, - the
preorderThresholdinput field onProductVariantChannelListingAddInputandChannelListingUpdateInput, - the
hasPreorderedVariantsfilter onProductFilterInputandProductWhereInput, and theisPreorderfilter onProductVariantFilterInputandOrderFilterInput, - the
PREORDER_VARIANT_CANNOT_BE_DEACTIVATEDvalue from theProductErrorCodeenum.
Variants already in preorder keep being handled by the checkout and order flow; a preorder with an end date is still deactivated automatically once that date passes. The preorder database columns will be dropped in a later release.
- the
Removed the
DIGITAL_LINKSvalue from theOrderEventsEmailsEnumenum and theDIGITAL_LINK_DOWNLOADEDvalue from theCustomerEventsEnumenum. Events with these types were deleted in 3.23, along with the legacy digital content feature that emitted them.Removed the always-empty
digital_lineskey from the fulfillment confirmation notification payload. Usephysical_lines, which holds every line of the fulfillment.Attribute value and bulk attribute mutations now require the permission matching the attribute's type:
MANAGE_PRODUCT_TYPES_AND_ATTRIBUTESforPRODUCT_TYPEattributes,MANAGE_PAGE_TYPES_AND_ATTRIBUTESforPAGE_TYPEattributes, andMANAGE_CUSTOMER_TYPES_AND_ATTRIBUTESforCUSTOMER_TYPEattributes. Previously each mutation required a single fixed permission regardless of the attribute's type, which let a requestor modify attributes of a type they were not authorized for.The affected mutations and their previously required permission:
attributeValueCreate— previouslyMANAGE_PRODUCTS;PRODUCT_TYPEattributes now requireMANAGE_PRODUCT_TYPES_AND_ATTRIBUTESandPAGE_TYPEattributes now requireMANAGE_PAGE_TYPES_AND_ATTRIBUTESattributeValueUpdate,attributeValueDelete,attributeReorderValues— previouslyMANAGE_PRODUCT_TYPES_AND_ATTRIBUTES; unchanged forPRODUCT_TYPEattributes, butPAGE_TYPEattributes now requireMANAGE_PAGE_TYPES_AND_ATTRIBUTES.attributeBulkDelete,attributeValueBulkDelete— previouslyMANAGE_PAGE_TYPES_AND_ATTRIBUTES; unchanged forPAGE_TYPEattributes, butPRODUCT_TYPEattributes now requireMANAGE_PRODUCT_TYPES_AND_ATTRIBUTES. When the call targets several types, every matching permission is required.attributeBulkCreateandattributeBulkUpdatealready resolved the permission from the attribute type. They now reject an attribute type that has no permission mapped, instead of falling back toMANAGE_PAGE_TYPES_AND_ATTRIBUTES.
To upgrade, grant staff members and apps the permission matching the attribute types they operate on. A requestor holding only
MANAGE_PRODUCTScan no longer create attribute values.Removed the deprecated storefront and dashboard presentation flags of attributes:
filterableInStorefront,filterableInDashboard,availableInGridandstorefrontSearchPosition. Saleor never read them. Every surface exposing them is gone: the fields of theAttributetype, the inputs ofAttributeCreateInputandAttributeUpdateInput(which also coversattributeBulkCreateandattributeBulkUpdate), thefilterableInStorefront,availableInGridandfilterableInDashboardinputs ofAttributeFilterInput, thefilterableInDashboardinput ofAttributeWhereInput, and theFILTERABLE_IN_STOREFRONT,FILTERABLE_IN_DASHBOARD,AVAILABLE_IN_GRIDandSTOREFRONT_SEARCH_POSITIONvalues ofAttributeSortField. Keep the logic in the storefront or dashboard, or useAttributemetadata instead. The database columns are still present and will be dropped in a later release.The default ordering of attributes is now
slugalone. Previously theattributes(...)query (and other places listing attributes without an explicitsortBy) returned them ordered bystorefrontSearchPositionfirst, settable throughattributeCreateandattributeUpdate. If you relied on that field to control the order of attributes, it is no longer honored; sort them in the storefront or keep the position inAttributemetadata instead.Providing an empty
attributeslist (nullor[]) inwherefilters for pages, products, and product variants now matches no objects instead of being ignored. The same now applies to a no-op attribute filter that builds no condition, such as an empty reference container (reference: { pageSlugs: {} }) - previously such a filter matched all product variants.
GraphQL API
- Added
stockAvailabilityandstocksfilters to theproductVariantsquerywhereinput, allowing variants to be filtered by their stock status and stock quantity for a given channel - #17689 by @ayesha-waris linesinput on thecheckoutCreatemutation is no longer required. When omitted, a checkout with no lines is created.- Removed the deprecated
availableShippingMethodsfield from theOrdertype. UseshippingMethodsinstead. - Removed the deprecated
variantfield from theProducttype. Use the top-levelvariantquery instead. - Removed the deprecated
notefield from theCheckouttype. UsecustomerNoteinstead. - Removed the deprecated
isDigitalfield from theProductTypetype, theisDigitalinput fromProductTypeInput, theDIGITALvalue from theProductTypeEnumfilter, and theDIGITALvalue fromProductTypeSortField. These had no effect; use metadata or attributes instead (orSHIPPING_REQUIREDfor sorting). - Fixed
productVariantBulkUpdatereturning a 500 error whenchannelListings.createtargeted a channel the variant was already listed in. The mutation now returns aDUPLICATED_INPUT_ITEMerror recommending theupdatefield, and respects the selectederrorPolicy- #19355 by @ayesha-waris
Webhooks
- Added
PRODUCT_TYPE_CREATED,PRODUCT_TYPE_UPDATED, andPRODUCT_TYPE_DELETEDwebhook events, dispatched when a product type is created, updated, or deleted - #17574 by @ayesha-waris
Other changes
- Added OpenTelemetry instrumentation for psycopg, Celery, Redis and botocore. Spans for database queries, cache and broker commands, Celery tasks and AWS calls are now emitted alongside Saleor's own spans, with Celery task spans linked to the request that scheduled them. The threading instrumentor is enabled too, so spans created in threads and thread pools, for example S3 calls that boto3 runs in its transfer threads, stay in the trace of the request or task that started them. Outgoing HTTP requests are deliberately not instrumented, because the requests instrumentor would replace the
traceparentheader that apps receive with webhooks, which points at thewebhooks.<event>span, with its own span. Library instrumentors emit spans only, their metrics are not exported. The set of enabled instrumentors is controlled by the newTELEMETRY_INSTRUMENTORSenvironment variable, which takes a comma-separated list of OpenTelemetry instrumentor entry point names and defaults topsycopg,celery,redis,botocore,threading. Set it to an empty string to disable library instrumentation. The OpenTelemetry packages were upgraded to SDK 1.37.0 and instrumentation 0.58b0. - Dropped the database leftovers of the legacy digital content feature removed in 3.23: the
product_digitalcontentandproduct_digitalcontenturltables, and theautomatic_fulfillment_digital_products,default_digital_max_downloadsanddefault_digital_url_valid_dayscolumns ofsite_sitesettings. Files uploaded through the legacy API are not removed from the media storage — thedigital_contents/directory can be deleted manually. ProductType.is_digitalwas removed from the ORM model; the column itself will be dropped in 3.25.- Removed the
is_digitalfield from thepopulatedbsample data.
Search improvements
Fixes
- Fixed migration
account.0103_create_default_customer_typeto respectPOPULATE_DEFAULTS; the default customer type is no longer created when defaults are disabled, and the post-migration assignment task skips when none exists. - Fixed
appCreateandappUpdatefailing with an unhandled error whenpermissionswasnullor omitted.appCreatenow creates an app with no permissions, andappUpdateleaves the app's existing permissions untouched. Passing an empty list toappUpdatestill clears them. - Fixed the
set_user_search_document_valuesdata migration task failing with a statement timeout on large user tables. - Fixed orders being completed with untaxed totals when a concurrent modification drops the tax calculation. The pre-tax prices used to qualify order promotions are now stored in dedicated
base_subtotal_amountandbase_total_amountcolumns instead of overwritingsubtotalandtotal, anddraftOrderCompletereturns aTAX_ERRORinstead of finalizing an order whose recalculated prices could not be stored because another process modified it in the meantime. Retrying the mutation succeeds.