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

Use mage-os as vendor-name for composer info #48

Conversation

Vinai
Copy link
Contributor

@Vinai Vinai commented Oct 8, 2023

Description (*)

The ComposerInformation class is used to extract information about the current installation from the project root composer.json and composer.lock files, for example the Magento version. To find the relevant information, it looks at the package names, using a vendor name magento.
Without this change, the installed version is reported as "UNKNOWN" in the Magento admin when the mage-os/project-community-edition package is used. This change fixes the regex so it correctly identifies the installed version.

In future, it may be worth generalizing this so it is easier to switch the project vendor for other distributions based on Mage-OS.

Fixed Issues

Fixes issue #42.

Manual testing scenarios (*)

  1. Install Mage-OS 1.0.0 preview from preview-repo.mage-os.org
  2. Log into the admin
  3. Check the version information displayed in the footer

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 unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

The ComposerInformation class is used to extract information about the
current installation from the project root composer.json and
composer.lock files, for example the Magento version.
To find the relevant information, it looks at the package names, using a
vendor name magento.
Without this change, the installed version is reported as "UNKNOWN" in
the Magento admin when the mage-os/project-community-edition package is
used. This change fixes the regex so it correctly identifies the
installed version.

In future, it may be worth generalizing this so it is easier to switch
the project vendor for other distributions based on Mage-OS.

Fixes issue mage-os#42.
@Vinai Vinai requested a review from a team as a code owner October 8, 2023 18:06
@Vinai
Copy link
Contributor Author

Vinai commented Oct 8, 2023

Unit test failures are unrelated to PR

@Vinai
Copy link
Contributor Author

Vinai commented Oct 8, 2023

The coding standard violations are not related to changes in PR.

@Vinai Vinai merged commit 66a9194 into mage-os:2.4-develop Oct 8, 2023
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants