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

feat(phpmyadmin): Add vip db phpmyadmin command #1526

Merged
merged 15 commits into from
Feb 1, 2024

Conversation

aswasif007
Copy link
Contributor

@aswasif007 aswasif007 commented Oct 9, 2023

Description

In this PR, we are adding a new command vip db phpmyadmin which generates a URL to phpmyadmin, and opens in the default browser.

Steps to Test

  1. Check out PR.
  2. Run npm run build
  3. Run ./dist/bin/vip-db-phpmyadmin.js @6721.production
  4. Verify that it opened a URL with /.wpvip/phpmyadmin/?token=... prefix in your browser.

@abdullah-kasim
Copy link
Contributor

Hope you don't mind, I made a tiny bit of change to make all our lives easier in the typescript land.

src/global.d.ts Outdated Show resolved Hide resolved
@abdullah-kasim
Copy link
Contributor

abdullah-kasim commented Oct 11, 2023

Types for graphql queries can be generated according to the instructions here: https://github.com/Automattic/vip-cli/blob/trunk/CONTRIBUTING.md#generating-the-types

@aswasif007
Copy link
Contributor Author

aswasif007 commented Oct 12, 2023

🔔 Note: Released with @next tag for testing: v2.36.0-dev.0 🔔

@aswasif007 aswasif007 changed the title feat(phpmyadmin): Add vip phpmyadmin command feat(phpmyadmin): Add vip db phpmyadmin command Nov 1, 2023
@sjinks sjinks force-pushed the trunk branch 2 times, most recently from ce8ac7d to 50cb74a Compare November 7, 2023 08:40
@aswasif007 aswasif007 force-pushed the feature/phpmyadmin-cmd branch from 8c8e829 to 485f43f Compare November 14, 2023 10:28
@aswasif007
Copy link
Contributor Author

aswasif007 commented Nov 14, 2023

🔔 Note: Released with @next tag for testing: v2.36.2-dev.0 🔔

@aswasif007 aswasif007 force-pushed the feature/phpmyadmin-cmd branch from 61db116 to 73cafbd Compare December 18, 2023 05:59
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

15.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@aswasif007
Copy link
Contributor Author

aswasif007 commented Dec 18, 2023

🔔 Note: Released with @next tag for closed beta: v2.37.0-dev.0 🔔

@aswasif007 aswasif007 force-pushed the feature/phpmyadmin-cmd branch from 73cafbd to 1a83716 Compare January 24, 2024 08:00
@aswasif007
Copy link
Contributor Author

🔔 Note: Released with @next tag for open beta: v2.38.0-dev.0 🔔

aswasif007 and others added 3 commits January 26, 2024 20:35
* Add step to enable pma

* Refactor for clarity

- make function name clearer
- add return types

* Fix and improve unit test

* Make function names even clearer

---------

Co-authored-by: Sarosh Aga <[email protected]>
* Add event tracking for PMA enable failures

* Refactor

* Bring back empty line

* Print progress steps properly on error scenarios

---------

Co-authored-by: Ahmed Sayeed Wasif <[email protected]>
@aswasif007 aswasif007 force-pushed the feature/phpmyadmin-cmd branch from 736a9ca to 0deb40d Compare January 26, 2024 14:36
@aswasif007
Copy link
Contributor Author

🔔 Note: Released with @next tag for open beta: v2.38.0-dev.1 🔔

Copy link

sonarqubecloud bot commented Feb 1, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

7.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@aswasif007 aswasif007 merged commit 867149f into trunk Feb 1, 2024
15 of 16 checks passed
@aswasif007 aswasif007 deleted the feature/phpmyadmin-cmd branch February 1, 2024 12:59
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.

3 participants