diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-27 12:52:27 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-28 22:54:07 -0700 |
commit | fc52421b552dace1a8d1410adc23b7bfddc5a580 (patch) | |
tree | 816c2b226b7a65eccc1acdbd9bd403369fb073ce /changelogs | |
parent | 549e95b8f921dfb30bc7982e9957ce9ccdfd916e (diff) | |
download | gitlab-ce-fc52421b552dace1a8d1410adc23b7bfddc5a580.tar.gz |
Standardize use of `content` parameter in snippets APIsh-support-content-for-snippets-api
There was some confusion over whether `code` or `content` is the right
parameter for snippets. Internally, the database stores
`content`. However:
1. Project snippets use `code`. `code` gets remapped in `content` in
`lib/api/project_snippets.rb`.
2. Personal snippets use `content`.
To unify these APIs, allow an alias of `content` to work for project
snippets.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66673
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-support-content-for-snippets-api.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-support-content-for-snippets-api.yml b/changelogs/unreleased/sh-support-content-for-snippets-api.yml new file mode 100644 index 00000000000..60a5d98da46 --- /dev/null +++ b/changelogs/unreleased/sh-support-content-for-snippets-api.yml @@ -0,0 +1,5 @@ +--- +title: Standardize use of `content` parameter in snippets API +merge_request: 32296 +author: +type: changed |