Skip to content

Library add apis should process everything before return an error #449

Description

@yangcao77

Add apis tend to return on first error, rather than process everything provided.
For example, pass in 5 components, 4 will be added if the 5th is a duplicate but only 1 will be added if the 2nd is a duplicate.

Expected behavior:
add apis should process everything before return. Any valid elements will be added to the devfileObj, and each invalid element will have an error message. the returned error message should be contain all errors

Activity

  1. added
    kind/bugSomething isn't working
    area/apiEnhancement or issue related to the api/devfile specification
    area/libraryCommon devfile library for interacting with devfiles
    and removed
    area/apiEnhancement or issue related to the api/devfile specification
    on Apr 29, 2021
  2. self-assigned this
    on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfileskind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions