3.4.0
Welcome to the 3.4.0 release of Saleor!
Breaking changes
- Hide private metadata in notification payloads - #9849 by @maarcingebala
- From now on, the
private_metadata
field inNOTIFY_USER
webhook payload is deprecated and it will return an empty dictionary. This change also affectsAdminEmailPlugin
,UserEmailPlugin
, andSendgridEmailPlugin
.
- From now on, the
Other changes
GraphQL API
- Add new fields to
Order
type to show authorize/charge status #9795- Add new fields to Order type:
totalAuthorized
totalCharged
authorizeStatus
chargeStatus
- Add filters to
Order
:authorizeStatus
chargeStatus
- Add new fields to Order type:
- Add mutations for managing a payment transaction attached to order/checkout. - #9564 by @korycins
- add fields:
order.transactions
checkout.transactions
- add mutations:
transactionCreate
transactionUpdate
transactionRequestAction
- add new webhook event:
TRANSACTION_ACTION_REQUEST
- add fields:
- Unify checkout's ID fields. - #9862 by @korycins
- Deprecate
checkoutID
andtoken
in all Checkout's mutations. Useid
instead. - Deprecate
token
incheckout
query. Useid
instead.
- Deprecate
- Add
unitPrice
,undiscountedUnitPrice
,undiscountedTotalPrice
fields toCheckoutLine
type - #9821 by @fowczarek - Fix invalid
ADDED_PRODUCTS
event parameter forOrderLinesCreate
mutation - #9653 by @IKarbowiak - Update sorting field descriptions - add info where channel slug is required (#9695) (3917430)
- Fix using enum values in permission descriptions (#9697) (dbb783e)
- Change gateway validation in
checkoutPaymentCreate
mutation (#9530) (cf1d49b) - Fix invalid
ADDED_PRODUCTS
event parameter forOrderLinesCreate
mutation (#9653) (a0d8aa8) - Fix resolver for
Product.created
field (#9737) (0af00cb) - Allow fetching by id all order data for new orders (#9728) (71c19c9)
- Provide a reference for the rich text format (#9744) (f2207c4)
- Improve event schema field descriptions - #9880 by @patrys
Saleor Apps
- Add menu webhooks:
MENU_CREATED
,MENU_UPDATED
,MENU_DELETED
,MENU_ITEM_CREATED
,MENU_ITEM_UPDATED
,MENU_ITEM_DELETED
- #9651 by @szymj - Add voucher webhooks:
VOUCHER_CREATED
,VOUCHER_UPDATED
,VOUCHER_DELETED
- #9657 by @szymj - Add app webhooks:
APP_INSTALLED
,APP_UPDATED
,APP_DELETED
,APP_STATUS_CHANGED
- #9698 by @szymj - Add warehouse webhoks:
WAREHOUSE_CREATED
,WAREHOUSE_UPDATED
,WAREHOUSE_DELETED
- #9746 by @szymj - Expose order alongside fulfillment in fulfillment-based subscriptions used by webhooks (#9847)
- Fix webhooks payload not having field for
is_published
(#9800) (723f93c) - Add support for
ORDER_*
mounting points for Apps (#9694) (cc728ef) - Add missing shipping method data in order and checkout events payloads. (#9692) (dabd1a2)
- Use the human-readable order number in notification payloads (#9863) (f10c5fd)
Models
- Migrate order discount id from int to UUID - #9729 by @IKarbowiak
- Changed the order discount
id
fromint
toUUID
, the old ids still can be used
for old order discounts.
- Changed the order discount
- Migrate order line id from int to UUID - #9637 by @IKarbowiak
- Changed the order line
id
fromint
toUUID
, the old ids still can be used
for old order lines.
- Changed the order line
- Migrate checkout line id from int to UUID - #9675 by @IKarbowiak
- Changed the checkout line
id
fromint
toUUID
, the old ids still can be used
for old checkout lines.
- Changed the checkout line
Performance
- Fix memory consumption of
delete_event_payloads_task
(#9806) (2823edc) - Add webhook events dataloader (#9790) (e88eef3)
- Add dataloader for fulfillment warehouse resolver (#9740) (9d14fad)
- Fix order type resolvers performance (#9723) (13b5a95)
- Improve warehouse filtering performance (#9622) (a1a7a22)
- Add dataloader for fulfillment lines (#9707) (68fb4bf)
Other
- Observability reporter - #9803 by @przlada
- Update sample products set - #9796 by @mirekm
- Fix for sending incorrect prices to Avatax - #9633 by @korycins
- Fix tax-included flag sending to Avatax - #9820
- Fix AttributeError: 'Options' object has no attribute 'Model' in
search_tasks.py
- #9824 - Fix Braintree merchant accounts mismatch error - #9778
- Stricter signatures for resolvers and mutations - #9649