Skip to content

[DEVEX-708] fix(application validate): restore remote application state checks#134

Merged
jpage-godaddy merged 3 commits into
godaddy:rust-portfrom
qcai-godaddy:DEVEX-708
Jul 21, 2026
Merged

[DEVEX-708] fix(application validate): restore remote application state checks#134
jpage-godaddy merged 3 commits into
godaddy:rust-portfrom
qcai-godaddy:DEVEX-708

Conversation

@qcai-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • Restore application validate <name> to fetch and check remote app state (parity with the TypeScript CLI), instead of only deserializing local godaddy.toml
  • Report { valid, errors, warnings }: missing URL → error; missing proxy URL / INACTIVE → warnings
  • Update help text and next-actions; add unit tests for clap args and validation rules

Test plan

  • cargo build
  • cargo test -- application::commands::tests::validate
  • cargo clippy -- -D warnings
  • cargo fmt --check

Comment thread rust/src/application/commands/mod.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 restores gddy application validate <name> to validate remote application state (fetching the application by name) rather than only validating local godaddy.toml, aligning behavior with the TypeScript CLI and returning a structured { valid, errors, warnings } result.

Changes:

  • Updates application validate to require an application name, fetch remote application data, and report validation errors/warnings based on remote fields (url, proxyUrl, status).
  • Updates help/long descriptions and “next actions” to reference application validate <name> and remote validation semantics.
  • Adds unit tests for clap argument requirements and for the remote validation rules.

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

Comment thread rust/src/application/commands/mod.rs Outdated
Comment thread rust/src/application/commands/mod.rs Outdated
Comment thread rust/src/application/commands/mod.rs Outdated
Comment thread rust/src/application/commands/mod.rs
Comment thread rust/src/application/commands/mod.rs
Comment thread rust/src/application/commands/mod.rs Outdated
Comment thread rust/src/application/commands/mod.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread rust/src/application/commands/mod.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread rust/src/application/commands/mod.rs
Comment thread rust/src/application/commands/mod.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread rust/src/application/commands/mod.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 2 changed files in this pull request and generated no new comments.

Comment thread rust/src/application/commands/mod.rs Outdated
),
)
.with_param("application-id", required_value(app_id))
.with_param("version", required_value("0.0.1")),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Isn't 0.0.1 just an example? Let's leave version unspecified.

@jpage-godaddy
jpage-godaddy merged commit b84ddb0 into godaddy:rust-port Jul 21, 2026
1 check 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.

4 participants