Skip to content

GL-3695: Add MySQL version prompt for cs:wizard. #1864

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bemarlan
Copy link
Contributor

@bemarlan bemarlan commented Apr 28, 2025

Please wait to merge & release until Code Studio team gives the ok.

Motivation
Addresses GL-3695

Proposed changes

Adds a prompt for MySQL version to Drupal projects.

Alternatives considered

N/A. This will become a required variable for all Drupal projects, so we should set it upon project setup.

Testing steps

  • Locally, run glab auth login --hostname=code.dev.cloudservices.acquia.io
  • Run export GITLAB_HOST=code.dev.cloudservices.acquia.io
  • Run ./bin/acli cs:wizard
  • Answer prompts, ensuring to select an application type of Drupal, until you see the prompt for MySQL version.
    prompt
  • Confirm the variable is added to the Code Studio project upon completion of cs:wizard.

@Copilot Copilot AI review requested due to automatic review settings April 28, 2025 17:15
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (4)
  • src/Command/CodeStudio/CodeStudioCiCdVariables.php: Language not supported
  • src/Command/CodeStudio/CodeStudioWizardCommand.php: Language not supported
  • tests/phpunit/src/Commands/CodeStudio/CodeStudioCiCdVariablesTest.php: Language not supported
  • tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php: Language not supported

Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.31%. Comparing base (fc5b6a4) to head (82fc835).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1864      +/-   ##
============================================
+ Coverage     92.29%   92.31%   +0.01%     
  Complexity     1779     1779              
============================================
  Files           121      121              
  Lines          6633     6648      +15     
============================================
+ Hits           6122     6137      +15     
  Misses          511      511              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

Try the dev build for this PR: https://acquia-cli.s3.amazonaws.com/build/pr/1864/acli.phar

curl -OL https://acquia-cli.s3.amazonaws.com/build/pr/1864/acli.phar
chmod +x acli.phar

'MYSQL_version_5.7' => "5.7",
'MYSQL_version_8.0' => "8.0",
];
$project = $this->io->choice('Select a MySQL version', array_values($mysqlVersions), "5.7");
Copy link
Contributor

Choose a reason for hiding this comment

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

Default version should be 8.0

Copy link
Contributor

Choose a reason for hiding this comment

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

@bemarlan Please address this comment. Rest everything looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has been updated

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.

4 participants