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

Added prompt for php version for cs:wizard command #1594

Merged
merged 13 commits into from
Oct 9, 2023
Merged

Added prompt for php version for cs:wizard command #1594

merged 13 commits into from
Oct 9, 2023

Conversation

shubham-bansal96
Copy link
Contributor

@shubham-bansal96 shubham-bansal96 commented Sep 20, 2023

Motivation

Fixes # GL-1836

Proposed changes
Add a prompt to choose php version between two of them. Either 8.1 or 8.2

Alternatives considered

Testing steps
run command ./bin/acli cs:wizard and CLI should ask to choose PHP version. Once steps are completed then verify PHP_VERSION variable should get added to code studio UI.

  1. Follow the contribution guide to set up your development environment or download a pre-built acli.phar for this PR.
  2. Clear the kernel cache to pick up new and changed commands: ./bin/acli ckc
  3. (add specific steps for this pr)

@anavarre
Copy link
Contributor

Thanks for your contribution. Dane returns in mid-October. We'll look into finalizing and merging this then. Continue fixing tests and getting this as ready as can be in the interim!

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (553ff72) 91.76% compared to head (8f0be4a) 91.68%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1594      +/-   ##
============================================
- Coverage     91.76%   91.68%   -0.08%     
  Complexity     1809     1809              
============================================
  Files           124      124              
  Lines          6471     6485      +14     
============================================
+ Hits           5938     5946       +8     
- Misses          533      539       +6     
Files Coverage Δ
src/Command/CodeStudio/CodeStudioCiCdVariables.php 100.00% <100.00%> (ø)
src/Command/CodeStudio/CodeStudioWizardCommand.php 95.10% <100.00%> (+0.25%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shubham-bansal96 shubham-bansal96 changed the title WIP - added prompt for php version for cs:wizard command Added prompt for php version for cs:wizard command Sep 25, 2023
@shriacquia shriacquia merged commit 3926065 into acquia:main Oct 9, 2023
11 of 12 checks passed
@@ -46,6 +46,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
// But, we specifically need an API Token key-pair of Code Studio.
// So we reauthenticate to be sure we're using the provided credentials.
$this->reAuthenticate($cloudKey, $cloudSecret, $this->cloudCredentials->getBaseUri(), $this->cloudCredentials->getAccountsUri());

$phpVersions = [
'PHP_version_8.1' => "8.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Yuck. Did you pick these array keys because PHPCS was complaining or something?

@danepowell
Copy link
Contributor

Thanks, this mostly looks good. Just FYI, you could kill some of the mutants by improving the test cases.

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.

5 participants