Clone a run - Cloud and Local - SDK and CLI#318
Draft
sebastian-quintero wants to merge 5 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Introduces functionality for cloning a run in
cloudandlocal:cloudmodule ➡️cloud.Application.clone_runandcloud.Application.clone_run_with_result.localmodule ➡️local.Application.clone_runandlocal.Application.clone_run_with_result.nextmv cloud run cloneandnextmv local run clone.Deprecates some features. Largely, when run "metadata" is requested, it always comes back to the user as:
{ "description": "", "id": "latest-6O8pEx1vg", "metadata": { "application_id": "2005", "application_instance_id": "latest", ... }, "name": "", ... }It has always been confusing to get
metadataand findmetadatato be a nested field that is part of that object. In the SDK, the complete object has always been calledRunInformation. Following this, I am proposing we move away frommetadatamethods in favor ofinformationmethods. These are the following features that are being deprecated:cloud.Application.run_metadatain favor ofcloud.Application.run_information.local.Application.run_metadatain favor oflocal.Application.run_information.nextmv cloud run metadatain favor ofnextmv cloud run information.nextmv local run metadatain favor ofnextmv local run information.Last but not least, missing information in the actual run metadata was completed, such as
options,execution_class, and others...