Datasets:
comment_id int64 2.73M 3.7B | pr_id int64 3.78M 4.19B | review_id float64 14.3k 4.84B ⌀ | repo_id int64 2.72M 1.21B | author_id float64 45 288M ⌀ | in_reply_to_id float64 43.4M 3.7B ⌀ | body stringlengths 1 231k | diff_hunk stringlengths 0 262k | path stringlengths 1 277 | side stringclasses 2
values | start_side stringclasses 2
values | line float64 1 1.14M ⌀ | original_line float64 1 1.14M ⌀ | start_line float64 0 167k ⌀ | original_start_line float64 0 293k ⌀ | position int32 0 16.6k | original_position int32 1 15k | subject_type stringclasses 2
values | commit_id stringlengths 40 40 | original_commit_id stringlengths 40 40 | author_association stringclasses 5
values | created_at timestamp[us, tz=UTC]date 2013-01-22 20:17:24 2026-08-03 13:57:33 | updated_at timestamp[us, tz=UTC]date 2013-01-22 20:41:30 2026-08-03 13:57:33 | reactions_total int32 0 23 | reactions_plus1 int32 0 21 | reactions_minus1 int32 0 4 | html_url stringlengths 57 102 | is_bot bool 2
classes | bot_login stringclasses 125
values | code_suggestions listlengths 0 60 | code_elements listlengths 0 1.19k | human_feedback stringclasses 3
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,731,733 | 3,782,564 | null | 2,717,549 | 614,970 | null | I try to avoid abbreviations, this is the reason, what `cpz` stands for?
| @@ -525,6 +545,61 @@ private function generatePageUrl($page, array $parameters = array())
return $path;
}
+ private function thereisCountry($name, array $provinces = array())
+ {
+ $country = $this->getService('sylius_addressing.repository.country')->createNew();
+
+ $country->setNam... | features/Context/WebUser.php | RIGHT | null | null | null | null | null | 1 | 145 | line | adc93ce9ef25e97be2844e1f597dc199735c850d | f290952e39d9716bc848b58933e0586b3940f76c | MEMBER | 2013-01-22T20:17:24 | 2013-01-22T20:41:30 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/5#discussion_r2731733 | false | null | [] | [
"cpz"
] | null |
2,731,757 | 3,782,564 | null | 2,717,549 | 614,970 | null | Perhaps we should replace it with `I click "Add member"`, would sound more natural, as this is just a button, not a link which leads somewhere. Hm?
| @@ -0,0 +1,104 @@
+Feature: Zones
+ As a store owner
+ I want to be able to manage zones
+ In order to be able to apply other settings on geographical area
+
+ Background:
+ Given I am logged in as administrator
+ And there are following zones:
+ | name | type... | features/zones.feature | RIGHT | null | null | null | null | null | 1 | 50 | line | adc93ce9ef25e97be2844e1f597dc199735c850d | f290952e39d9716bc848b58933e0586b3940f76c | MEMBER | 2013-01-22T20:18:37 | 2013-01-22T20:41:30 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/5#discussion_r2731757 | false | null | [] | [
"I click \"Add member\""
] | null |
2,731,956 | 3,782,564 | null | 2,717,549 | 208,957 | null | Yes, I tried hard to come up with name for this variable which can be country, province or zone, depending on zone type. Suggest better name please.
| @@ -525,6 +545,61 @@ private function generatePageUrl($page, array $parameters = array())
return $path;
}
+ private function thereisCountry($name, array $provinces = array())
+ {
+ $country = $this->getService('sylius_addressing.repository.country')->createNew();
+
+ $country->setNam... | features/Context/WebUser.php | RIGHT | null | null | null | null | null | 1 | 145 | line | adc93ce9ef25e97be2844e1f597dc199735c850d | f290952e39d9716bc848b58933e0586b3940f76c | CONTRIBUTOR | 2013-01-22T20:29:01 | 2013-01-22T20:41:30 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/5#discussion_r2731956 | false | null | [] | [] | null |
2,732,016 | 3,782,564 | null | 2,717,549 | 208,957 | null | Yes, I find this odd, too. Fixing...
| @@ -0,0 +1,104 @@
+Feature: Zones
+ As a store owner
+ I want to be able to manage zones
+ In order to be able to apply other settings on geographical area
+
+ Background:
+ Given I am logged in as administrator
+ And there are following zones:
+ | name | type... | features/zones.feature | RIGHT | null | null | null | null | null | 1 | 50 | line | adc93ce9ef25e97be2844e1f597dc199735c850d | f290952e39d9716bc848b58933e0586b3940f76c | CONTRIBUTOR | 2013-01-22T20:32:31 | 2013-01-22T20:41:31 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/5#discussion_r2732016 | false | null | [] | [] | null |
2,732,106 | 3,782,564 | null | 2,717,549 | 614,970 | null | Difficult indeed, zoneable? This is naming taken from Spree.
| @@ -525,6 +545,61 @@ private function generatePageUrl($page, array $parameters = array())
return $path;
}
+ private function thereisCountry($name, array $provinces = array())
+ {
+ $country = $this->getService('sylius_addressing.repository.country')->createNew();
+
+ $country->setNam... | features/Context/WebUser.php | RIGHT | null | null | null | null | null | 1 | 145 | line | adc93ce9ef25e97be2844e1f597dc199735c850d | f290952e39d9716bc848b58933e0586b3940f76c | MEMBER | 2013-01-22T20:37:23 | 2013-01-22T20:41:31 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/5#discussion_r2732106 | false | null | [] | [] | null |
2,845,825 | 3,929,048 | null | 2,717,549 | 614,970 | null | `Given there are no products`
| @@ -0,0 +1,24 @@
+Feature: Inventory tracking
+ As a store owner
+ I want to be able to manage stock levels
+ In order track unit inventory
+
+ Background:
+ Given I am logged in as administrator
+ And there are following products:
+ | name | price |
+ | Super ... | features/inventory.feature | RIGHT | null | null | null | null | null | 1 | 22 | line | e48bfa00827529b7b055ea6206cd9f26f8bdd28d | 0745f5b0af3cbff8a6e8a20ca10c35ef8cfa6541 | MEMBER | 2013-01-31T16:20:47 | 2013-02-09T13:11:51 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/12#discussion_r2845825 | false | null | [] | [
"Given there are no products"
] | null |
2,845,912 | 3,929,048 | null | 2,717,549 | 208,957 | null | Fixed.
| @@ -0,0 +1,24 @@
+Feature: Inventory tracking
+ As a store owner
+ I want to be able to manage stock levels
+ In order track unit inventory
+
+ Background:
+ Given I am logged in as administrator
+ And there are following products:
+ | name | price |
+ | Super ... | features/inventory.feature | RIGHT | null | null | null | null | null | 1 | 22 | line | e48bfa00827529b7b055ea6206cd9f26f8bdd28d | 0745f5b0af3cbff8a6e8a20ca10c35ef8cfa6541 | CONTRIBUTOR | 2013-01-31T16:24:23 | 2013-02-09T13:11:51 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/12#discussion_r2845912 | false | null | [] | [] | null |
2,846,595 | 3,929,048 | null | 2,717,549 | 614,970 | null | Why is it commented out?
| @@ -0,0 +1,24 @@
+Feature: Inventory tracking
+ As a store owner
+ I want to be able to manage stock levels
+ In order track unit inventory
+
+ Background:
+ Given I am logged in as administrator
+ And there are following products:
+ | name | price |
+ | Super ... | features/inventory.feature | RIGHT | null | null | null | null | null | 1 | 22 | line | e48bfa00827529b7b055ea6206cd9f26f8bdd28d | 0745f5b0af3cbff8a6e8a20ca10c35ef8cfa6541 | MEMBER | 2013-01-31T17:00:46 | 2013-02-09T13:11:51 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/12#discussion_r2846595 | false | null | [] | [] | null |
2,846,640 | 3,929,048 | null | 2,717,549 | 208,957 | null | Because it fails, the prefixes thing, fails to load repository. Will uncomment when we fix service prefixes in inventory bundle.
| @@ -0,0 +1,24 @@
+Feature: Inventory tracking
+ As a store owner
+ I want to be able to manage stock levels
+ In order track unit inventory
+
+ Background:
+ Given I am logged in as administrator
+ And there are following products:
+ | name | price |
+ | Super ... | features/inventory.feature | RIGHT | null | null | null | null | null | 1 | 22 | line | e48bfa00827529b7b055ea6206cd9f26f8bdd28d | 0745f5b0af3cbff8a6e8a20ca10c35ef8cfa6541 | CONTRIBUTOR | 2013-01-31T17:02:48 | 2013-02-09T13:11:51 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/12#discussion_r2846640 | false | null | [] | [] | null |
2,952,864 | 3,929,048 | null | 2,717,549 | 614,970 | null | I updated our `WebUser` context to use `MinkContext` instead of `RawMinkContext` so we can skip this.
| @@ -252,6 +252,16 @@ public function iFillInProvinceNameWith($value)
}
/**
+ * Unchecks checkbox with specified id|name|label|value.
+ *
+ * @When /^(?:|I )uncheck "(?P<option>(?:[^"]|\\")*)"$/
+ */
+ public function uncheckOption($option)
+ {
+ $this->getSession()->getPage()->u... | features/Context/WebUser.php | RIGHT | null | null | null | null | null | 1 | 13 | line | e48bfa00827529b7b055ea6206cd9f26f8bdd28d | 4f33bc7adfc6cb2a4d7952e724e8a8cbdddc3e84 | MEMBER | 2013-02-09T10:16:01 | 2013-02-09T13:11:51 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/12#discussion_r2952864 | false | null | [] | [
"WebUser",
"MinkContext",
"RawMinkContext"
] | null |
2,952,867 | 3,929,048 | null | 2,717,549 | 614,970 | null | `When` -> `And`
| @@ -0,0 +1,60 @@
+Feature: Inventory tracking
+ As a store owner
+ I want to be able to manage stock levels
+ In order track unit inventory
+
+ Background:
+ Given I am logged in as administrator
+ And there are following options:
+ | name | presentation | values ... | features/inventory.feature | RIGHT | null | null | null | null | null | 1 | 57 | line | e48bfa00827529b7b055ea6206cd9f26f8bdd28d | 4f33bc7adfc6cb2a4d7952e724e8a8cbdddc3e84 | MEMBER | 2013-02-09T10:17:20 | 2013-02-09T13:11:51 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/12#discussion_r2952867 | false | null | [] | [
"When",
"And"
] | null |
2,964,216 | 3,964,129 | null | 2,717,549 | 208,957 | null | I would go with `ExpectationException` here.
| @@ -283,6 +296,25 @@ public function thereIsProperty($name, $presentation = null)
}
/**
+ * @Given /^(\w+) with following data should be created:$/
+ */
+ public function objectWithFollowingDataShouldBeCreated($type, TableNode $table)
+ {
+ $data = $table->getRowsHash();
+
+ $obj... | features/Context/DataContext.php | RIGHT | null | 312 | null | null | null | 59 | 59 | line | 8b1559d39427285e86eb5c4acd9fd054708e821d | 8b1559d39427285e86eb5c4acd9fd054708e821d | CONTRIBUTOR | 2013-02-11T16:41:37 | 2013-02-11T16:41:37 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/14#discussion_r2964216 | false | null | [] | [
"ExpectationException"
] | null |
2,975,812 | 4,099,832 | null | 2,717,549 | 209,405 | null | What `{"amount":5000, "equal":true}` mean ? Will that promotion be included when order total amount will be equal 5000 ?
Maybe then we should use something like:
``` feature
| type | amount | is_equal |
| order_total | 5000 | true |
```
instead of json ?
| @@ -0,0 +1,126 @@
+Feature: Promotions
+ As a store owner
+ I want to be able to manage promotions
+ In order to apply discounts to my products
+
+ Background:
+ Given I am logged in as administrator
+ And the following promotion rules are defined:
+ | type | configuration ... | features/promotions.feature | RIGHT | null | null | null | null | null | 1 | 10 | line | 89a0511ab397914449098b3ac05796404610510b | a97c229ee80b7342a2bf71bee1ef577a040dc599 | CONTRIBUTOR | 2013-02-12T10:16:04 | 2013-02-26T16:10:08 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/17#discussion_r2975812 | false | null | [
"| type | amount | is_equal |\n| order_total | 5000 | true |\n"
] | [
"{\"amount\":5000, \"equal\":true}"
] | null |
2,976,331 | 4,099,832 | null | 2,717,549 | 208,957 | null | That is promotion rule configuration. Promotion actions will be applied only if rules are satisfied. In this case if order amount is greater then 5000.
But yes, I like the idea to use table instead of json, but then we must split this into 2 tables:
``` feature
| type | amount | is_equal |
| order_total | 5... | @@ -0,0 +1,126 @@
+Feature: Promotions
+ As a store owner
+ I want to be able to manage promotions
+ In order to apply discounts to my products
+
+ Background:
+ Given I am logged in as administrator
+ And the following promotion rules are defined:
+ | type | configuration ... | features/promotions.feature | RIGHT | null | null | null | null | null | 1 | 10 | line | 89a0511ab397914449098b3ac05796404610510b | a97c229ee80b7342a2bf71bee1ef577a040dc599 | CONTRIBUTOR | 2013-02-12T11:04:51 | 2013-02-26T16:10:08 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/17#discussion_r2976331 | false | null | [
"| type | amount | is_equal |\n| order_total | 5000 | true |\n",
"| type | count | is_equal |\n| item_count | 10 | true |\n"
] | [] | null |
2,976,668 | 4,099,832 | null | 2,717,549 | 614,970 | null | Yep, we should remove the json for sure. The case is that different rules can have many different parameters. So columns are not best option too... I think we could parse a simpler format like `Amount: 500, Foo: bar`.
| @@ -0,0 +1,126 @@
+Feature: Promotions
+ As a store owner
+ I want to be able to manage promotions
+ In order to apply discounts to my products
+
+ Background:
+ Given I am logged in as administrator
+ And the following promotion rules are defined:
+ | type | configuration ... | features/promotions.feature | RIGHT | null | null | null | null | null | 1 | 10 | line | 89a0511ab397914449098b3ac05796404610510b | a97c229ee80b7342a2bf71bee1ef577a040dc599 | MEMBER | 2013-02-12T11:32:57 | 2013-02-26T16:10:08 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/17#discussion_r2976668 | false | null | [] | [
"Amount: 500, Foo: bar"
] | null |
2,976,742 | 4,099,832 | null | 2,717,549 | 208,957 | null | @pjedrzejewski Why not spliting and have table per rule/action, and add to config everything that is not `type`?
| @@ -0,0 +1,126 @@
+Feature: Promotions
+ As a store owner
+ I want to be able to manage promotions
+ In order to apply discounts to my products
+
+ Background:
+ Given I am logged in as administrator
+ And the following promotion rules are defined:
+ | type | configuration ... | features/promotions.feature | RIGHT | null | null | null | null | null | 1 | 10 | line | 89a0511ab397914449098b3ac05796404610510b | a97c229ee80b7342a2bf71bee1ef577a040dc599 | CONTRIBUTOR | 2013-02-12T11:40:17 | 2013-02-26T16:10:08 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/17#discussion_r2976742 | false | null | [] | [
"type"
] | null |
2,976,750 | 4,099,832 | null | 2,717,549 | 614,970 | null | Sounds good!
| @@ -0,0 +1,126 @@
+Feature: Promotions
+ As a store owner
+ I want to be able to manage promotions
+ In order to apply discounts to my products
+
+ Background:
+ Given I am logged in as administrator
+ And the following promotion rules are defined:
+ | type | configuration ... | features/promotions.feature | RIGHT | null | null | null | null | null | 1 | 10 | line | 89a0511ab397914449098b3ac05796404610510b | a97c229ee80b7342a2bf71bee1ef577a040dc599 | MEMBER | 2013-02-12T11:40:54 | 2013-02-26T16:10:08 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/17#discussion_r2976750 | false | null | [] | [] | null |
4,002,110 | 5,428,262 | null | 2,717,549 | 614,970 | null | Order filter translations are missing, I can add them after merge. :) Unless you want to complete this.
| @@ -0,0 +1,35 @@
+# This file is part of the Sylius package.
+# (c) Paweł Jędrzejewski
+
+sylius:
+ form:
+ checkout:
+ shipping_method: Metoda wysyłki
+ payment_method: Metoda płatności
+ settings:
+ general:
+ title: Tytuł strony
+ meta_d... | src/Sylius/Bundle/CoreBundle/Resources/translations/messages.pl.yml | RIGHT | null | 35 | null | null | null | 35 | 35 | line | c4aff8e8f88031765e7ed1557b5e645a0ac3c6b9 | c4aff8e8f88031765e7ed1557b5e645a0ac3c6b9 | MEMBER | 2013-04-29T16:36:22 | 2013-04-29T16:36:22 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/42#discussion_r4002110 | false | null | [] | [] | null |
4,002,129 | 5,428,262 | null | 2,717,549 | 614,970 | null | `Proszę podać liczbę sztuk w magazynie.`? Nie jestem pewny jak to przetłumaczyć. :)
| @@ -0,0 +1,21 @@
+# This file is part of the Sylius package.
+# (c) Paweł Jędrzejewski
+
+sylius:
+ variant:
+ price:
+ not_blank: Proszę podać cenę.
+ min: Cena musi być większa niż {{ limit }}.
+ onHand:
+ not_blank: Please enter on hand. | src/Sylius/Bundle/CoreBundle/Resources/translations/validators.pl.yml | RIGHT | null | 10 | null | null | null | 10 | 10 | line | c4aff8e8f88031765e7ed1557b5e645a0ac3c6b9 | c4aff8e8f88031765e7ed1557b5e645a0ac3c6b9 | MEMBER | 2013-04-29T16:37:16 | 2013-04-29T16:37:16 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/42#discussion_r4002129 | false | null | [] | [
"Proszę podać liczbę sztuk w magazynie."
] | null |
4,015,486 | 5,444,047 | null | 2,717,549 | 67,402 | null | IMO much better would be:
``` php
return $this->get('security.context')->isGranted('IS_AUTHENTICATED_REMEMBERED');
```
| @@ -42,37 +41,32 @@ protected function getCurrentCart()
}
/**
- * Is user logged in?
+ * Get object manager.
*
- * @return Boolean
+ * @return ObjectManager
*/
- protected function isUserLoggedIn()
+ protected function getManager()
{
- return is_object($this->ge... | src/Sylius/Bundle/CoreBundle/Checkout/Step/CheckoutStep.php | RIGHT | null | 70 | null | null | null | 55 | 55 | line | 6cee94c7080e50f6c648e845d770cff816f66905 | 6cee94c7080e50f6c648e845d770cff816f66905 | CONTRIBUTOR | 2013-04-30T09:56:16 | 2013-04-30T09:56:16 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/43#discussion_r4015486 | false | null | [
"return $this->get('security.context')->isGranted('IS_AUTHENTICATED_REMEMBERED');\n"
] | [] | null |
4,015,521 | 5,444,047 | null | 2,717,549 | 67,402 | null | Typo here, should be: `setShippingAddress()`.
| @@ -68,32 +68,31 @@ private function createOrder(ProcessContextInterface $context)
$orderBuilder = $this->getOrderBuilder();
$orderBuilder->create();
- foreach ($this->getCurrentCart()->getItems() as $item) {
+ $cart = $this->getCurrentCart();
+
+ foreach ($cart->getItems() as $... | src/Sylius/Bundle/CoreBundle/Checkout/Step/FinalizeStep.php | RIGHT | null | 81 | null | null | null | 19 | 19 | line | 6cee94c7080e50f6c648e845d770cff816f66905 | 6cee94c7080e50f6c648e845d770cff816f66905 | CONTRIBUTOR | 2013-04-30T09:59:00 | 2013-04-30T09:59:00 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/43#discussion_r4015521 | false | null | [] | [
"setShippingAddress()"
] | null |
4,015,532 | 5,444,047 | null | 2,717,549 | 67,402 | null | This line is an duplication.
| @@ -68,32 +68,31 @@ private function createOrder(ProcessContextInterface $context)
$orderBuilder = $this->getOrderBuilder();
$orderBuilder->create();
- foreach ($this->getCurrentCart()->getItems() as $item) {
+ $cart = $this->getCurrentCart();
+
+ foreach ($cart->getItems() as $... | src/Sylius/Bundle/CoreBundle/Checkout/Step/FinalizeStep.php | RIGHT | null | 94 | null | null | null | 35 | 35 | line | 6cee94c7080e50f6c648e845d770cff816f66905 | 6cee94c7080e50f6c648e845d770cff816f66905 | CONTRIBUTOR | 2013-04-30T09:59:38 | 2013-04-30T09:59:38 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/43#discussion_r4015532 | false | null | [] | [] | null |
4,111,593 | 5,519,261 | null | 2,717,549 | 614,970 | null | Let's add a blank line before return statement + replace AND with &&. :)
| @@ -67,6 +67,7 @@ protected function getZoneMatcher()
*/
protected function isUserLoggedIn()
{
- return is_object($this->get('security.context')->getToken()->getUser());
+ $token = $this->get('security.context')->getToken();
+ return $token !== null AND is_object($token->getUser()); | src/Sylius/Bundle/CoreBundle/Checkout/Step/CheckoutStep.php | RIGHT | null | null | null | null | null | 1 | 6 | line | 39fccbf042e8b02fdb98c86bef0c3fdcef0c4d4c | e30d9fb95c60286af66182b53e49d17780d1dc98 | MEMBER | 2013-05-07T11:54:54 | 2013-05-07T17:35:32 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/51#discussion_r4111593 | false | null | [] | [] | null |
4,296,642 | 5,628,962 | null | 2,717,549 | 614,970 | null | This makes `SyliusWebBundle` dependent on installer, which should be optional, I think we have to import this routing inside app/ config.
| @@ -1,6 +1,9 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski
+sylius_installer:
+ resource: @SyliusInstallerBundle/Resources/config/routing.yml
+ | src/Sylius/Bundle/WebBundle/Resources/config/routing/frontend/main.yml | RIGHT | null | null | null | null | null | 1 | 6 | line | e98d8f6908b33a446b091083e85c04196920c21d | 14b598c85e0114bcb962df86f98bb85a90a9a408 | MEMBER | 2013-05-20T13:20:17 | 2013-05-24T14:39:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/58#discussion_r4296642 | false | null | [] | [
"SyliusWebBundle"
] | null |
4,296,649 | 5,628,962 | null | 2,717,549 | 614,970 | null | Can we change it to just `/installer`?
| @@ -0,0 +1,16 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+if (!is_dir(__DIR__.'/../vendor')) {
+ exec('composer.phar install --d... | web/install.php | RIGHT | null | null | null | null | null | 1 | 16 | line | e98d8f6908b33a446b091083e85c04196920c21d | 14b598c85e0114bcb962df86f98bb85a90a9a408 | MEMBER | 2013-05-20T13:20:37 | 2013-05-24T14:39:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/58#discussion_r4296649 | false | null | [] | [
"/installer"
] | null |
4,297,711 | 5,628,962 | null | 2,717,549 | 208,957 | null | Thats how flow bundle works, but I [added an alias route](https://github.com/Sylius/SyliusInstallerBundle/pull/4).
| @@ -0,0 +1,16 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+if (!is_dir(__DIR__.'/../vendor')) {
+ exec('composer.phar install --d... | web/install.php | RIGHT | null | null | null | null | null | 1 | 16 | line | e98d8f6908b33a446b091083e85c04196920c21d | 14b598c85e0114bcb962df86f98bb85a90a9a408 | CONTRIBUTOR | 2013-05-20T14:21:47 | 2013-05-24T14:39:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/58#discussion_r4297711 | false | null | [] | [] | null |
4,297,742 | 5,628,962 | null | 2,717,549 | 208,957 | null | You are absolutely right, nice catch!
| @@ -1,6 +1,9 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski
+sylius_installer:
+ resource: @SyliusInstallerBundle/Resources/config/routing.yml
+ | src/Sylius/Bundle/WebBundle/Resources/config/routing/frontend/main.yml | RIGHT | null | null | null | null | null | 1 | 6 | line | e98d8f6908b33a446b091083e85c04196920c21d | 14b598c85e0114bcb962df86f98bb85a90a9a408 | CONTRIBUTOR | 2013-05-20T14:23:00 | 2013-05-24T14:39:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/58#discussion_r4297742 | false | null | [] | [] | null |
4,296,291 | 5,799,734 | null | 2,717,549 | 614,970 | null | We loose default sorting by removing this, don't we?
| @@ -10,8 +10,6 @@ sylius_backend_order_index:
template: SyliusWebBundle:Backend/Order:index.html.twig
method: createFilterPaginator
arguments: [$criteria, $sorting]
- criteria: {}
- sorting: { updatedAt: desc } | src/Sylius/Bundle/WebBundle/Resources/config/routing/backend/order.yml | RIGHT | null | 14 | null | null | null | 5 | 5 | line | a1f6fb44aa63b9aeb473857cddd334210267c312 | 6017f0244f79c6cbe8bf9ce3503f64c0906a70a9 | MEMBER | 2013-05-20T12:54:52 | 2013-05-20T16:11:28 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/87#discussion_r4296291 | false | null | [] | [] | null |
4,296,461 | 5,799,734 | null | 2,717,549 | 1,921,950 | null | Yes we lose default sorting, but with those two lines is not possible to generate urls with `criteria` and `sorting` parameters in query string ;/
I think default sorting can be moved into `createFilterPaginator` method in repository class, what do you think?
| @@ -10,8 +10,6 @@ sylius_backend_order_index:
template: SyliusWebBundle:Backend/Order:index.html.twig
method: createFilterPaginator
arguments: [$criteria, $sorting]
- criteria: {}
- sorting: { updatedAt: desc } | src/Sylius/Bundle/WebBundle/Resources/config/routing/backend/order.yml | RIGHT | null | 14 | null | null | null | 5 | 5 | line | a1f6fb44aa63b9aeb473857cddd334210267c312 | 6017f0244f79c6cbe8bf9ce3503f64c0906a70a9 | CONTRIBUTOR | 2013-05-20T13:06:07 | 2013-05-20T16:11:28 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/87#discussion_r4296461 | false | null | [] | [
"criteria",
"sorting",
"createFilterPaginator"
] | null |
4,299,717 | 5,799,734 | null | 2,717,549 | 614,970 | null | Ah this is problematic indeed, I didn't thought about that... Yes, let's move it to repository. I'll look into this problem. Thanks!
| @@ -10,8 +10,6 @@ sylius_backend_order_index:
template: SyliusWebBundle:Backend/Order:index.html.twig
method: createFilterPaginator
arguments: [$criteria, $sorting]
- criteria: {}
- sorting: { updatedAt: desc } | src/Sylius/Bundle/WebBundle/Resources/config/routing/backend/order.yml | RIGHT | null | 14 | null | null | null | 5 | 5 | line | a1f6fb44aa63b9aeb473857cddd334210267c312 | 6017f0244f79c6cbe8bf9ce3503f64c0906a70a9 | MEMBER | 2013-05-20T16:03:48 | 2013-05-20T16:11:28 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/87#discussion_r4299717 | false | null | [] | [] | null |
4,311,399 | 5,821,227 | null | 2,717,549 | 614,970 | null | :+1:
| @@ -78,17 +78,20 @@ liip_doctrine_cache:
knp_gaufrette:
adapters:
- variant_image:
+ sylius_image: | app/config/config.yml | RIGHT | null | 81 | null | null | null | 5 | 5 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | MEMBER | 2013-05-21T06:35:05 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311399 | false | null | [] | [] | null |
4,311,434 | 5,821,227 | null | 2,717,549 | 67,402 | null | Missing license note.
| @@ -0,0 +1,31 @@
+<?php
+
+namespace Sylius\Bundle\CoreBundle\Form\Type; | src/Sylius/Bundle/CoreBundle/Form/Type/TaxonType.php | RIGHT | null | 3 | null | null | null | 3 | 3 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:38:10 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311434 | false | null | [] | [] | null |
4,311,436 | 5,821,227 | null | 2,717,549 | 67,402 | null | Missing license note.
| @@ -0,0 +1,91 @@
+<?php
+
+namespace Sylius\Bundle\CoreBundle\Entity; | src/Sylius/Bundle/CoreBundle/Entity/Taxonomy.php | RIGHT | null | 3 | null | null | null | 3 | 3 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:38:16 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311436 | false | null | [] | [] | null |
4,311,441 | 5,821,227 | null | 2,717,549 | 67,402 | null | Missing license note.
| @@ -0,0 +1,89 @@
+<?php
+
+namespace Sylius\Bundle\CoreBundle\Entity; | src/Sylius/Bundle/CoreBundle/Entity/Taxon.php | RIGHT | null | 3 | null | null | null | 3 | 3 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:38:24 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311441 | false | null | [] | [] | null |
4,311,443 | 5,821,227 | null | 2,717,549 | 67,402 | null | Missing license note.
| @@ -0,0 +1,31 @@
+<?php
+
+namespace Sylius\Bundle\CoreBundle\Form\Type; | src/Sylius/Bundle/CoreBundle/Form/Type/TaxonomyType.php | RIGHT | null | 3 | null | null | null | 3 | 3 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:38:33 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311443 | false | null | [] | [] | null |
4,311,447 | 5,821,227 | null | 2,717,549 | 67,402 | null | Please revert this.
| @@ -29,9 +29,13 @@ public function upload(ImageInterface $image)
throw new \InvalidArgumentException('The given image has no file attached.');
}
+ if (null !== $image->getPath()) {
+ $this->remove($image->getPath());
+ }
+
do {
$hash = md5(uniqid(mt... | src/Sylius/Bundle/CoreBundle/Uploader/ImageUploader.php | RIGHT | null | null | null | null | null | 1 | 11 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:39:07 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311447 | false | null | [] | [] | null |
4,311,451 | 5,821,227 | null | 2,717,549 | 67,402 | null | Please revert this.
| @@ -1,76 +1,76 @@
-# This file is part of the Sylius package.
-# (c) Paweł Jędrzejewski | src/Sylius/Bundle/WebBundle/Resources/translations/menu.pl.yml | RIGHT | null | null | null | null | null | 1 | 2 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:39:32 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311451 | false | null | [] | [] | null |
4,311,467 | 5,821,227 | null | 2,717,549 | 67,402 | null | I would vote to revert this sort change as it can only lead to problems while merging.
If you want this you should create new PR and sort **all** translation file, not only polish one.
| @@ -1,76 +1,76 @@
-# This file is part of the Sylius package.
-# (c) Paweł Jędrzejewski
-
sylius:
- frontend:
- menu:
- main:
- login: Zaloguj
- logout: Wyloguj
- register: Zarejestruj
- administration: Administracja
- cart... | src/Sylius/Bundle/WebBundle/Resources/translations/menu.pl.yml | RIGHT | null | null | null | null | null | 1 | 65 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:41:09 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311467 | false | null | [] | [] | null |
4,311,477 | 5,821,227 | null | 2,717,549 | 67,402 | null | `style=""` should be removed and code added to css file.
| @@ -31,6 +32,17 @@
{{ taxon.name }}
</td>
<td>
+ {% if taxon.path|length > 0 %}
+ <div data-toggle="modal-gallery" data-target="#modal-gallery">
+ <a href="{{ taxon.path }}" title="{{ taxon.name }}" class="thumbnail" style="width: 50px; height: 40px;"> | src/Sylius/Bundle/WebBundle/Resources/views/Backend/Taxon/macros.html.twig | RIGHT | null | null | null | null | null | 1 | 14 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:41:55 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311477 | false | null | [] | [
"style=\"\""
] | null |
4,311,521 | 5,821,227 | null | 2,717,549 | 67,402 | null | This `if` can be merged with `elseif` below, and probably as replacement for `else` line above.
| @@ -28,16 +30,34 @@ public function __construct(ImageUploaderInterface $uploader)
public function upload(GenericEvent $event)
{
$subject = $event->getSubject();
- if (!$subject instanceof CustomizableProductInterface && !$subject instanceof VariantInterface){
- throw new \InvalidArg... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 39 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 129e26d24ff405ed120a8bc2fc838fbada521724 | CONTRIBUTOR | 2013-05-21T06:47:22 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4311521 | false | null | [] | [
"if",
"elseif",
"else"
] | null |
4,333,760 | 5,821,227 | null | 2,717,549 | 67,402 | null | ``` php
} elseif (null === $subject->getId() || (($subject instanceof TaxonInterface || $subject instanceof TaxonomyInterface) && $subject->hasFile())) {
$this->uploader->upload($subject);
}
```
| @@ -28,16 +30,33 @@ public function __construct(ImageUploaderInterface $uploader)
public function upload(GenericEvent $event)
{
$subject = $event->getSubject();
- if (!$subject instanceof CustomizableProductInterface && !$subject instanceof VariantInterface){
- throw new \InvalidArg... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 37 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 553eea88539ffd170228e12793e60beabf3a95f3 | CONTRIBUTOR | 2013-05-22T08:22:18 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4333760 | false | null | [
"} elseif (null === $subject->getId() || (($subject instanceof TaxonInterface || $subject instanceof TaxonomyInterface) && $subject->hasFile())) {\n $this->uploader->upload($subject); \n}\n"
] | [] | null |
4,333,775 | 5,821,227 | null | 2,717,549 | 67,402 | null | This should be reverted.
| @@ -29,11 +29,11 @@ function it_is_initializable()
}
/**
- * @param Symfony\Component\EventDispatcher\GenericEvent $event
- * @param Sylius\Bundle\CoreBundle\Entity\Variant $variant
- * @param Sylius\Bundle\AssortmentBundle\Model\CustomizableProductIn... | src/Sylius/Bundle/CoreBundle/spec/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 13 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 553eea88539ffd170228e12793e60beabf3a95f3 | CONTRIBUTOR | 2013-05-22T08:23:14 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4333775 | false | null | [] | [] | null |
4,333,795 | 5,821,227 | null | 2,717,549 | 67,402 | null | What about `thumbnail-small` ?
``` css
.thumbnail.thumbnail-small {
```
| @@ -92,4 +92,9 @@ body.signin {
}
input[type="date"] {
width: 120px;
+}
+
+.thumbnail.small-image { | src/Sylius/Bundle/WebBundle/Resources/assets/css/backend.css | RIGHT | null | null | null | null | null | 1 | 6 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 553eea88539ffd170228e12793e60beabf3a95f3 | CONTRIBUTOR | 2013-05-22T08:24:39 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4333795 | false | null | [
".thumbnail.thumbnail-small {\n"
] | [
"thumbnail-small"
] | null |
4,333,889 | 5,821,227 | null | 2,717,549 | 614,970 | null | Actually, I think we could simply have 2 separate methods on this listener. One for products, one for taxons, this will simplify method complexity by removing all this conditions. `uploadProductImage` & `uploadTaxonImage`. This would involve simple change in listeners config. @Antek88 @stloyd
| @@ -28,16 +30,33 @@ public function __construct(ImageUploaderInterface $uploader)
public function upload(GenericEvent $event)
{
$subject = $event->getSubject();
- if (!$subject instanceof CustomizableProductInterface && !$subject instanceof VariantInterface){
- throw new \InvalidArg... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 37 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 553eea88539ffd170228e12793e60beabf3a95f3 | MEMBER | 2013-05-22T08:32:34 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4333889 | false | null | [] | [
"uploadProductImage",
"uploadTaxonImage"
] | null |
4,333,952 | 5,821,227 | null | 2,717,549 | 67,402 | null | @pjedrzejewski TBH. I didn't check code in such details =) Just looked at how it looks etc. =)
| @@ -28,16 +30,33 @@ public function __construct(ImageUploaderInterface $uploader)
public function upload(GenericEvent $event)
{
$subject = $event->getSubject();
- if (!$subject instanceof CustomizableProductInterface && !$subject instanceof VariantInterface){
- throw new \InvalidArg... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 37 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 553eea88539ffd170228e12793e60beabf3a95f3 | CONTRIBUTOR | 2013-05-22T08:37:05 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4333952 | false | null | [] | [] | null |
4,333,976 | 5,821,227 | null | 2,717,549 | 1,921,950 | null | @pjedrzejewski maybe this is a good time to create SyliusFileUploader? Universal tool that handle file uploading with doctrine entities?
| @@ -28,16 +30,33 @@ public function __construct(ImageUploaderInterface $uploader)
public function upload(GenericEvent $event)
{
$subject = $event->getSubject();
- if (!$subject instanceof CustomizableProductInterface && !$subject instanceof VariantInterface){
- throw new \InvalidArg... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 37 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 553eea88539ffd170228e12793e60beabf3a95f3 | CONTRIBUTOR | 2013-05-22T08:39:22 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4333976 | false | null | [] | [] | null |
4,349,291 | 5,821,227 | null | 2,717,549 | 67,402 | null | What if `root` is empty? (not sure it's possible =)) Or what if file is already uploaded in root?
| @@ -36,8 +40,36 @@ public function upload(GenericEvent $event)
foreach ($variant->getImages() as $image) {
if (null === $image->getId()) {
- $this->uploader->upload($image);
+ $this->uploaderProduct->upload($image);
}
}
}
+
+ public fun... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 61 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:19:46 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349291 | false | null | [] | [
"root"
] | null |
4,349,332 | 5,821,227 | null | 2,717,549 | 67,402 | null | All those `updated` & `created` should be removed in favor of [`TimestampableInterface`](https://github.com/Sylius/SyliusResourceBundle/blob/master/Model/TimestampableInterface.php).
| @@ -17,11 +17,6 @@
interface ImageInterface
{
public function getId();
- public function hasFile();
- public function getFile();
- public function setFile(SplFileInfo $file);
- public function getPath();
- public function setPath($path);
public function getCreatedAt();
public function se... | src/Sylius/Bundle/CoreBundle/Model/ImageInterface.php | RIGHT | null | null | null | null | null | 1 | 11 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:21:28 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349332 | false | null | [] | [
"updated",
"created",
"TimestampableInterface"
] | null |
4,349,354 | 5,821,227 | null | 2,717,549 | 67,402 | null | I don't see any real point for this split-up, as both interfaces contain almost same methods.
| @@ -0,0 +1,23 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\Model;
+
+use SplFileInfo;
+
+interfac... | src/Sylius/Bundle/CoreBundle/Model/ImageProductInterface.php | RIGHT | null | null | null | null | null | 1 | 16 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:22:20 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349354 | false | null | [] | [] | null |
4,349,379 | 5,821,227 | null | 2,717,549 | 67,402 | null | Seems like rebase gone in wrong way with those files, right?
| @@ -60,13 +60,6 @@ public function createFilterPaginator($criteria = array(), $sorting = array())
;
}
- if (empty($sorting['updatedAt'])) { | src/Sylius/Bundle/CoreBundle/Repository/OrderRepository.php | RIGHT | null | null | null | null | null | 1 | 13 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:23:18 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349379 | false | null | [] | [] | null |
4,349,384 | 5,821,227 | null | 2,717,549 | 67,402 | null | Indentation...
| @@ -37,3 +37,7 @@ sylius:
created_at_to: To
shipping_method:
zone: Strefa
+ taxonomy:
+ imageFile: Wybierz plik | src/Sylius/Bundle/CoreBundle/Resources/translations/messages.pl.yml | RIGHT | null | null | null | null | null | 1 | 5 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:23:44 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349384 | false | null | [] | [] | null |
4,349,420 | 5,821,227 | null | 2,717,549 | 67,402 | null | Duplicating content is bad idea.
| @@ -0,0 +1,63 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\Uploader;
+
+use Sylius\Bundle\CoreBun... | src/Sylius/Bundle/CoreBundle/Uploader/ImageTaxonUploader.php | RIGHT | null | null | null | null | null | 1 | 17 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:25:32 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349420 | false | null | [] | [] | null |
4,349,443 | 5,821,227 | null | 2,717,549 | 154,553 | null | `root` is always created:
``` php
$this->setRoot(new Taxon());
```
if file already exist uploader firstly remove file and upload new:
``` php
if (null !== $image->getImagePath()) {
$this->remove($image->getImagePath());
}
```
| @@ -36,8 +40,36 @@ public function upload(GenericEvent $event)
foreach ($variant->getImages() as $image) {
if (null === $image->getId()) {
- $this->uploader->upload($image);
+ $this->uploaderProduct->upload($image);
}
}
}
+
+ public fun... | src/Sylius/Bundle/CoreBundle/EventListener/ImageUploadListener.php | RIGHT | null | null | null | null | null | 1 | 61 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 4f6e561b623072155885f8440784fe067bb7be4b | CONTRIBUTOR | 2013-05-22T21:26:30 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4349443 | false | null | [
"$this->setRoot(new Taxon());\n",
"if (null !== $image->getImagePath()) {\n $this->remove($image->getImagePath());\n }\n"
] | [
"root"
] | null |
4,354,931 | 5,821,227 | null | 2,717,549 | 614,970 | null | Hmmm, why removing the typehint?
| @@ -23,12 +22,16 @@ public function __construct(Filesystem $filesystem)
$this->filesystem = $filesystem;
}
- public function upload(ImageInterface $image)
+ public function upload($image) | src/Sylius/Bundle/CoreBundle/Uploader/ImageUploader.php | RIGHT | null | null | null | null | null | 1 | 13 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 137bcd1972fd50e90c886208d8f7a1e079b145e4 | MEMBER | 2013-05-23T06:53:46 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4354931 | false | null | [] | [] | null |
4,355,896 | 5,821,227 | null | 2,717,549 | 67,402 | null | IMO you should add `hasPath()` as you already have `hasFile()` method, or at least use variable here to avoid twice `get*` call (same below).
| @@ -161,6 +161,9 @@ public function createTaxonomiesMenu(Request $request)
foreach ($taxonomies as $taxonomy) {
$child = $menu->addChild($taxonomy->getName(), $childOptions);
+ if ($taxonomy->getRoot()->getPath()) { | src/Sylius/Bundle/WebBundle/Menu/FrontendMenuBuilder.php | RIGHT | null | null | null | null | null | 1 | 4 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | e28695466da290bc3a29426f32657f518705c242 | CONTRIBUTOR | 2013-05-23T08:16:26 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4355896 | false | null | [] | [
"hasPath()",
"hasFile()",
"get*"
] | null |
4,483,930 | 5,821,227 | null | 2,717,549 | 614,970 | null | Do we need to re-define this if we add image only to taxon?
| @@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
+ xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ ... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Taxonomy.orm.xml | RIGHT | null | 21 | null | null | null | 21 | 21 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 0fd9ea9b7969b96af87dc3d6f0bbc42531bc727d | MEMBER | 2013-05-31T19:42:01 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4483930 | false | null | [] | [] | null |
4,483,942 | 5,821,227 | null | 2,717,549 | 614,970 | null | We should add this to the interface, agree?
| @@ -42,6 +46,11 @@ public function upload(ImageInterface $image)
);
}
+ public function remove($path) | src/Sylius/Bundle/CoreBundle/Uploader/ImageUploader.php | RIGHT | null | 49 | null | null | null | 25 | 25 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 0fd9ea9b7969b96af87dc3d6f0bbc42531bc727d | MEMBER | 2013-05-31T19:42:56 | 2013-05-31T20:37:35 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4483942 | false | null | [] | [] | null |
4,484,961 | 5,821,227 | null | 2,717,549 | 154,553 | null | We need this because in DefaultTaxonomy (Taxonomies bundle) class we have:
``` php
$this->setRoot(new DefaultTaxon());
```
and after remove Taxonomy mapping from core bundle i have error when creating new taxonomy:
```
[Doctrine\ORM\ORMException] ... | @@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
+ xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ ... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Taxonomy.orm.xml | RIGHT | null | 21 | null | null | null | 21 | 21 | line | f27c0c68a3514abf373ba72f50f958d5ac5490a2 | 0fd9ea9b7969b96af87dc3d6f0bbc42531bc727d | CONTRIBUTOR | 2013-05-31T20:38:56 | 2013-05-31T20:38:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/92#discussion_r4484961 | false | null | [
"$this->setRoot(new DefaultTaxon());\n",
"[Doctrine\\ORM\\ORMException] \n Found entity of type Sylius\\Bundle\\TaxonomiesBundle\\Entity\\DefaultTaxon on association Sylius\\Bundle\\TaxonomiesBundle\\... | [] | null |
4,322,982 | 5,841,047 | null | 2,717,549 | 67,402 | null | It's not `mixed` it's `\Symfony\Component\HttpFoundation\Response`.
| @@ -28,8 +28,45 @@ public function filterFormAction(Request $request)
));
}
+ /**
+ * @param Request $request
+ * @param $id
+ * @return mixed | src/Sylius/Bundle/CoreBundle/Controller/OrderController.php | RIGHT | null | null | null | null | null | 1 | 7 | line | 5e5379352766a394a713b7fa69a096b89a929c61 | f664e70b3d57b6aacecd5a3d6a7f2cfa75a42300 | CONTRIBUTOR | 2013-05-21T18:18:15 | 2013-05-23T19:40:54 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/96#discussion_r4322982 | false | null | [] | [
"mixed",
"\\Symfony\\Component\\HttpFoundation\\Response"
] | null |
4,323,005 | 5,841,047 | null | 2,717,549 | 67,402 | null | `$user` should be probably instance of `UserInterface`.
| @@ -18,6 +18,29 @@
class OrderRepository extends EntityRepository
{
/**
+ * Create user orders paginator.
+ *
+ * @param $user
+ * @param array $sorting
+ *
+ * @return PagerfantaInterface
+ */
+ public function createByUserPaginator($user, array $sorting = array()) | src/Sylius/Bundle/CoreBundle/Repository/OrderRepository.php | RIGHT | null | null | null | null | null | 1 | 11 | line | 5e5379352766a394a713b7fa69a096b89a929c61 | f664e70b3d57b6aacecd5a3d6a7f2cfa75a42300 | CONTRIBUTOR | 2013-05-21T18:19:05 | 2013-05-23T19:40:54 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/96#discussion_r4323005 | false | null | [] | [
"$user",
"UserInterface"
] | null |
4,323,037 | 5,841,047 | null | 2,717,549 | 67,402 | null | IMO it's not good idea to involve different controller here.
| @@ -28,8 +28,45 @@ public function filterFormAction(Request $request)
));
}
+ /**
+ * @param Request $request
+ * @param $id
+ * @return mixed
+ */
+ public function indexByUserAction(Request $request, $id)
+ {
+ $config = $this->getConfiguration();
+ $sorting = $c... | src/Sylius/Bundle/CoreBundle/Controller/OrderController.php | RIGHT | null | null | null | null | null | 1 | 15 | line | 5e5379352766a394a713b7fa69a096b89a929c61 | f664e70b3d57b6aacecd5a3d6a7f2cfa75a42300 | CONTRIBUTOR | 2013-05-21T18:20:13 | 2013-05-23T19:40:54 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/96#discussion_r4323037 | false | null | [] | [] | null |
4,323,281 | 5,841,047 | null | 2,717,549 | 1,921,950 | null | Actually I agree with you but I wanted it to be consistent with https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/CoreBundle/Controller/ProductController.php#L35
I can of course change it to receive user directly from entity repository.
| @@ -28,8 +28,45 @@ public function filterFormAction(Request $request)
));
}
+ /**
+ * @param Request $request
+ * @param $id
+ * @return mixed
+ */
+ public function indexByUserAction(Request $request, $id)
+ {
+ $config = $this->getConfiguration();
+ $sorting = $c... | src/Sylius/Bundle/CoreBundle/Controller/OrderController.php | RIGHT | null | null | null | null | null | 1 | 15 | line | 5e5379352766a394a713b7fa69a096b89a929c61 | f664e70b3d57b6aacecd5a3d6a7f2cfa75a42300 | CONTRIBUTOR | 2013-05-21T18:31:40 | 2013-05-23T19:40:54 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/96#discussion_r4323281 | false | null | [] | [] | null |
4,326,607 | 5,841,047 | null | 2,717,549 | 614,970 | null | Yes, we should change it in both places. That's my bad. :panda_face:
| @@ -28,8 +28,45 @@ public function filterFormAction(Request $request)
));
}
+ /**
+ * @param Request $request
+ * @param $id
+ * @return mixed
+ */
+ public function indexByUserAction(Request $request, $id)
+ {
+ $config = $this->getConfiguration();
+ $sorting = $c... | src/Sylius/Bundle/CoreBundle/Controller/OrderController.php | RIGHT | null | null | null | null | null | 1 | 15 | line | 5e5379352766a394a713b7fa69a096b89a929c61 | f664e70b3d57b6aacecd5a3d6a7f2cfa75a42300 | MEMBER | 2013-05-21T20:58:26 | 2013-05-23T19:40:54 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/96#discussion_r4326607 | false | null | [] | [] | null |
4,333,318 | 5,846,808 | null | 2,717,549 | 702,928 | null | This is not good, assets aren't always available at this URL, we must leave it as it was (with CssRewrite or CssEmbed filters, or whatever).
| @@ -67,7 +67,7 @@
display: none;
}
.modal-loading .modal-image {
- background: url(../img/spinner.gif) center no-repeat;
+ background: url(/assets/img/spinner.gif) center no-repeat; | src/Sylius/Bundle/WebBundle/Resources/assets/css/bootstrap-image-gallery.css | RIGHT | null | 70 | null | null | null | 5 | 5 | line | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | CONTRIBUTOR | 2013-05-22T07:33:24 | 2013-05-22T07:33:24 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/97#discussion_r4333318 | false | null | [] | [] | null |
4,333,743 | 5,846,808 | null | 2,717,549 | 614,970 | null | Ah I missed that change, I thought it was update. Yes, we should leave the paths like that and use csswrite, which should already be the case, what was the problem @Antek88?
| @@ -67,7 +67,7 @@
display: none;
}
.modal-loading .modal-image {
- background: url(../img/spinner.gif) center no-repeat;
+ background: url(/assets/img/spinner.gif) center no-repeat; | src/Sylius/Bundle/WebBundle/Resources/assets/css/bootstrap-image-gallery.css | RIGHT | null | 70 | null | null | null | 5 | 5 | line | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | MEMBER | 2013-05-22T08:19:44 | 2013-05-22T08:19:44 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/97#discussion_r4333743 | false | null | [] | [] | null |
4,333,990 | 5,846,808 | null | 2,717,549 | 154,553 | null | @pjedrzejewski - prod/dev env after dump assetic and install assets i have 404 errors (file path like Resources/assets/img/...) - cssrewrite not working properly
| @@ -67,7 +67,7 @@
display: none;
}
.modal-loading .modal-image {
- background: url(../img/spinner.gif) center no-repeat;
+ background: url(/assets/img/spinner.gif) center no-repeat; | src/Sylius/Bundle/WebBundle/Resources/assets/css/bootstrap-image-gallery.css | RIGHT | null | 70 | null | null | null | 5 | 5 | line | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | CONTRIBUTOR | 2013-05-22T08:41:06 | 2013-05-22T08:41:06 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/97#discussion_r4333990 | false | null | [] | [] | null |
4,334,340 | 5,846,808 | null | 2,717,549 | 702,928 | null | We should use CssEmbed for those small images.
| @@ -67,7 +67,7 @@
display: none;
}
.modal-loading .modal-image {
- background: url(../img/spinner.gif) center no-repeat;
+ background: url(/assets/img/spinner.gif) center no-repeat; | src/Sylius/Bundle/WebBundle/Resources/assets/css/bootstrap-image-gallery.css | RIGHT | null | 70 | null | null | null | 5 | 5 | line | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | f4c4523e83d64eef3e1aa614b78862ecf7fbc06e | CONTRIBUTOR | 2013-05-22T09:09:21 | 2013-05-22T09:09:21 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/97#discussion_r4334340 | false | null | [] | [] | null |
4,398,263 | 5,871,902 | null | 2,717,549 | 702,928 | null | Typo: `confi_rm_ation`
| @@ -0,0 +1,13 @@
+{% from 'SyliusWebBundle:Frontend/Macros:actions.html.twig' import update %}
+
+<h4>{{ 'sylius.form.frontend.password.title'|trans }}</h4>
+
+<form action="{{ path('fos_user_change_password') }}" {{ form_enctype(form) }} method="POST" class="form-horizontal">
+ <fieldset>
+ {{ form_row(form.... | src/Sylius/Bundle/WebBundle/Resources/views/Frontend/Account/_password.html.twig | RIGHT | null | null | null | null | null | 1 | 9 | line | 6a4a23d21f9f4a7c9feede7dacb1b2e8617a2584 | 8249fa7f550a5a3505f8794fceedacb7d3fad74e | CONTRIBUTOR | 2013-05-27T09:42:46 | 2013-06-01T11:07:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/99#discussion_r4398263 | false | null | [] | [
"confi_rm_ation"
] | null |
4,398,564 | 5,871,902 | null | 2,717,549 | 3,691,804 | null | thanks ;)
| @@ -0,0 +1,13 @@
+{% from 'SyliusWebBundle:Frontend/Macros:actions.html.twig' import update %}
+
+<h4>{{ 'sylius.form.frontend.password.title'|trans }}</h4>
+
+<form action="{{ path('fos_user_change_password') }}" {{ form_enctype(form) }} method="POST" class="form-horizontal">
+ <fieldset>
+ {{ form_row(form.... | src/Sylius/Bundle/WebBundle/Resources/views/Frontend/Account/_password.html.twig | RIGHT | null | null | null | null | null | 1 | 9 | line | 6a4a23d21f9f4a7c9feede7dacb1b2e8617a2584 | 8249fa7f550a5a3505f8794fceedacb7d3fad74e | CONTRIBUTOR | 2013-05-27T10:15:18 | 2013-06-01T11:07:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/99#discussion_r4398564 | false | null | [] | [] | null |
4,422,701 | 5,871,902 | null | 2,717,549 | 67,402 | null | What about `form_create_button()` & `form_update_button()` ?
| @@ -0,0 +1,13 @@
+{% macro create() %} | src/Sylius/Bundle/WebBundle/Resources/views/Frontend/Macros/actions.html.twig | RIGHT | null | 1 | null | null | null | 1 | 1 | line | 6a4a23d21f9f4a7c9feede7dacb1b2e8617a2584 | 77d6b2e7518955c2c2a3085c20555f94d1e15d73 | CONTRIBUTOR | 2013-05-28T21:04:23 | 2013-06-01T11:07:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/99#discussion_r4422701 | false | null | [] | [
"form_create_button()",
"form_update_button()"
] | null |
4,422,787 | 5,871,902 | null | 2,717,549 | 3,691,804 | null | Would be better for sure. We should change it in the backend to be consistent (it comes from here).
| @@ -0,0 +1,13 @@
+{% macro create() %} | src/Sylius/Bundle/WebBundle/Resources/views/Frontend/Macros/actions.html.twig | RIGHT | null | 1 | null | null | null | 1 | 1 | line | 6a4a23d21f9f4a7c9feede7dacb1b2e8617a2584 | 77d6b2e7518955c2c2a3085c20555f94d1e15d73 | CONTRIBUTOR | 2013-05-28T21:08:11 | 2013-06-01T11:07:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/99#discussion_r4422787 | false | null | [] | [] | null |
4,422,851 | 5,871,902 | null | 2,717,549 | 67,402 | null | If it's there (didn't check) and looks similar/identical, it probably should be moved from there to upper level and reused here.
| @@ -0,0 +1,13 @@
+{% macro create() %} | src/Sylius/Bundle/WebBundle/Resources/views/Frontend/Macros/actions.html.twig | RIGHT | null | 1 | null | null | null | 1 | 1 | line | 6a4a23d21f9f4a7c9feede7dacb1b2e8617a2584 | 77d6b2e7518955c2c2a3085c20555f94d1e15d73 | CONTRIBUTOR | 2013-05-28T21:10:54 | 2013-06-01T11:07:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/99#discussion_r4422851 | false | null | [] | [] | null |
4,422,955 | 5,871,902 | null | 2,717,549 | 3,691,804 | null | This stuff is defined in the directory Macros. I'll move it to upper level if Pawel agrees too ;)
| @@ -0,0 +1,13 @@
+{% macro create() %} | src/Sylius/Bundle/WebBundle/Resources/views/Frontend/Macros/actions.html.twig | RIGHT | null | 1 | null | null | null | 1 | 1 | line | 6a4a23d21f9f4a7c9feede7dacb1b2e8617a2584 | 77d6b2e7518955c2c2a3085c20555f94d1e15d73 | CONTRIBUTOR | 2013-05-28T21:15:01 | 2013-06-01T11:07:56 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/99#discussion_r4422955 | false | null | [] | [] | null |
4,370,149 | 5,896,930 | null | 2,717,549 | 67,402 | null | Please add `use` and not call full FQCN.
Also IMO this should be **must have** for user, and should not be deletable (your `null` here).
| @@ -34,4 +38,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(\Sylius\Bundle\AddressingBu... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 27 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 9f5a9d87aadfd3bd396fdd609398b927d52af8eb | CONTRIBUTOR | 2013-05-23T20:56:29 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370149 | false | null | [] | [
"use",
"null"
] | null |
4,370,178 | 5,896,930 | null | 2,717,549 | 67,402 | null | Typo: `Addresse` => `Address`
| @@ -34,4 +38,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(\Sylius\Bundle\AddressingBu... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 73 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 9f5a9d87aadfd3bd396fdd609398b927d52af8eb | CONTRIBUTOR | 2013-05-23T20:57:40 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370178 | false | null | [] | [
"Addresse",
"Address"
] | null |
4,370,203 | 5,896,930 | null | 2,717,549 | 67,402 | null | This should always return address, so I would do:
``` php
return $this->shippingAddress ?: $this->billingAddress;
```
| @@ -34,4 +38,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(\Sylius\Bundle\AddressingBu... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | 99 | null | null | null | 1 | 64 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 9f5a9d87aadfd3bd396fdd609398b927d52af8eb | CONTRIBUTOR | 2013-05-23T20:58:44 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370203 | false | null | [
"return $this->shippingAddress ?: $this->billingAddress; \n"
] | [] | null |
4,370,259 | 5,896,930 | null | 2,717,549 | 702,928 | null | This is the _default_ billing address, so it's not a must have. And addresses that users own are templates, so there is no problem if a user has no template, he will just manually enter a new address during his next order.
| @@ -34,4 +38,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(\Sylius\Bundle\AddressingBu... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 27 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 9f5a9d87aadfd3bd396fdd609398b927d52af8eb | CONTRIBUTOR | 2013-05-23T21:00:56 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370259 | false | null | [] | [] | null |
4,370,482 | 5,896,930 | null | 2,717,549 | 67,402 | null | In mean of "must have", I have in mind, that user should not be allowed to remove his default (billing) address (only if he removes his account), he can edit etc. but deleting it should be prohibited.
It's more clear now? =)
| @@ -34,4 +38,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(\Sylius\Bundle\AddressingBu... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 27 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 9f5a9d87aadfd3bd396fdd609398b927d52af8eb | CONTRIBUTOR | 2013-05-23T21:09:23 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370482 | false | null | [] | [] | null |
4,370,587 | 5,896,930 | null | 2,717,549 | 67,402 | null | `@param` should also use short version not FQCN.
| @@ -34,4 +39,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 32 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 65a6313c67baba833af9b81a52fa24b17830b171 | CONTRIBUTOR | 2013-05-23T21:13:59 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370587 | false | null | [] | [
"@param"
] | null |
4,370,624 | 5,896,930 | null | 2,717,549 | 67,402 | null | IMO there should be a check to prevent adding billing or shipping adresses here.
| @@ -34,4 +39,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(AddressInterface $billingAd... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 83 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 65a6313c67baba833af9b81a52fa24b17830b171 | CONTRIBUTOR | 2013-05-23T21:15:42 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370624 | false | null | [] | [] | null |
4,370,925 | 5,896,930 | null | 2,717,549 | 614,970 | null | `if (!$this->addresses->contains($address) {`should be good!
| @@ -34,4 +39,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(AddressInterface $billingAd... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 83 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 65a6313c67baba833af9b81a52fa24b17830b171 | MEMBER | 2013-05-23T21:30:12 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4370925 | false | null | [] | [
"if (!$this->addresses->contains($address) {"
] | null |
4,376,484 | 5,896,930 | null | 2,717,549 | 67,402 | null | That too but I mean something like:
``` php
if (($address !== $this->billingAddress || $address !== $this->shippingAddress) && !$this->addresses->contains($address)) {
$this->addresses[] = $address;
}
```
| @@ -34,4 +39,83 @@ public function getOrders()
{
return $this->orders;
}
+
+ /**
+ * Set billingAddress
+ *
+ * @param \Sylius\Bundle\AddressingBundle\Model\AddressInterface $billingAddress
+ * @return User
+ */
+ public function setBillingAddress(AddressInterface $billingAd... | src/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 83 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 65a6313c67baba833af9b81a52fa24b17830b171 | CONTRIBUTOR | 2013-05-24T07:07:52 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4376484 | false | null | [
"if (($address !== $this->billingAddress || $address !== $this->shippingAddress) && !$this->addresses->contains($address)) {\n $this->addresses[] = $address;\n}\n"
] | [] | null |
4,399,635 | 5,896,930 | null | 2,717,549 | 614,970 | null | Definitely not "cart". :D
| @@ -0,0 +1,98 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace spec\Sylius\Bundle\CoreBundle\Entity;
+
+use Doctrine\Common\Co... | src/Sylius/Bundle/CoreBundle/spec/Sylius/Bundle/CoreBundle/Entity/User.php | RIGHT | null | null | null | null | null | 1 | 29 | line | cbacdca76d5586c83db9492cf14d30276e60b693 | 51dd5b6fad95c17905232f6ba0e0ba4f514c1ee4 | MEMBER | 2013-05-27T12:09:21 | 2013-05-27T12:17:59 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/101#discussion_r4399635 | false | null | [] | [] | null |
4,417,963 | 5,956,269 | null | 2,717,549 | 614,970 | null | Why?
| @@ -51,13 +51,17 @@ doctrine:
enabled: true
stof_doctrine_extensions:
- default_locale: %sylius.locale%
+ default_locale: en | app/config/config.yml | RIGHT | null | 54 | null | null | null | 5 | 5 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | MEMBER | 2013-05-28T17:22:29 | 2013-06-03T06:51:07 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r4417963 | false | null | [] | [] | null |
4,417,991 | 5,956,269 | null | 2,717,549 | 614,970 | null | I guess we have a problem here with `description` and `name` fields, right?
| @@ -3,13 +3,16 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
- http://doc... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Product.orm.xml | RIGHT | null | 15 | null | null | null | 15 | 15 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | MEMBER | 2013-05-28T17:23:36 | 2013-06-03T06:51:07 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r4417991 | false | null | [] | [
"description",
"name"
] | null |
4,428,211 | 5,956,269 | null | 2,717,549 | 208,957 | null | Yes, I added them in assortment bundle for now. Maybe they can stay there, that need to be tested.
| @@ -3,13 +3,16 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
- http://doc... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Product.orm.xml | RIGHT | null | 15 | null | null | null | 15 | 15 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | CONTRIBUTOR | 2013-05-29T05:28:32 | 2013-06-03T06:51:07 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r4428211 | false | null | [] | [] | null |
4,428,267 | 5,956,269 | null | 2,717,549 | 208,957 | null | Because of [this](https://github.com/l3pp4rd/DoctrineExtensions/blob/master/lib/Gedmo/Translatable/TranslatableListener.php#L441). It does not passes since $locale and $this->defaultLocale have same value, so it does not translate.
So, in order to work, you must pick default locale (eg English), and it loads translate... | @@ -51,13 +51,17 @@ doctrine:
enabled: true
stof_doctrine_extensions:
- default_locale: %sylius.locale%
+ default_locale: en | app/config/config.yml | RIGHT | null | 54 | null | null | null | 5 | 5 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | CONTRIBUTOR | 2013-05-29T05:36:41 | 2013-06-03T06:51:07 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r4428267 | false | null | [] | [] | null |
4,428,389 | 5,956,269 | null | 2,717,549 | 208,957 | null | I tested, [this](https://github.com/Sylius/SyliusAssortmentBundle/pull/79) works with master.
| @@ -3,13 +3,16 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
- http://doc... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Product.orm.xml | RIGHT | null | 15 | null | null | null | 15 | 15 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | CONTRIBUTOR | 2013-05-29T05:58:51 | 2013-06-03T06:51:07 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r4428389 | false | null | [] | [] | null |
5,449,184 | 5,956,269 | null | 2,717,549 | 26,156 | null | I tried to add this to assortment bundle, but the description and name fields do not appear in the non default languages.
I just added <gedmo:translatable/> to both fields, is there anything else to be done, for this to work?
| @@ -3,13 +3,16 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
- http://doc... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Product.orm.xml | RIGHT | null | 15 | null | null | null | 15 | 15 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | NONE | 2013-07-29T13:24:25 | 2013-07-29T13:24:25 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r5449184 | false | null | [] | [] | null |
5,523,751 | 5,956,269 | null | 2,717,549 | 26,156 | null | I was putting it in the wrong file. Product.orm.xml instead of CustomizableProduct.orm.xml.
Now it works.
| @@ -3,13 +3,16 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
- http://doc... | src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/Product.orm.xml | RIGHT | null | 15 | null | null | null | 15 | 15 | line | 9d0816b8a17f138308f7938fa27de729b183058a | 84bbe55fe236f5583ad4f8dcbb17d6de993686bb | NONE | 2013-08-01T07:20:22 | 2013-08-01T07:20:22 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/110#discussion_r5523751 | false | null | [] | [] | null |
4,409,544 | 5,958,831 | null | 2,717,549 | 67,402 | null | Copy&paste... it's not "shipment" listener...
| @@ -0,0 +1,59 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\EventListener;
+
+use Sylius\Bundle\Co... | src/Sylius/Bundle/CoreBundle/EventListener/OrderInventoryUnitsListener.php | RIGHT | null | null | null | null | null | 1 | 53 | line | cc5a44ebe8a0c680568e120eebbf5e3a59853c24 | 909a379d87bc7bf0266e9795d0f0dd143e0c83f4 | CONTRIBUTOR | 2013-05-28T09:55:21 | 2013-06-11T21:22:33 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/111#discussion_r4409544 | false | null | [] | [] | null |
4,409,547 | 5,958,831 | null | 2,717,549 | 67,402 | null | Wrong variable name.
| @@ -0,0 +1,59 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\EventListener;
+
+use Sylius\Bundle\Co... | src/Sylius/Bundle/CoreBundle/EventListener/OrderInventoryUnitsListener.php | RIGHT | null | null | null | null | null | 1 | 35 | line | cc5a44ebe8a0c680568e120eebbf5e3a59853c24 | 909a379d87bc7bf0266e9795d0f0dd143e0c83f4 | CONTRIBUTOR | 2013-05-28T09:56:04 | 2013-06-11T21:22:33 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/111#discussion_r4409547 | false | null | [] | [] | null |
4,409,550 | 5,958,831 | null | 2,717,549 | 67,402 | null | Wrong variable name.
| @@ -0,0 +1,65 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\EventListener;
+
+use Sylius\Bundle\Co... | src/Sylius/Bundle/CoreBundle/EventListener/OrderShipmentListener.php | RIGHT | null | null | null | null | null | 1 | 35 | line | cc5a44ebe8a0c680568e120eebbf5e3a59853c24 | 909a379d87bc7bf0266e9795d0f0dd143e0c83f4 | CONTRIBUTOR | 2013-05-28T09:56:23 | 2013-06-11T21:22:33 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/111#discussion_r4409550 | false | null | [] | [] | null |
4,409,806 | 5,958,831 | null | 2,717,549 | 614,970 | null | :)
| @@ -0,0 +1,65 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\EventListener;
+
+use Sylius\Bundle\Co... | src/Sylius/Bundle/CoreBundle/EventListener/OrderShipmentListener.php | RIGHT | null | null | null | null | null | 1 | 19 | line | cc5a44ebe8a0c680568e120eebbf5e3a59853c24 | 6337ee78411bb023ae886525be1d25b0a758daf7 | MEMBER | 2013-05-28T10:20:16 | 2013-06-11T21:22:33 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/111#discussion_r4409806 | false | null | [] | [] | null |
4,409,813 | 5,958,831 | null | 2,717,549 | 614,970 | null | Same here. :)
| @@ -0,0 +1,59 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Sylius\Bundle\CoreBundle\EventListener;
+
+use Sylius\Bundle\Co... | src/Sylius/Bundle/CoreBundle/EventListener/OrderInventoryUnitsListener.php | RIGHT | null | null | null | null | null | 1 | 19 | line | cc5a44ebe8a0c680568e120eebbf5e3a59853c24 | 6337ee78411bb023ae886525be1d25b0a758daf7 | MEMBER | 2013-05-28T10:20:49 | 2013-06-11T21:22:33 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/111#discussion_r4409813 | false | null | [] | [] | null |
4,494,585 | 6,067,600 | null | 2,717,549 | 208,957 | null | Konfiguracija atributa?
| @@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
+ <file source-language="en" datatype="plaintext" original="file.ext">
+ <body>
+ <trans-unit id="cd1ac84fcaa92336771b2f537b546f7c" resname="sylius.backend.menu.main.assortment">
+ ... | src/Sylius/Bundle/WebBundle/Resources/translations/menu.sr_Latin.xlf | RIGHT | null | 63 | null | null | null | 63 | 63 | line | 2795bcd283d1920380bd146c67acba4ba52d0415 | 2795bcd283d1920380bd146c67acba4ba52d0415 | CONTRIBUTOR | 2013-06-03T06:54:48 | 2013-06-03T06:54:48 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/124#discussion_r4494585 | false | null | [] | [] | null |
4,494,597 | 6,067,600 | null | 2,717,549 | 208,957 | null | Korisnici?
| @@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
+ <file source-language="en" datatype="plaintext" original="file.ext">
+ <body>
+ <trans-unit id="cd1ac84fcaa92336771b2f537b546f7c" resname="sylius.backend.menu.main.assortment">
+ ... | src/Sylius/Bundle/WebBundle/Resources/translations/menu.sr_Latin.xlf | RIGHT | null | 123 | null | null | null | 123 | 123 | line | 2795bcd283d1920380bd146c67acba4ba52d0415 | 2795bcd283d1920380bd146c67acba4ba52d0415 | CONTRIBUTOR | 2013-06-03T06:55:43 | 2013-06-03T06:55:43 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/124#discussion_r4494597 | false | null | [] | [] | null |
4,494,617 | 6,067,600 | null | 2,717,549 | 208,957 | null | Prijavite se/Prijavljivanje.
| @@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
+ <file source-language="en" datatype="plaintext" original="file.ext">
+ <body>
+ <trans-unit id="cd1ac84fcaa92336771b2f537b546f7c" resname="sylius.backend.menu.main.assortment">
+ ... | src/Sylius/Bundle/WebBundle/Resources/translations/menu.sr_Latin.xlf | RIGHT | null | 231 | null | null | null | 231 | 231 | line | 2795bcd283d1920380bd146c67acba4ba52d0415 | 2795bcd283d1920380bd146c67acba4ba52d0415 | CONTRIBUTOR | 2013-06-03T06:57:32 | 2013-06-03T06:57:32 | 0 | 0 | 0 | https://github.com/Sylius/Sylius/pull/124#discussion_r4494617 | false | null | [] | [] | null |
End of preview. Expand in Data Studio
AgenticReviewers: A Large-Scale Dataset of Agentic Code Review Interactions in the Wild
Description
No description provided in the original Zenodo record.
Authors
- Lin, Hong Yi — The University of Melbourne
- Liang, Mingzhao — The University of Melbourne
- Thongtanunam, Patanamon — The University of Melbourne
- Tantithamthavorn, Chakkrit — Monash University
Citation
@misc{zenodo23774223,
title = {AgenticReviewers: A Large-Scale Dataset of Agentic Code Review Interactions in the Wild},
author = {Lin, Hong Yi and Liang, Mingzhao and Thongtanunam, Patanamon and Tantithamthavorn, Chakkrit},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.23774223},
url = {https://zenodo.org/records/23774223}
}
Original Source
Repository: Zenodo
Publication Date: 2026-10-29
Version: Not specified
Original Publisher: Zenodo
Original License: cc-by-4.0
Provenance
This dataset was originally published on Zenodo.
The original authors and DOI are preserved above.
- Downloads last month
- 23