Skip to content

Commit 0d6b96a

Browse files
mnoconjulitafalconduszakonradobozaadriendupuis
committed
Release 4.6.22 (#2867)
* Added new Twig Component group (#2790) * Twig Component follow ups (#2792) * Added Priority for YAML configuration * Added doc for storefront groups * Adjusted paths * Update docs/templating/layout/customize_storefront_layout.md Co-authored-by: julitafalcondusza <[email protected]> --------- Co-authored-by: julitafalcondusza <[email protected]> * [Twig Components] Added Menu component (#2799) * Docs: Add Menu component to Twig Components documentation * Docs: Extend Twig Components YAML example with Menu component * Discounts 4.6.22 (#2810) * Adjusted code samples * [Discounts] Added doc for 4.6.22 * Fixed limit mention * Added update mention * Removed mentions of OverridePrioritatization * Wording * Update code_samples/discounts/src/Command/ManageDiscountsCommand.php Co-authored-by: Konrad Oboza <[email protected]> * Fixed highlights * Review suggestions * Added missing v prefix --------- Co-authored-by: Konrad Oboza <[email protected]> * IBX-9147: Symbol attribute type described in Developer Documentation - v4.6 (#2525) * Symbol attribute type described * Fixes after review * PHP CS Fixes * Resolved conflicts in product search criteria * Added composer dependency * fixes * review fixes * PHP & JS CS Fixes * symbol_attribute_type.md moved to Attributes folder * fixes; mysql added * fix in the table * fix --------- Co-authored-by: julitafalcondusza <[email protected]> Co-authored-by: Marek Nocoń <[email protected]> * Update 4.6.22 (#2851) * Adjusted code samples * [Discounts] Added doc for 4.6.22 * Fixed limit mention * Added update mention * Removed mentions of OverridePrioritatization * Wording * Update code_samples/discounts/src/Command/ManageDiscountsCommand.php Co-authored-by: Konrad Oboza <[email protected]> * Fixed highlights * Review suggestions * Added missing v prefix * Added doc for IBX-9933 * Fixed badge --------- Co-authored-by: Konrad Oboza <[email protected]> * IBX-9845: Solr9 (#2866) * Adjusted code samples * [Discounts] Added doc for 4.6.22 * Fixed limit mention * Added update mention * Removed mentions of OverridePrioritatization * Wording * Update code_samples/discounts/src/Command/ManageDiscountsCommand.php Co-authored-by: Konrad Oboza <[email protected]> * Fixed highlights * Review suggestions * Added missing v prefix * Described requirements * Added Solr 9 instructions * Fixed link * Updated instructions * Apply suggestions from code review Co-authored-by: julitafalcondusza <[email protected]> --------- Co-authored-by: Konrad Oboza <[email protected]> Co-authored-by: julitafalcondusza <[email protected]> * Release notes (#2869) * IBX-10262: Added mention of the renamed class * Release notes for 4.6.22 * Apply suggestions from code review Co-authored-by: julitafalcondusza <[email protected]> * Review fixes * Fixed link * Last minute fixes --------- Co-authored-by: julitafalcondusza <[email protected]> * Regenerated baseline * Removed bullet * Bumped latest tag * Added PHP API links * Added mention about Symbol attribute * Fixed link * Moved PHP API Symbol links * symbol_attribute_type.md: Link to PHP API Ref --------- Co-authored-by: julitafalcondusza <[email protected]> Co-authored-by: Konrad Oboza <[email protected]> Co-authored-by: julitafalcondusza <[email protected]> Co-authored-by: Adrien Dupuis <[email protected]>
1 parent 106375b commit 0d6b96a

File tree

25 files changed

+472
-70
lines changed

25 files changed

+472
-70
lines changed
Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
ibexa_twig_components:
22
admin-ui-user-menu:
3-
custom-html-component:
4-
type: html
5-
arguments:
6-
content: '<b>Hello world!</b>'
7-
custom-template-component:
8-
type: template
9-
arguments:
10-
template: '@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig'
11-
parameters:
12-
user_content:
13-
name: "Thumbnail"
14-
thumbnail:
15-
resource: https://placecats.com/100/100
163
custom-controller-component:
174
type: controller
185
arguments:
196
controller: '\App\Controller\MyController::requestAction'
207
parameters:
218
parameter1: 'custom'
229
parameter2: true
23-
admin-ui-stylesheet-head:
24-
custom-link-component:
25-
type: stylesheet
10+
custom-html-component:
11+
type: html
12+
priority: 0
2613
arguments:
27-
href: 'https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&amp;display=fallback'
28-
rel: stylesheet
29-
crossorigin: anonymous
30-
integrity: sha384-LN/mLhO/GN6Ge8ZPvI7uRsZpiXmtSkep+aFlJcHa8by4TvA34o1am9sa88eUzKTD
31-
type: text/css
14+
content: '<b>Hello world!</b>'
15+
admin-ui-user-menu:
16+
duplicated_user_menu:
17+
type: menu
18+
arguments:
19+
name: ezplatform_admin_ui.menu.user
20+
template: '@ibexadesign/ui/menu/user.html.twig'
21+
depth: 1
3222
admin-ui-script-head:
3323
custom-script-component:
3424
type: script
@@ -39,3 +29,23 @@ ibexa_twig_components:
3929
async: true
4030
integrity: sha384-Ewi2bBDtPbbu4/+fs8sIbBJ3zVl0LDOSznfhFR/JBK+SzggdRdX8XQKauWmI9HH2
4131
type: text/javascript
32+
admin-ui-stylesheet-head:
33+
custom-link-component:
34+
type: stylesheet
35+
arguments:
36+
href: 'https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&amp;display=fallback'
37+
rel: stylesheet
38+
crossorigin: anonymous
39+
integrity: sha384-LN/mLhO/GN6Ge8ZPvI7uRsZpiXmtSkep+aFlJcHa8by4TvA34o1am9sa88eUzKTD
40+
type: text/css
41+
admin-ui-global-search:
42+
custom-template-component:
43+
type: template
44+
priority: 50
45+
arguments:
46+
template: '@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig'
47+
parameters:
48+
user_content:
49+
name: "Thumbnail"
50+
thumbnail:
51+
resource: https://placecats.com/100/100
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
type: discount_code
2+
mode: create
3+
code: summer10
4+
global_usage_limit: 100 # Optional
5+
user_usage_limit: 5 # Optional
6+
created_at: '2023-01-01T12:00:00+00:00' # Optional
7+
creator_id: 42 # Optional

code_samples/discounts/src/Command/ManageDiscountsCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6060
$discountCodeCreateStruct = new DiscountCodeCreateStruct(
6161
'summer10',
6262
10, // Global usage limit
63-
null, // Unlimited usage
63+
null, // Unlimited usage per customer
6464
$this->permissionResolver->getCurrentUserReference()->getUserId(),
6565
$now
6666
);
@@ -83,7 +83,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8383
$discountCode->getCode(),
8484
$discountCode->getGlobalLimit(),
8585
$discountCode->getUsedLimit()
86-
), ])
86+
),
87+
])
8788
->setTranslations([
8889
new DiscountTranslationStruct('eng-GB', 'Discount name', 'This is a discount description', 'Promotion Label', 'Promotion Description'),
8990
new DiscountTranslationStruct('ger-DE', 'Discount name (German)', 'Description (German)', 'Promotion Label (German)', 'Promotion Description (German)'),
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CREATE TABLE ibexa_product_specification_attribute_symbol (id INT NOT NULL, value VARCHAR(160) DEFAULT NULL, INDEX ibexa_product_specification_attribute_symbol_value_idx (value), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB;
2+
ALTER TABLE ibexa_product_specification_attribute_symbol ADD CONSTRAINT ibexa_product_specification_attribute_symbol_fk FOREIGN KEY (id) REFERENCES ibexa_product_specification_attribute (id) ON UPDATE CASCADE ON DELETE CASCADE
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CREATE TABLE ibexa_product_specification_attribute_symbol (id INT NOT NULL, value VARCHAR(160) DEFAULT NULL, PRIMARY KEY(id));
2+
CREATE INDEX ibexa_product_specification_attribute_symbol_value_idx ON ibexa_product_specification_attribute_symbol (value);
3+
ALTER TABLE ibexa_product_specification_attribute_symbol ADD CONSTRAINT ibexa_product_specification_attribute_symbol_fk FOREIGN KEY (id) REFERENCES ibexa_product_specification_attribute (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE;

docs/administration/back_office/back_office_elements/custom_components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The available groups for the back office are:
4747
|`admin-ui-systeminfo-tab-groups`| `vendor/ibexa/system-info/src/bundle/Resources/views/themes/admin/system_info/info.html.twig` |
4848
|`admin-ui-user-menu`| `vendor/ibexa/admin-ui-ui/src/bundle/Resources/views/themes/admin/ui/layout.html.twig` |
4949
|`admin-ui-user-profile-blocks`| `vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/account/profile/view.html.twig` |
50+
|`admin-ui-versions-table-before`|`vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/content/tab/versions/table.html.twig`|
5051

5152
For more information, see [this example using few of those components](components.md#example).
5253

docs/api/event_reference/discounts_events.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ The events below are dispatched when managing [discounts](discounts_guide.md):
1414

1515
| Event | Dispatched by |
1616
|---|---|
17-
|[BeforeCreateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-BeforeCreateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html)
18-
|[CreateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-CreateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html)
19-
|[BeforeDeleteDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-BeforeDeleteDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html)
20-
|[DeleteDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-DeleteDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html)
17+
|[BeforeCreateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-BeforeCreateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html) |
18+
|[CreateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-CreateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html) |
19+
|[BeforeDeleteDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-BeforeDeleteDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html) |
20+
|[DeleteDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-DeleteDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html) |
2121
|[BeforeUpdateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-BeforeUpdateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html)|
22-
|[UpdateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-UpdateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html)|
22+
|[UpdateDiscountEvent](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-Event-UpdateDiscountEvent.html)| [DiscountServiceInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Discounts-DiscountServiceInterface.html) |
2323

2424
## Form events
2525

docs/api/graphql/graphql_queries.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,3 +838,7 @@ children(first: 3, after: "YXJyYXljb25uZWN0aW9uOjM=")
838838
### Get Matrix field type
839839

840840
To get a Matrix field type with GraphQL, see [Matrix field type reference](matrixfield.md).
841+
842+
### Enable pagination for RelationList field type
843+
844+
To learn how to enable pagination for RelationList field type, see the [RelationList field type reference](relationlistfield.md).

docs/content_management/data_migration/importing_data.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ The following data migration step modes are available:
5656
| `currency` | &#10004; | &#10004; | &#10004; | |
5757
| `customer_group` | &#10004; | &#10004; | &#10004; | |
5858
| `discount` | &#10004; | &#10004; | | |
59+
| `discount_code` | &#10004; | | | |
5960
| `language` | &#10004; | | | |
6061
| `location` | | &#10004; | | &#10004; |
6162
| `object_state` | &#10004; | | | |
@@ -530,6 +531,14 @@ The provided conditions overwrite any already existing ones.
530531

531532
For a list of available conditions, see [Discounts API](discounts_api.md#conditions).
532533

534+
### Discount codes [[% include 'snippets/lts-update_badge.md' %]]
535+
536+
You can create a discount code as in the following example:
537+
538+
``` yaml
539+
[[= include_file('code_samples/data_migration/examples/discounts/discount_code_create.yaml') =]]
540+
```
541+
533542
## Criteria
534543

535544
When using `update` or `delete` modes, you can use criteria to identify the objects to operate on.

docs/content_management/field_types/field_type_reference/relationlistfield.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,33 @@ $validators = [
107107
]
108108
];
109109
```
110+
111+
### Enable pagination in GraphQL
112+
113+
To enable pagination for Relation List field type, set the `ibexa.graphql.schema.ibexa_object_relation_list.enable_pagination` parameter to `true`.
114+
115+
!!! note
116+
117+
The pagination is enabled by default in [[= product_name =]] v5 and the parameter is removed.
118+
119+
This allows you to query for only a subset of relations, as in the following example:
120+
121+
``` graphql
122+
query {
123+
content {
124+
relations(contentId: 71) {
125+
rel(first: 5) {
126+
totalCount,
127+
edges {
128+
node {
129+
_contentInfo {
130+
id
131+
}
132+
}
133+
}
134+
}
135+
}
136+
}
137+
}
138+
```
139+

0 commit comments

Comments
 (0)