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

UCT-687: Enhanced Magento 2 version resolved #747

Merged

Conversation

Iamwade
Copy link
Collaborator

@Iamwade Iamwade commented Nov 10, 2021

Description (*)
Enhanced Magento 2 version resolved.

Changed logic of Magento 2 version resolving.
Previously it looked at composer.json file. It logic is incorrect because composer.json contains current project version but not magento 2 version. More than that version property in composer.json is not required, so it can be absent.

image
image

Fixed Issues (if relevant)

  1. Fixes Incorrect display of Magento 2 version #687

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Copy link
Collaborator

@bohdan-harniuk bohdan-harniuk left a comment

Choose a reason for hiding this comment

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

Hello, @Iamwade!

Looks great! Thank you for your contribution!

Thank you!

public enum MagentoVersion {

ENTERPRISE_EDITION("magento/product-enterprise-edition", 1),
COMMUNITY_EDITION("magento/product-community-edition", 2);
Copy link
Contributor

@eduard13 eduard13 Nov 10, 2021

Choose a reason for hiding this comment

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

Are these composer packages? If yes - how is supposed to work with projects installed via GitHub?

Copy link
Collaborator

@bohdan-harniuk bohdan-harniuk Nov 10, 2021

Choose a reason for hiding this comment

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

@eduard13, it was not supported in the previous functional and is not supposed to be supported for now. We need correct version lookup for the UCT version auto-detection. You can create new issue for adding support of dev Magento version resolving, or I'll create issue for that later.

Thanks, Bohdan

Copy link
Collaborator

@andrewbess andrewbess left a comment

Choose a reason for hiding this comment

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

Hello @Iamwade
Thank you for your contribution here.
Great job

@eduard13 eduard13 merged commit b17d5ab into magento:4.2.0-develop Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect display of Magento 2 version
4 participants