Skip to content

Support --auto-required-attrs option for fcli ssc av update command #1045

Description

@SangameshV

Enhancement Request

ACTUAL BEHAVIOR:
The fcli ssc av update command currently does not support the --auto-required-attrs option.
There is a scenario where an App Version is created successfully with the required attributes available at the time of creation. Later, if a new App Version attribute is introduced in SSC and marked as mandatory, updating the existing App Version using the command fails: fcli ssc av update
The failure occurs because the existing App Version does not have a value for the newly introduced mandatory attribute.
Currently, there is no --auto-required-attrs option available for fcli ssc av update to automatically handle these missing required attributes during the update operation.
This can cause unexpected failures in existing workflows or CI/CD pipelines when new mandatory attributes are introduced after the App Version has already been created.

EXPECTED BEHAVIOR:
The fcli ssc av update command should support the --auto-required-attrs option.
When this option is provided, fcli should automatically populate or handle any missing required App Version attributes during the update operation.

For example:
fcli ssc av update --auto-required-attrs
This behavior should be consistent with commands that already support --auto-required-attrs.
If newly introduced mandatory attributes are missing for an existing App Version, using --auto-required-attrs should allow the update operation to complete successfully without requiring users to manually identify and populate those attributes.
If automatic population is not possible, the command should provide a clear and actionable error message indicating which required attributes are missing.

HOW-TO-REPRODUCE:

  1. Create an App Version in SSC using fcli.
  2. Ensure the App Version is created successfully with the required attributes available at that time.
  3. Later, introduce a new App Version attribute in SSC and mark it as mandatory.
  4. Try to update the existing App Version using the following command:
    fcli ssc av update
  5. Observe that the command fails because the newly introduced mandatory attribute is missing.
  6. Try to use the --auto-required-attrs option with the update command:
    fcli ssc av update --auto-required-attrs
  7. Observe that the command does not support the --auto-required-attrs option.
  8. As a result, there is no direct way to automatically handle newly introduced mandatory attributes during App Version update using this command.

SUGGESTED ENHANCEMENT:
Implement support for the --auto-required-attrs option in the fcli ssc av update command.
The option should automatically handle missing required App Version attributes when updating an existing App Version, especially in cases where new mandatory attributes were introduced after the App Version was created.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions