Skip to content

Clarify asset repair commands#182

Merged
timkelty merged 3 commits into
3.xfrom
timkelty/cloud-assets-repair-commands
Jul 9, 2026
Merged

Clarify asset repair commands#182
timkelty merged 3 commits into
3.xfrom
timkelty/cloud-assets-repair-commands

Conversation

@timkelty

@timkelty timkelty commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Compared with the latest tag (3.6.0), this keeps the only released asset metadata repair command (cloud/assets/replace-metadata) working as a deprecated alias while grouping the new repair commands under cloud/assets/repair/*.

Copilot AI review requested due to automatic review settings July 9, 2026 20:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR reorganizes Craft Cloud CLI asset “repair” operations so they live under cloud/assets/repair/*, while keeping cloud/assets/replace-metadata as a deprecated alias for the metadata repair behavior.

Changes:

  • Added a dedicated CLI controller for cloud/assets/repair/* subcommands (missing, metadata) with action whitelisting.
  • Introduced cloud/assets/repair as the default “missing data” repair entrypoint and refactored metadata repair into a shared helper method.
  • Added unit tests asserting available/unsupported CLI actions and Yii route resolution behavior for the new command structure.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/unit/AssetsControllerTest.php Adds tests for new CLI controller/actions and routing expectations for cloud/assets/repair/* and deprecated aliases.
src/cli/controllers/AssetsController.php Adds actionRepair(), refactors metadata repair into a helper, and keeps replace-metadata as a deprecated alias.
src/cli/controllers/assets/RepairController.php Adds a new sub-controller to expose only missing and metadata repair actions under cloud/assets/repair/*.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cli/controllers/AssetsController.php

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c5105e3b68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli/controllers/assets/AssetRepairTrait.php
Copilot AI review requested due to automatic review settings July 9, 2026 20:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 9, 2026 20:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@timkelty timkelty merged commit d2b4f5f into 3.x Jul 9, 2026
10 of 11 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