Skip to content

Conversation

@yangcao77
Copy link
Collaborator

Signed-off-by: Stephanie yangcao@redhat.com

What does this PR do?

return error in update apis (command, component, project, starter project) if the element requested to be updated does not exist.
event update does not fall into this rule

What issues does this PR fix or reference?

Fixes devfile/api#448

Is your PR tested? Consider putting some instruction how to test your changes

added & updated unit test for the error cases

Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
@maysunfaisal
Copy link
Member

/lgtm

@maysunfaisal
Copy link
Member

@yangcao77 we will need to cut a new alpha release after this merges!

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maysunfaisal, yangcao77

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [maysunfaisal,yangcao77]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yangcao77 yangcao77 merged commit f3024dd into devfile:master May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update api's should return an error if the specific element does not exist

3 participants