Skip to content

Implemented --local option to allow profile validation without accessing agama server#2670

Merged
mchf merged 10 commits intomasterfrom
cli-offline-validation
Aug 26, 2025
Merged

Implemented --local option to allow profile validation without accessing agama server#2670
mchf merged 10 commits intomasterfrom
cli-offline-validation

Conversation

@mchf
Copy link
Copy Markdown
Contributor

@mchf mchf commented Aug 20, 2025

Problem

bsc#1247424

Originally agama-cli performed profile validation by asking agama server through HTTP API. This might complicate migration from older products sometimes.

Solution

Implemented --local option so you can ask agama config --local validate for checking the profile and CLI won't send it to agama server.

The option --local was implemented as config command specific as I didn't identify any other command where it could make sense.

TODO:

  • refactoring
  • test other config subcommands and identify those which might work with --local as well So far didn't find any other which makes sense or could work locally. So if no idea appears during the review may be it is a time to move the option even one more level lower (agama config validate --local)

Testing

  • Tested manually

@mchf mchf requested a review from imobachgs August 21, 2025 15:46
@jreidinger
Copy link
Copy Markdown
Contributor

looks good, please add changelog

@mchf mchf force-pushed the cli-offline-validation branch from 27c0499 to 565773d Compare August 25, 2025 16:16
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 25, 2025

Coverage Status

coverage: 75.97% (+11.7%) from 64.306%
when pulling f64387c on cli-offline-validation
into 941292c on master.

@mchf mchf force-pushed the cli-offline-validation branch from 8afa566 to 7906774 Compare August 26, 2025 12:26
@mchf
Copy link
Copy Markdown
Contributor Author

mchf commented Aug 26, 2025

Moving --local option into agama config validate was discussed with @imobachgs off the github

@mchf mchf merged commit a7f5f8b into master Aug 26, 2025
13 checks passed
@mchf mchf deleted the cli-offline-validation branch August 26, 2025 12:59
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.

3 participants