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

Update composer multidev-search-replace syntax #158

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

matt-bernhardt
Copy link
Member

@matt-bernhardt matt-bernhardt commented Sep 17, 2024

This updates the way a Composer command operates, making use of our actual domain name rather than the placeholder we used before we launched.

Developer

Stylesheets

  • Any theme or plugin whose stylesheets have changed has had its version
    string incremented.

Secrets

  • All new secrets have been added to Pantheon tiers
  • Relevant secrets have been updated in Github Actions
  • All new secrets documented in README
  • There are no secrets affected

Documentation

  • Project documentation has been updated
  • No documentation changes are needed

Accessibility

  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)

Stakeholder approval

  • Stakeholder approval has been confirmed
  • Stakeholder approval is not needed

Dependencies

NO dependencies are updated

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • The changes have been verified
  • The documentation has been updated or is unnecessary
  • New dependencies are appropriate or there were no changes

** Why are these changes being introduced:

* The search-replace syntax still uses the pantheonsite.io address for
  the live tier, not our actual domain

** Relevant ticket(s):

n/a

** How does this address that need:

* This changes the domain to use our actual libraries.mit.edu name

** Document any side effects to this change:

* none
@@ -61,7 +61,7 @@ public static function multidev_create_syntax( $event ): void {
*/
public static function multidev_search_replace_syntax( $event ): void {
$multidev = self::multidev_name( $event );
$terminus_command = "terminus remote:wp mitlib-wp-network.$multidev -- search-replace live-mitlib-wp-network.pantheonsite.io $multidev-mitlib-wp-network.pantheonsite.io --url=live-mitlib-wp-network.pantheonsite.io --network";
$terminus_command = "terminus remote:wp mitlib-wp-network.$multidev -- search-replace libraries.mit.edu $multidev-mitlib-wp-network.pantheonsite.io --url=libraries.mit.edu --network";
Copy link
Member

Choose a reason for hiding this comment

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

Can you clarify what this is fixing? I'm assuming behavior has been weird since launch and we've needed to manually re-run the search-replace and this will possible make moving data between tiers less manual?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the reminder about what search-replace command we should be running - it doesn't actually run the command.

The current output:

% composer multidev-search-replace-syntax pw-106
> MitComposerScripts::multidev_search_replace_syntax
terminus remote:wp mitlib-wp-network.pw-106 -- search-replace live-mitlib-wp-network.pantheonsite.io pw-106-mitlib-wp-network.pantheonsite.io --url=live-mitlib-wp-network.pantheonsite.io --network

The problem is that this command won't do what we need now that we've got our domain in place. So every time we get this reminder, we need to remember to update the live-mitlib-wp-network.pantheonsite.io value.

This PR changes the output to be something that is accurate:

% composer multidev-search-replace-syntax pw-106
> MitComposerScripts::multidev_search_replace_syntax
terminus remote:wp mitlib-wp-network.pw-106 -- search-replace libraries.mit.edu pw-106-mitlib-wp-network.pantheonsite.io --url=libraries.mit.edu --network

Copy link
Member

Choose a reason for hiding this comment

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

Oh right! I totally forgot about that. Thanks for the reminder.

@JPrevost JPrevost self-assigned this Sep 17, 2024
@matt-bernhardt matt-bernhardt merged commit 5aaee3f into master Sep 17, 2024
3 checks passed
@matt-bernhardt matt-bernhardt deleted the fix-composer-syntax branch September 17, 2024 20:44
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