Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Bugfix(grid) fix product grid query builder after optymise (#1866)
Browse files Browse the repository at this point in the history
  • Loading branch information
rprzedzik authored Jan 26, 2022
1 parent 7c537f8 commit 1082ecd
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## CHANGELOG FOR 1.1.x
#### 1.1.9
- bugfix [#1848](https://github.com/ergonode/backend/issues/1848) Long response times for product grid endpoint - change query after postgress query problem (rprzedzik)

#### 1.1.8
- bugfix [#1848](https://github.com/ergonode/backend/issues/1848) Long response times for product grid endpoint (rprzedzik)

#### 1.1.7
- bugfix [#1816](https://github.com/ergonode/backend/issues/1816) Fixed product audits (rprzedzik)

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"behatch/contexts": "^3.3",
"dama/doctrine-test-bundle": "^6.6",
"escapestudios/symfony2-coding-standard": "^3.10",
"fakerphp/faker": "1.17.0",
"friends-of-behat/symfony-extension": "^2.0.5",
"friendsofphp/proxy-manager-lts": "^1.0",
"infection/infection": "^0.17.5",
Expand Down
31 changes: 22 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function addSelect(QueryBuilder $query, string $key, AbstractAttribute $a
JOIN product_value pv ON pv.value_id = vt.value_id
WHERE attribute_id = \'%s\'
AND language = \'%s\'
AND value ~ \'^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$\'
)',
$key,
$attribute->getId()->getValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function addSelect(QueryBuilder $query, string $key, AbstractAttribute $a
JOIN product_value pv ON pv.value_id = vt.value_id
WHERE attribute_id = \'%s\'
AND language = \'%s\'
AND value ~ \'^\d+(\\.\\d+)?$\'
)',
$key,
$attribute->getId()->getValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function addSelect(QueryBuilder $query, string $key, AbstractAttribute $a
JOIN product_value pv ON pv.value_id = vt.value_id
WHERE attribute_id = \'%s\'
AND language = \'%s\'
AND value ~ \'^\d+(\\.\\d+)?$\'
)',
$key,
$attribute->getId()->getValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function addSelect(QueryBuilder $query, string $key, AbstractAttribute $a
JOIN product_value pv ON pv.value_id = vt.value_id
WHERE attribute_id = \'%s\'
AND language = \'%s\'
AND value ~ \'^\d+(\\.\\d+)?$\'
)',
$key,
$attribute->getId()->getValue(),
Expand Down

0 comments on commit 1082ecd

Please sign in to comment.