APP-1675 - Enhance update application version command with source fla… #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
version-update-sourcesCLI command to add sources to existing draft application versions (APP-1675).version_source_parserused by bothversion-createandversion-update-sources.API Endpoint:
PATCH /v1/applications/{application_key}/versions/{version}(query params:async,dry_run,fail_fast)Changes
CLI / Commands
version-update-sources(vus): adds sources and optional filters to a draft version via--source-type-artifacts,--source-type-packages,--source-type-builds,--source-type-release-bundles,--source-type-application-versions, or--spec; supports--sync,--dry-run,--fail-fast(apptrust/commands/version/update_app_version_sources_cmd.go).VersionUpdateSourcescommand constant andFailFastFlag;version-update-sourcesregistered in cli/cli.go and apptrust/commands/flags.go.create_app_version_cmd.gonow delegates tobuildSourcesAndFiltersFromContext()in apptrust/commands/version/version_source_parser.go; parsing for builds, release bundles, application versions, packages, artifacts, spec file, and filters moved into shared parser (create command simplified).Test Plan
version-update-sourcescommand (run + source flags).UpdateAppVersionSources(sync, async, dry_run, fail_fast).jf at version-update-sources <app-key> <version>with source flags against a real draft version.