Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: doc path for moved repository #2621

Closed
wants to merge 1 commit into from

Conversation

jschwalmi
Copy link

Wrong DocPath means that the path or class cannot be downloaded.
Bildschirmfoto 2023-11-16 um 10 36 22
Bildschirmfoto 2023-11-16 um 10 37 08

@CLAassistant
Copy link

CLAassistant commented Nov 16, 2023

CLA assistant check
All committers have signed the CLA.

Copy link

Fails
🚫 The commit title `fix doc path` does not match our requirements. Please follow: www.conventionalcommits.org
Warnings
⚠️ The Pull Request doesn't contain any changes to the Upgrade file

@mitelg
Copy link
Contributor

mitelg commented Nov 16, 2023

hey @jschwalmi

thanks for your contribution! Good catch indeed 😁 👍

Please make sure, that you commit the changes with your GitHub user and sign the CLA with this user 🙂

The commit message should look like described here: https://github.com/shopware5/shopware/wiki/Contribute#commit-message

@@ -63,7 +63,7 @@ public function createInstanceFromNamedArguments($className, $arguments, $secure
$folders = Shopware()->Container()->getParameter('shopware.plugin_directories');

$folders[] = Shopware()->DocPath('engine_Shopware');
$folders[] = Shopware()->DocPath('vendor_shopware_shopware');
$folders[] = Shopware()->DocPath('vendor_shopware5_shopware');
Copy link
Contributor

@shyim shyim Nov 20, 2023

Choose a reason for hiding this comment

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

isn't the name computed by the composer package name, and that is still shopware/shopware 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

@shyim is right. @jschwalmi with your change, the path would look like this: /home/mt/www/5.7/vendor/shopware5/shopware/, but that path does not exist.

Could you explain, how the problem could be reproduced?

Copy link
Author

Choose a reason for hiding this comment

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

@mitelg @shyim
I discovered this problem because it was reported that the product stream with Peudo prices no longer worked. All products were displayed in the stream and not only the discounted products.
In the \Shopware_Controllers_Backend_ProductStream::loadPreviewAction the conditions could not be unserialized. vendor/shopware5/shopware/engine/Shopware/Controllers/Backend/ProductStream.php:99.
I think all product streams that have a condition are affected by this.

Copy link
Contributor

Choose a reason for hiding this comment

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

How did you installed Shopware? 🤔

Copy link
Author

Choose a reason for hiding this comment

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

@shyim I install Shopware over composer. Do you think that this is not the case in a ZIP installation?

Copy link
Contributor

Choose a reason for hiding this comment

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

composer create-project shopware/composer-project:@dev test
cd test
ls -la vendor/shopware/shopware

seems fine for me 🤔

Copy link
Author

Choose a reason for hiding this comment

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

I agree that it could work

@jschwalmi jschwalmi changed the title fix doc path fix: doc path for moved repository Nov 20, 2023
@@ -63,7 +63,7 @@ public function createInstanceFromNamedArguments($className, $arguments, $secure
$folders = Shopware()->Container()->getParameter('shopware.plugin_directories');

$folders[] = Shopware()->DocPath('engine_Shopware');
$folders[] = Shopware()->DocPath('vendor_shopware_shopware');
$folders[] = Shopware()->DocPath('vendor_shopware5_shopware');
Copy link
Contributor

Choose a reason for hiding this comment

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

@shyim is right. @jschwalmi with your change, the path would look like this: /home/mt/www/5.7/vendor/shopware5/shopware/, but that path does not exist.

Could you explain, how the problem could be reproduced?

@mitelg
Copy link
Contributor

mitelg commented Dec 1, 2023

hey @jschwalmi what is the status here? 😊

@jschwalmi
Copy link
Author

hey @jschwalmi what is the status here? 😊

The comment from @shyim is fine for me :)
#2621 (comment)

@mitelg
Copy link
Contributor

mitelg commented Dec 4, 2023

alright, then I will close your PR 🙂 👍

@mitelg mitelg closed this Dec 4, 2023
@mitelg mitelg added Declined and removed Incomplete labels Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants