Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Product now has condition attribute that is displayed on product detail page and is generated in google feed#7

Merged
TomasLudvik merged 4 commits into
masterfrom
tl-feed-condition
Jul 27, 2018
Merged

Product now has condition attribute that is displayed on product detail page and is generated in google feed#7
TomasLudvik merged 4 commits into
masterfrom
tl-feed-condition

Conversation

@TomasLudvik
Copy link
Copy Markdown
Member

@TomasLudvik TomasLudvik commented Jul 26, 2018

Q A
Description, reason for the PR ...
New feature Yes
BC breaks No
Fixes issues #4
Standards and tests pass Yes
Have you read and signed our License Agreement for contributions? Yes

Copy link
Copy Markdown
Contributor

@Miroslav-Stopka Miroslav-Stopka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @TomasLudvik ,
thank you for your contribution. Im ready for review :)


class GoogleFeedItemFactory extends BaseGoogleFeedItemFactory
{
public function __construct(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this constructor really needed in this class? I mean, there are no differences between parent constructor and this one.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not, I have removed it


Shopsys\ShopBundle\Model\:
resource: '../../Model/*/*{Facade,Factory}.php'
resource: '../../Model/**/*{Facade,Factory}.php'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, explain why two asterisks are better than one :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two asterisks mean that the depth of nesting can be of unspecified level and it is because of Model/Product/Feed/Google/GoogleFeedItemFactory

alias: Shopsys\ShopBundle\Model\Product\ProductDataFactory

Shopsys\ShopBundle\Model\Product\ProductDataFactory: ~

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you register this services into services_test? They are already registered in services.yml I think. And services_test.yml is loaded after services.yml so I dont see the pros of this change. Can you explain it to me?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because all services registered in services.yml are private and I need this one in tests.

@Miroslav-Stopka
Copy link
Copy Markdown
Contributor

Review and tests are done :) Please answer my questions. Thank you.

@TomasLudvik TomasLudvik merged commit e817235 into master Jul 27, 2018
@TomasLudvik TomasLudvik deleted the tl-feed-condition branch July 27, 2018 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants