Skip to content

Improve responses in the snippet create/update API endpoints

Amparo Luna requested to merge al-214695-improve-response-in-snippets-api into master

What does this MR do?

Modifies the checks in PersonalSnippets and ProjectSnippets API endpoints for creation and update.

Since snippets now have repositories, these endpoints should return a successful response if the service response is successful instead of relying only in the snippet object being valid or persisted.

Relates to #214695 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading