Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Merge branch 'master' into filter_by_list_of_enums

Maciej Korycinski4ee1f22d2bcf
diff --cc CHANGELOG.md
index 90bec064f2,cf4cb89379..f041c7693a
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -45,7 -45,13 +45,13 @@@ All notable, unreleased changes to thi
- Fix crash in Dashboard 1.0 when updating an order address's phone number - #4061 by @NyanKiyoshi
- Update test function names since ready_to_place_order is renamed to clean_checkout- #4070 by @jxltom
- Resort imports and remove unused imports - #4069 by @jxltom
+ - Fix typo in CheckoutBillingAddressUpdate - #4073 by @jxltom
+ - Required checkout ID for updating checkout's shipping and billing address - #4074 by @jxltom
+ - Implement order events - #4018 by @NyanKiyosho
+ - Implemented new events: `DRAFT_CREATED`, `DRAFT_ADDED_PRODUCTS`, `DRAFT_REMOVED_PRODUCTS`, and `PAYMENT_FAILED`;
+ - Implemented new mail events: `TRACKING_UPDATED`, `DIGITAL_LINKS`;
+ - Refactored logic of events, it's now easier than ever to add and send events.
-
+- Allow filtering by lists of enums for some fields - #4078 by @korycins
## 2.5.0
diff --cc saleor/graphql/order/resolvers.py
index 575d5fae25,9228f0ec2e..c2ce68065c
--- a/saleor/graphql/order/resolvers.py
+++ b/saleor/graphql/order/resolvers.py
@@@ -1,10 -1,12 +1,12 @@@
import graphene
import graphene_django_optimizer as gql_optimizer
- from ...order import OrderEvents, OrderStatus, models
+ from ...order import OrderStatus, models
+ from ...order.events import OrderEvents
+ from ...order.models import OrderEvent
from ...order.utils import sum_order_totals
from ..utils import filter_by_period, filter_by_query_param
-from .enums import OrderStatusFilter
+from .enums import CustomOrderStatusFilter
from .types import Order
ORDER_SEARCH_FIELDS = (
diff --cc saleor/graphql/schema.graphql
index 7bd09fac43,3c28cdb35b..6e0f55951a
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@@ -1458,19 -1475,11 +1480,12 @@@ enum OrderEventsEnum
OTHER
}
- enum OrderEventsEmails {
- PAYMENT
- SHIPPING
- ORDER
- FULFILLMENT
- }
-
input OrderFilterInput {
- paymentStatus: PaymentChargeStatusEnum
- status: OrderStatusFilter
+ paymentStatus: [PaymentChargeStatusEnum]
+ status: [OrderStatusFilter]
customer: String
created: DateRangeInput
+ customStatus: CustomOrderStatusFilter
}
type OrderLine implements Node {