Skip to content

Commit 65821c8

Browse files
authored
Merge pull request #57 from flagbit/akeneo5
Update for Akeneo 5
2 parents 75d97db + c6843b3 commit 65821c8

File tree

14 files changed

+67
-11
lines changed

14 files changed

+67
-11
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: "ubuntu-18.04"
88
strategy:
99
matrix:
10-
php-versions: ['7.3']
10+
php-versions: ['7.4']
1111

1212
steps:
1313
- uses: "actions/[email protected]"
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: "ubuntu-18.04"
4141
strategy:
4242
matrix:
43-
php-versions: [ '7.3' ]
43+
php-versions: [ '7.4' ]
4444

4545
steps:
4646
- uses: "actions/[email protected]"

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build:
66
- libmagickwand-dev
77
- libmagickcore-dev
88
php:
9-
version: 7.3
9+
version: 7.4
1010
pecl_extensions:
1111
- apcu
1212
- imagick

CHANGELOG-5.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 5.0.0
2+
3+
- Add support for Akeneo 5.0.0.

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Please note that this project is released with a [Contributor Code of Conduct](C
66

77
| Branch | Akeneo Compatibility |
88
| ------------- |:-------------:|
9-
| `master` | `>= 3.0.0` |
9+
| `master` | `>= 5.0.0` |
10+
| `4.0` | `>= 4.0.0` |
11+
| `3.0` | `>= 3.0.0` |
1012
| `2.X` | `>= 2.0.5 & < 3.0.0` |
1113
| `2.0` | `>= 2.0.0 & < 2.0.5` |
1214
| `1.X` | `>= 1.6.0 & < 2.0.0` |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ php bin/console --env=prod doctrine:migrations:migrate
114114

115115
This extension supports the latest Akeneo PIM CE/EE stable versions:
116116

117+
* 5.0
117118
* 4.0
118119
* 3.2 (LTS)
119120
* 3.0 (LTS)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"require": {
3636
"ext-json": "*",
37-
"akeneo/pim-community-dev": "^4.0"
37+
"akeneo/pim-community-dev": "^5.0"
3838
},
3939
"require-dev": {
4040
"phpspec/phpspec": "^6.1",

jest/integration/formextensions.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe('Form Extensions', function() {
1414
operators: [ 'IN', 'EMPTY', 'NOT EMPTY' ]
1515
},
1616
position: 100,
17+
feature: null,
1718
code: 'akeneo-attribute-select-filter'
1819
};
1920

spec/Flagbit/Bundle/TableAttributeBundle/Component/Product/Factory/Value/TableValueFactorySpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function it_throws_exception_on_empty_data()
6464

6565
private function createAttribute(bool $isScopable, bool $isLocalizable): Attribute
6666
{
67-
return new Attribute('code', 'flagbit_catalog_table', [], $isLocalizable, $isScopable, null, false, 'backend', ['de_DE', 'en_US']);
67+
return new Attribute('code', 'flagbit_catalog_table', [], $isLocalizable, $isScopable, null, null, false, 'backend', ['de_DE', 'en_US']);
6868
}
6969

7070
public function it_supports_attribute_type()

src/Resources/config/form_extensions/attribute/edit.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
extensions:
22
flagbit-catalog-table-attribute-edit-form:
3-
module: pim/attribute-edit-form/tab/choices
3+
module: flagbit/product/field/choices
44
parent: pim-attribute-edit-form-form-tabs
55
targetZone: container
66
position: 110
7-
config:
8-
label: flagbit.table_attribute.form.attribute.tab.title
9-
activeForTypes: [flagbit_catalog_table]
107

118
flagbit-catalog-table-attribute-edit-form-options-grid:
129
module: flagbit/options-grid

src/Resources/config/query_builders.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<services>
88

99
<service id="flagbit_catalog_table.doctrine.query.filter.columns" class="%pim_catalog.query.elasticsearch.filter.option.class%">
10-
<argument type="service" id="pim_catalog.validator.helper.attribute"/>
10+
<argument type="service" id="pim_catalog.validator.helper.attribute_filter"/>
1111
<argument type="service" id="pim_catalog.repository.attribute_option"/>
1212
<argument type="collection">
1313
<argument>flagbit_catalog_table</argument>

0 commit comments

Comments
 (0)